Skip to content

Conversation

@Adaverse
Copy link
Contributor

@Adaverse Adaverse commented May 9, 2023

Previous -
tutorial - Grid - Airflow (1).webm

tutorial.-.Grid.-.Airflow.mp4

Now -

tutorial.-.Grid.-.Airflow.1.mp4

^ 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.

@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels May 9, 2023
tryNumber={taskTryNumber}
/>
) : (
<Spinner />
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's get the loading state from the query to determine when to show the spinner.
const { data, isLoading } = useTaskLog()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes done. Since isLoading is always false in the above case because of the placeholder in the query. Hence, using isFetching for the spinner.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, we can get rid of that placeholderData and use isLoading normally. isFetching can be true when there is still data to show.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Adaverse Adaverse requested a review from bbovenzi May 10, 2023 10:09
@bbovenzi bbovenzi modified the milestones: Airflow 2.6.1, Airflow 2.6.2 May 10, 2023
@bbovenzi bbovenzi merged commit 584a9f5 into apache:main May 10, 2023
@bbovenzi bbovenzi added the type:bug-fix Changelog: Bug Fixes label May 10, 2023
eladkal pushed a commit that referenced this pull request Jun 8, 2023
* spinner added

* fixed static checks

* isFetching

* isFetching replaced with isLoading

(cherry picked from commit 584a9f5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants