Skip to content
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

Replace primary/secondary sort fields with an array of sort directives. #122

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

ericpromislow
Copy link
Contributor

This allows collection URLs to have a sort query that sorts on more than two fields

The use of PrimaryField and SecondaryField is too limiting, and leads to unlikely edge-cases,
like having a Secondary Field but no Primary Field. Better to just maintain parallel arrays of
fields and sort-orders.

Related to #48092

moio
moio previously approved these changes Jan 15, 2025
@ericpromislow ericpromislow marked this pull request as draft January 15, 2025 22:50
@ericpromislow
Copy link
Contributor Author

This now depends on lasso PR 117 in order to improve the unit tests for ListByOptions

@ericpromislow ericpromislow marked this pull request as ready for review January 16, 2025 00:59
@ericpromislow ericpromislow requested review from tomleb and moio January 16, 2025 01:08
@ericpromislow ericpromislow merged commit 91795f7 into rancher:main Jan 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants