-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Explicitly set table ordering #60609
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
Conversation
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.
Just one remark otherwise looking good to me.
The sort handler for tansStack/table was inconsistent with when it cycled between sort states if it had a default value. Implementing it ourselves makes sure it always appears.
I wasn't able to reproduce this, can you give more details as to what was happening? (for me it was correctly switching for desc/asc/default).
airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
Outdated
Show resolved
Hide resolved
fa61038 to
574c18e
Compare
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.
Cool!
choo121600
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.
Cool, looks good.
It looks like the e2e tests are failing. Could you please check?
* Explicitly set table ordering * Remove start_date as default * simplify comments * Simplify table sort fix * Reverse sort direction to match tests * Remove isfetching (cherry picked from commit d81a4eb) Co-authored-by: Brent Bovenzi <brent@astronomer.io>
* Explicitly set table ordering * Remove start_date as default * simplify comments * Simplify table sort fix * Reverse sort direction to match tests * Remove isfetching (cherry picked from commit d81a4eb) Co-authored-by: Brent Bovenzi <brent@astronomer.io>
* Explicitly set table ordering * Remove start_date as default * simplify comments * Simplify table sort fix * Reverse sort direction to match tests * Remove isfetching
The sort handler for tansStack/table was inconsistent with when it cycled between sort states if it had a default value. Implementing it ourselves makes sure it always appears.
Closes #60576
Also, added add a placeholder data of the previous data to prevent the whole table from showing a loading page when a user does change the sorting.
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.