Skip to content

Conversation

@bbovenzi
Copy link
Contributor

@bbovenzi bbovenzi commented Jan 15, 2026

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?
  • [ ]

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Copy link
Member

@pierrejeambrun pierrejeambrun left a 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).

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Cool!

Copy link
Member

@choo121600 choo121600 left a 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?

@bbovenzi bbovenzi added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jan 29, 2026
@bbovenzi bbovenzi merged commit d81a4eb into apache:main Jan 29, 2026
77 checks passed
@bbovenzi bbovenzi deleted the fix-table-sorting branch January 29, 2026 15:43
github-actions bot pushed a commit that referenced this pull request Jan 29, 2026
* 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>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jan 29, 2026
* 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>
shahar1 pushed a commit that referenced this pull request Jan 29, 2026
(cherry picked from commit d81a4eb)

Co-authored-by: Brent Bovenzi <brent@astronomer.io>
sanchalitorpe-source pushed a commit to sanchalitorpe-source/airflow that referenced this pull request Jan 30, 2026
* Explicitly set table ordering

* Remove start_date as default

* simplify comments

* Simplify table sort fix

* Reverse sort direction to match tests

* Remove isfetching
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. backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent table sorting state

3 participants