Repository navigation
[AIRFLOW-7049] Persistent display/filtering of DAG status - #8106
Conversation
|
Very nice improvement to my original hack! |
Codecov Report
@@ Coverage Diff @@
## master #8106 +/- ##
===========================================
- Coverage 88.30% 60.55% -27.75%
===========================================
Files 936 936
Lines 45272 45283 +11
===========================================
- Hits 39979 27423 -12556
- Misses 5293 17860 +12567
Continue to review full report at Codecov.
|
|
What do you think about "Enabled" instead of "Active" -- cos even ignoring the is_active concept inside Airflow, Active could be taken to mean "is actively running/executing" |
ashb
left a comment
There was a problem hiding this comment.
A few minor changes to code/tests, and let's change the name from "Active" to "Enabled" (I think.)
|
Thank you @ashb, will get those edits taken care of! |
|
After playing with this and seeing what it looks like we've decided that Active/Paused is the clearest, and the risk of confusion with the is_active column on the Dag table is minimal as that is never exposed to users, and only shows up in about 3 places in the code anyway. |
…ing "active" dags
…th existing "active" dags" This reverts commit b831f6830ea338facfa0f13e2342e2b8f82ae070.
Seeks to resolve [AIRFLOW-7049] by replacing the problematic "show/hide paused DAGs" toggle with a more robust status filter that saves and persists the user's selection.
Status Filter:
In context of the DAGs (home) view:
Status logic:
hide_paused_dags_by_defaultis set toTrue, the default is "active".flask_session[FILTER_STATUS_COOKIE]. Value ofall,active, orpaused./home?status=active/home, the last saved cookie value will be selected.Of note:
dags.htmldiff is so large because I fixed a bunch of indentation while I was in there.Tests:
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.