Project

Profile

Help

Story #5076

As a user, I have 'latest' as a boolean query parameter for CollectionVersion

Added by bmbouter 5 months ago. Updated 5 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 55

Description

In addition to the fields being searchable, a 'latest' parameter should be available that defaults to False. If True, it will only return the latest version when multiple versions of one Collection name are returned in the results.


Related issues

Related to Ansible Plugin - Test #5269: Test - As a user, I have 'latest' as a boolean query parameter for CollectionVersion NEW Actions

Associated revisions

Revision ca36e63b View on GitHub
Added by bmbouter 5 months ago

Add 'latest' boolean for Collection filtering

When 'latest' is True, only include a Collection if it is the newest
version of <namespace, name>.

https://pulp.plan.io/issues/5076
closes #5076

Revision d2380d87 View on GitHub
Added by alikins 5 months ago

Fix missing dep on 'packaging' dep in setup.py

Add 'packaging' dep required by
changes introduced in
ca36e63b033a1371ee02797cd7a854093330b5b0

https://pulp.plan.io/issues/5076
re #5076

History

#1 Updated by daviddavis 5 months ago

I'm wondering how we determine latest? There are cases like 0.10.0 vs 0.2.0 and weird versions like "0.2.0-beta0.2".

#2 Updated by bmbouter 5 months ago

We could filter them in memory using the python tools and then rebuild the queryset for the user by it's ids.

#3 Updated by bmbouter 5 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
  • Sprint set to Sprint 55

Taking as assigned to unblock Galaxy dev.

#4 Updated by bmbouter 5 months ago

  • Status changed from ASSIGNED to POST

#5 Updated by bmbouter 5 months ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#6 Updated by kersom 4 months ago

  • Related to Test #5269: Test - As a user, I have 'latest' as a boolean query parameter for CollectionVersion added

Please register to edit this issue

Also available in: Atom PDF