-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Fix Spark Conn Add/Edit Pages #8685
Conversation
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.
Code looking good, but should we separate PR? Seem sorting and adding miss type unrelated.
@zhongjiajie two changes are both small so appended the 2nd change here. But I don't mind splitting them into two. |
03a2e50
to
79912b9
Compare
Hi @zhongjiajie , I have split the PR into two. The change to order connection types alphabetically is in PR #8692 The PR description, title, etc, of this PR are updated as well. Let me know if everything looks good to you? |
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.
LGTM, waiting for Github action
connection add/edit UI pages were not working correctly for Spark connections. The root-cause is that "spark" is not listed in models.Connection._types. So when www/forms.py tries to produce the UI, "spark" is not available and it always tried to "fall back" to the option list whose first entry is "Docker" In addition, we should hide irrelevant entries for spark connections ("schema", "login", and "password") (cherry picked from commit 0b598a2)
connection add/edit UI pages were not working correctly for Spark connections. The root-cause is that "spark" is not listed in models.Connection._types. So when www/forms.py tries to produce the UI, "spark" is not available and it always tried to "fall back" to the option list whose first entry is "Docker" In addition, we should hide irrelevant entries for spark connections ("schema", "login", and "password") (cherry picked from commit 0b598a2)
connection add/edit UI pages were not working correctly for Spark connections. The root-cause is that "spark" is not listed in models.Connection._types. So when www/forms.py tries to produce the UI, "spark" is not available and it always tried to "fall back" to the option list whose first entry is "Docker" In addition, we should hide irrelevant entries for spark connections ("schema", "login", and "password") (cherry picked from commit 0b598a2)
connection add/edit UI pages were not working correctly for Spark connections. The root-cause is that "spark" is not listed in models.Connection._types. So when www/forms.py tries to produce the UI, "spark" is not available and it always tried to "fall back" to the option list whose first entry is "Docker" In addition, we should hide irrelevant entries for spark connections ("schema", "login", and "password") (cherry picked from commit 0b598a2)
master
and1.10.10
, connection add/edit UI pages are not working correctly for Spark connections.Current Connection Adding for Spark ('Spark' in not available):
Current Connection Editing for Spark:
You can easily reproduce this by trying to edit default connection
spark_default
.Root-cause
The root-cause is that "spark" is not listed in
models.Connection._types
. So whenwww/forms.py
tries to produce the UI, "spark" is not available and it always tried to "fall back" to the option list whose first entry is "Docker" (this is why we see "Docker Registry" when we edit "spark_default").In addition, we should hide irrelevant entries for spark connections ("schema", "login", and "password")
After Fix - Add Spark Connection
After Fix - Edit Spark Connection
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.