Skip to content

Unable to show both enabled and disabled dags at the same time (the All option is unresponsive when hide_paused_dags_by_default is set to True) #53439

Closed

Description

@zachliu

Apache Airflow version

3.0.3

If "Other Airflow 2 version" selected, which one?

Airflow 2.x versions do not have this issue

What happened?

When hide_paused_dags_by_default is set to True, the All option in the drop-down menu on the UI is unresponsive.

When the Disabled was checked, clicking on All just went back to Enabled ¯\_(ツ)_/¯

bug-report.mp4

What you think should happen instead?

In Airflow 2.x the behavior is correct when hide_paused_dags_by_default is set to True:

  • the default view is Active dags
  • the All tab still shows all dags both enabled and disabled.
Image

How to reproduce

  1. set hide_paused_dags_by_default to True
  2. go to the UI and try to select the All option from the drop-down.

Operating System

LM 21.3 with docker python:3.12-slim-bookworm

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Jul 17, 2025
  2. added
    area:UI
    on Jul 17, 2025
  3. added
    affected_version:3.0
    and removed
    needs-triage
    on Jul 17, 2025
  4. tirkarthi commented on Jul 17, 2025

    @tirkarthi
    Contributor

    I am unable to reproduce this in main and 3.0.3 . When you select the filter do you see "reset filter" button at the right above sorting? Does clicking on "reset filter" reset it to all and display all dags? Do you see any API calls issue in network tab while changing to all?

  5. zachliu commented on Jul 17, 2025

    @zachliu
    ContributorAuthor

    @tirkarthi there is no reset filter button anywhere on the UI 😕

    Image
  6. zachliu commented on Jul 17, 2025

    @zachliu
    ContributorAuthor

    Do you see any API calls issue in network tab while changing to all?

    as i said, the button is unresponsive. there was no api calls registered in the logs when i switched to all

  7. yokwejuste commented on Jul 20, 2025

    @yokwejuste

    I am unable to reproduce this in main and 3.0.3 . When you select the filter do you see "reset filter" button at the right above sorting? Does clicking on "reset filter" reset it to all and display all dags? Do you see any API calls issue in network tab while changing to all?

    The reset is supposed to be the "All" on the UI showing both Enabled and Disabled dags.

  8. yokwejuste commented on Jul 20, 2025

    @yokwejuste

    @zachliu, Not sure this relevant, since all working well on my end (as expected)!!!

    result.mp4
    • You would not see any particular API since for some reasons

    Frontend API calls are cached using react-query, which allows for efficient data fetching and avoids unnecessary repeat requests within the same browser session or component lifecycle.

    • At the start we have two particular endpoints hit for the All functionality which is cached.
    Image

    Each Frist Time you use the Enabled or Disabled functionality, you get the API. Check the screenshot below after clearing off.

    Image
    Image

    Finally, Cached data is reused for subsequent queries with the same key, avoiding unnecessary network calls.

  9. zachliu commented on Jul 21, 2025

    @zachliu
    ContributorAuthor

    @yokwejuste yes i knew they reused cached data. and i checked the api calls and everything before creating this issue. the api calls are the same as shown in your screenshots. but for me the All option in this drop-down can never be checked. i see in your screen record you could check All (literally, the check mark on its right), which i could never do for some reason

    Image

    clicking All does nothing

  10. yokwejuste commented on Jul 21, 2025

    @yokwejuste

    Hey @zachliu, It is normal.
    It was sent already when the page loaded the first time.

    To confirm what I say:

    This is because this time around the first load triggered instead the Enabled

  11. zachliu commented on Jul 21, 2025

    @zachliu
    ContributorAuthor

    @yokwejuste 😂 wish we could do a live call and screen share

    Screencast.2025-07-21.11.10.49.mp4
  12. yokwejuste commented on Jul 21, 2025

    @yokwejuste

    This is what I am taking about here. Try having a look at this one and tell me if it is clearer now. unless you are talking about something else @zachliu 😆

    result.mp4
  13. changed the title [-]Unable to show both enabled and disabled dags at the same time (the `All` option is unresponsive)[/-] [+]Unable to show both enabled and disabled dags at the same time (the `All` option is unresponsive when `hide_paused_dags_by_default` is set to `True`)[/+] on Jul 21, 2025
  14. zachliu commented on Jul 21, 2025

    @zachliu
    ContributorAuthor

    @yokwejuste issue updated. it should be crystal clear now 🚀

  15. yokwejuste commented on Jul 21, 2025

    @yokwejuste

    @yokwejuste issue updated. it should be crystal clear now 🚀

    I get the whole thing. That's a minor fix!

    What version are you on? I am on 3.0.2 and I can't' reproduce that.

  16. zachliu commented on Jul 21, 2025

    @zachliu
    ContributorAuthor

    @yokwejuste i'm on 3.0.3 but it's been bothering me since 3.0.0 🤔 did you set hide_paused_dags_by_default to True and rebuild?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected_version:3.0area:UIarea:corekind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions