-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Open
Labels
AIP-38Modern Web ApplicationModern Web Applicationarea:UIRelated to UI/UX. For Frontend Developers.Related to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bugThis is a clearly a bug
Description
Apache Airflow version
main (development)
If "Other Airflow 3 version" selected, which one?
No response
What happened?
On initial load latestDagRunId will be undefined and when the request to fetch it is complete previousDagRunIdRef.current which is empty string "" will not be equal to latestDagRunId causing the cache to be cleared and then http requests are again made though they fetch same data as the initial load. When previousDagRunIdRef.current is "" with latestDagRunId then it's better to set previousDagRunIdRef.current with latestDagRunId and then proceed with the loop to check for the latest run to clear them when there is a new run.
| if (latestDagRunId !== undefined && previousDagRunIdRef.current !== latestDagRunId) { |
What you think should happen instead?
No response
How to reproduce
- Go to a page with a dagrun like http://localhost:8000/dags/example_branch_labels
- Inspect the network tab. See duplicate requests for /ui and /api endpoints like
/ui/grid/runs,/ui/grid/structureetc. though they are not necessary in the initial load
Operating System
Ubuntu 20.04
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
AIP-38Modern Web ApplicationModern Web Applicationarea:UIRelated to UI/UX. For Frontend Developers.Related to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bugThis is a clearly a bug