Uh oh!
There was an error while loading. Please reload this page.
Allow users to write dag_id and task_id in their national characters, added display name for dag / task (v2) - #38446
Conversation
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Aleksandr Shelukheev <shelukheev@gmail.com>
potiuk
left a comment
There was a problem hiding this comment.
I reviewed the backend code and looked at the UI. Not sure if all the places in UI that should be updated, are but the backend implementation looks sound to me. I think some other pairs of eyes shold also look at that though.
potiuk
commented
Mar 25, 2024
The failing MINSQL ALchemy test here is fixed in #38445 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ephraimbuddy
left a comment
There was a problem hiding this comment.
I don't think we should modify a lot of example dags to add task_display_name on them
jscheffl
commented
Mar 25, 2024
Okay, then before going into a debate I'll revert the adjustments in the example DAGs for most cases and leave this for future cleanup. |
uranusjr
commented
Mar 26, 2024
We should add a couple of sections in the documentation about the fields. Not sure where tbh. |
jscheffl
commented
Mar 26, 2024
How can I interpret your "Should"? |
jscheffl
commented
Mar 26, 2024
I hope (&pray) that I catched all errors now and pipeline turns green... |
potiuk
commented
Mar 26, 2024
Looks good |
uranusjr
commented
Mar 26, 2024
Docs can be added in a separate PR, but I would prefer to have it for the final release. (Don’t need to hit alphas though, docs don’t break things.) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
… added display name for dag / task (v2) (apache#38446) * Add display name in DAGs and tasks Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Aleksandr Shelukheev <shelukheev@gmail.com> * Fix frontend issues * Fix pytests * Add DAG display tool tips * Implement national language char display example oon two DAGs * Review nit from other PR * Fix WWW pytest on HTML code * Review feedback, make task_display_name a property, not a field in mapped operator * Review feedback, rename internal fields * Small nit, optimize sorting on DAG home page with display name * Review feedback * Fix pytests in API plus review feedback on API * Review feedback, extend schema, update apispecs and fix breadcrumb navigation * nit, update page titles as well * Fix pytests for extended API model * Ensure mapped operator also provides a display string * Ensure display field is only serialized if different from task id * fix pytest for API * Review feedback from TP * Move labels down to base and mapped operator * Move labels up to abstract operator * Only one decorator is needed --------- Co-authored-by: Vincent Gao <xgao1023@gmail.com> Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Aleksandr Shelukheev <shelukheev@gmail.com>
This PR tries to continue the work from [ @aleksandr-shel @xgao1023 @uranusjr ] in PR #35320. It merges with current main. On top of this I fixed the bugs in pytest, some glitches in UI.
I'd LOVE to get this into 2.9.0 and as there were a couple of reviews already on the previous PR I hope it is not as compex as it looks. A lot of code is also due to the fact that I try to migrate all examples over to "nicer names". Sneak preview how it could look like after this PR:

What is open to be merged?
closes: #22073
related: #32520, #28183