-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Edit variable button on variable list page #45251
base: main
Are you sure you want to change the base?
Conversation
@pierrejeambrun @jscheffl @bbovenzi I can see that the patch variable api have a check
Is this introduced new that we can't edit the variable key? |
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.
Looks good for me. LGTM!
(we could debate if it makes sense to add a "ManageVariable" subfolder just for the CRUD elements but actually that is rather cosmetic)
@jscheffl I am open to suggestion on this, if we have something better. |
I believe that this is an artefact from the migration of public API from Connexion to Fast API, this validation was converted 1:1. So technically we have two options:
From UI Perspective dis-allowing to change the key does not make sense. So I'd propose to remove the validation in REST API. For option 1 I see no reason. And Option 3 is too much overhead just because of a cross-validation in API Any other opinions? |
Also regrading this issue. If we plan to implement this.
|
Regarding option 1) I think this can have a discussion and can be fixed later in other PR, what say? |
related: #43709
Note:
This needs to rebase on #45238, once that is merged.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.