Replies: 18 comments
-
@ashb @kaxil @turbaszek @ryanahamilton may you please let me know your thoughts on this? Thanks. |
Beta Was this translation helpful? Give feedback.
-
I remember Ryan and I talked about this when he added/restyled those toggles. Active is almost entirely an internal concept, so perhaps the best thing to rename is that, and we can leave active for this use here (cos "All/Unpaused/Paused" just sounds really odd to me for some reason.) |
Beta Was this translation helpful? Give feedback.
-
I think splitting this into |
Beta Was this translation helpful? Give feedback.
-
As @ashb mentioned, there was some discussion around this when this filter was refactored in #8106. I'd prefer @ashb's suggestion of keeping the "active" designation for this purpose if possible. Using a negative prefix of "un" ("not paused") isn't great from a UX perspective of differentiating status labels. |
Beta Was this translation helpful? Give feedback.
-
Thanks everyone for your inputs! What I would propose is: Let's change the "internal" term
Candidates can be something like May you please:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
👍 to your proposal. |
Beta Was this translation helpful? Give feedback.
-
I'm preparing a PR for this issue (rename I have encountering again the same issue that I met in #14581 (comment): migration I'm not sure if any change should be made to In #14581 (rename If we want to use the same trick again to fix this problem, we need to refactor @kaxil @ashb @turbaszek Kindly let me know your suggestions? Happy to clarify and have further discussion. Many thanks! |
Beta Was this translation helpful? Give feedback.
-
/cc @jhtimmins who wrote that original migration too |
Beta Was this translation helpful? Give feedback.
-
Gentle ping @jhtimmins |
Beta Was this translation helpful? Give feedback.
-
Thanks for the ping @XD-DENG. I think that Regarding the filtering on "all active and paused DAGs" -- Looks like that logic was added in the original dag-specific permissions PR was added 3 years ago f3f2eb3. None of the design docs for this are accessible anymore, so I'm not sure what the reasoning was. My guess is that this was included so that active DAGs that were deleted through the UI don't stick around causing no-longer-relevant permissions to get created. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jhtimmins . Putting the naming or condition check questions aside, possibly what we may need more inputs from you is the migration script We don't have to make the change proposed in this Issue. But earlier or later, people may need to make some changes to the @kaxil please correct me if any point is incorrect (as per our discussion at #14581 (comment)) or in case you have any other things to add. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Regarding why we would like to rename |
Beta Was this translation helpful? Give feedback.
-
Yup that is correct, if we rename or remove the DagModel it will break the migrations. Historically we have created a Dummy Class instead of importing one from Airflow to avoid such situation, example: |
Beta Was this translation helpful? Give feedback.
-
I don't thinks this is minor now when I'm trying to get DAGs from this tab from the |
Beta Was this translation helpful? Give feedback.
-
I don't think so .. cc @ephraimbuddy -- We should probably have a "unpaused" dags filter in that endpoint too and explain the difference of "unpaused" vs "active" in the spec and docs. |
Beta Was this translation helpful? Give feedback.
-
Just a minor point, it’s probably easier to just change the is_present = Column("is_active", Boolean, default=False) |
Beta Was this translation helpful? Give feedback.
-
I just tried to describe the current status in #22025 based on confused user discussion #21864 . And there are far too many "yes this is confusing" there. I have another proposal how to solve it. MINOR and "super-simple. How about we simply rename "Active" to "Unpaused" in the UI? This is, what it is, there is no particular reason to name the tab "Active" because it's meaning is "Unpaused" really. We could come up with another name as well "Schedulable" ? |
Beta Was this translation helpful? Give feedback.
-
Anyone else who would like to have a say here ? I think tthis is really more of a "UX" thing. @bbovenzi - what do you think - maybe really just renamiing the "Active" to "Unpaused" in the UI would solve the problem? |
Beta Was this translation helpful? Give feedback.
-
(This may be too minor. If anyone thinks it's not necessary to make any change, I can definitely understand as well.)
This thought started with the discussion @ashb and I had at #14306 (comment) . So the definition of
active
in an AirflowDAG
context is "Whether that DAG was seen on the last DagBag load".However, on the other hand, in some scenarios of Airflow,
active
is used equivalently toUN-paused
, like the home page.To avoid potential confusion in terminology usage, shall we consider changing
Active
in home page to something likeunpaused
(or a better word).Again, it's minor to me, and would be happy to close this if most folks find it ok as it is now.
Beta Was this translation helpful? Give feedback.
All reactions