-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
The failing MINSQL ALchemy test here is fixed in #38445 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should modify a lot of example dags to add task_display_name on them
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. |
We should add a couple of sections in the documentation about the fields. Not sure where tbh. |
How can I interpret your "Should"? |
I hope (&pray) that I catched all errors now and pipeline turns green... |
Looks good |
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.) |
… 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