Skip to content

Conversation

@bbovenzi
Copy link
Contributor

Fixing a bug added in #32350

Before:
Screenshot 2023-07-13 at 3 50 33 PM

After (the correct count):
Screenshot 2023-07-13 at 3 50 54 PM


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Jul 13, 2023
@bbovenzi bbovenzi added this to the Airflow 2.7.0 milestone Jul 13, 2023
select(DagModel.is_paused, func.count(DagModel.dag_id))
.group_by(DagModel.is_paused)
.select_from(all_dags)
select(DagModel.is_paused, func.count(DagModel.dag_id)).group_by(DagModel.is_paused)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add a test for this , current tests dont cover this

@kaxil
Copy link
Member

kaxil commented Jul 13, 2023

I am going to merge this as I know @bbovenzi is OOO. @phanikumv can you add that test in a separate PR, please?

@kaxil kaxil merged commit 41164dd into apache:main Jul 13, 2023
@kaxil kaxil deleted the fix-dags-list-count branch July 13, 2023 22:25
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webserver Webserver related Issues changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants