Skip to content
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

Add read only validation to read only fields #33413

Merged
merged 3 commits into from
Aug 16, 2023

Conversation

ahidalgob
Copy link
Contributor

Add read only validation to DagRunEditForm and TaskInstanceEditForm read only fields.

Add read only validation to DagRunEditForm and TaskInstanceEditForm
read only fields.
@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Aug 15, 2023
@ahidalgob
Copy link
Contributor Author

It would be nice to have a base airflow form Class so we could modify Form.populate_obj there and not for every form that has a ReadOnly field, but I'm not sure the change it's worth it given only 2 forms use this.

@hussein-awala
Copy link
Member

Could you check the failed static checks? Here is the doc: https://github.com/apache/airflow/blob/main/STATIC_CODE_CHECKS.rst

@hussein-awala
Copy link
Member

Actually it is not related to this change, and it was fixed by #33416, I merge main

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice way of implementing th read-only behaviour :)

@potiuk potiuk merged commit b7a46c9 into apache:main Aug 16, 2023
42 checks passed
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 17, 2023
* Add read only validation to read only fields

Add read only validation to DagRunEditForm and TaskInstanceEditForm
read only fields.

* Improve docstring

---------

Co-authored-by: Hussein Awala <hussein@awala.fr>
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.0 milestone Aug 27, 2023
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Aug 27, 2023
@potiuk potiuk modified the milestones: Airflow 2.8.0, Airflow 2.7.3 Oct 28, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 29, 2023
* Add read only validation to read only fields

Add read only validation to DagRunEditForm and TaskInstanceEditForm
read only fields.

* Improve docstring

---------

Co-authored-by: Hussein Awala <hussein@awala.fr>
(cherry picked from commit b7a46c9)
@ephraimbuddy ephraimbuddy added type:bug-fix Changelog: Bug Fixes and removed type:improvement Changelog: Improvements labels Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants