-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Add is_favorite to ui dags list#56341
Conversation
There was an issue that favoriting a dag in the dags list would break the sorting of the dags page. That was because we were querying the dags list inside of each Favorite Dag button and it affected the dags list cache. Instead, we should juse include is_favorite on the Dag response.
Also, make the Star icon stroke match the fill.
^ 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 airflow-core/newsfragments.
jason810496
left a comment
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.
Nice! Thanks for the PR!
My nits are non-blocking.
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dags.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/dags.py
Outdated
Show resolved
Hide resolved
pierrejeambrun
left a comment
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.
Looking good, just one suggestion
0276653 to
07b8fc4
Compare
07b8fc4 to
fe8d84a
Compare
* Update dagdetails
(cherry picked from commit ba7b407)
Co-authored-by: Brent Bovenzi
* Update dagdetails
* Update dagdetails
* Update dagdetails
* Update dagdetails
* Update dagdetails
* Update dagdetails
* Update dagdetails
* Update dagdetails
* Update dagdetails