feat(ui): restore sort by last updated date#5577
Open
stevefulme1 wants to merge 1 commit intoansible:masterfrom
Open
feat(ui): restore sort by last updated date#5577stevefulme1 wants to merge 1 commit intoansible:masterfrom
stevefulme1 wants to merge 1 commit intoansible:masterfrom
Conversation
Add "Last updated" sort option to the collections search page sort dropdown. Also update the collection list item to prefer updated_at over pulp_created for the "Updated" display when available. Ref: AAP-67527 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
updated_at) sort option to the collections search page sort dropdownupdated_atoverpulp_createdfor the "Updated" date display when availableupdated_atfield toCollectionVersionSearchresponse typeBackend dependency
The frontend sort option sends
order_by=updated_atto thev3/plugin/ansible/search/collection-versions/API. The backend (pulp_ansible) must support this parameter for the sort to work. Ifupdated_atis not yet exposed:pulp_ansiblesearch endpoint needs to includeupdated_atin the serializercollectionstable should have an index onupdated_atfor performanceRef: AAP-67527
Files changed
src/components/collection-filter.ts— Added "Last updated" sort optionsrc/api/response-types/collection.ts— Added optionalupdated_atfieldsrc/components/collection-list-item.tsx— Preferupdated_atfor date displayTest plan
order_by=updated_atpulp_createdwhenupdated_atis undefinednpm run lint:ts)🤖 Generated with Claude Code