Project

Profile

Help

Story #3624

As a user, I can as for only a reduced set of fields for large models like PythonPackageContent

Added by dalley over 1 year ago. Updated 6 months ago.

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

100%

Platform Release:
Blocks Release:
Target Release - Python:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 40

Description

When retreiving a list of PythonPackageContent from /content/python/packages/, the user should not be subjected to the full details of every content unit.

Which fields should we show? I propose

  • filename
  • name
  • packagetype
  • version

In addition to the fields

  • _href
  • created
  • notes
  • artifacts

Which get pulled in by the base Content serializer which we inherit from.

This looks like the following

{
    "_href": "http://localhost:8000/pulp/api/v3/content/python/packages/0d2f11f5-a8f6-44c9-9053-d1f3047adf3c/",
    "artifacts": {
        "shelf-reader-0.1.tar.gz": "http://localhost:8000/pulp/api/v3/artifacts/e6d61484-0d16-4296-9f80-5f6559dcbc2f/" 
    },
    "created": "2018-04-27T21:27:06.925524Z",
    "filename": "shelf-reader-0.1.tar.gz",
    "name": "shelf-reader",
    "notes": {},
    "packagetype": "sdist",
    "type": "python",
    "version": "0.1" 
}

Associated revisions

Revision 72e8139c View on GitHub
Added by dalley over 1 year ago

Add minimal serializer for PythonPackageContent

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

History

#1 Updated by dalley over 1 year ago

  • Project changed from Pulp to Python Support

#3 Updated by dalley over 1 year ago

  • Status changed from ASSIGNED to POST

#4 Updated by dalley over 1 year ago

  • Status changed from POST to ASSIGNED

#5 Updated by dalley over 1 year ago

  • Description updated (diff)

#6 Updated by amacdona@redhat.com over 1 year ago

  • Groomed changed from No to Yes

#7 Updated by bizhang over 1 year ago

  • Sprint/Milestone set to 3.0 beta release

#8 Updated by bizhang over 1 year ago

  • Sprint/Milestone deleted (3.0 beta release)

#9 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 36 to Sprint 37

#10 Updated by dalley over 1 year ago

  • Status changed from ASSIGNED to POST

#11 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 37 to Sprint 38

#12 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 38 to Sprint 39

#13 Updated by dalley over 1 year ago

  • Subject changed from As a user, "listing" PythonPackageContent will use a different serializer with a reduced set of fields to As a user, I can as for only a reduced set of fields for large models like PythonPackageContent

#14 Updated by dalley over 1 year ago

  • Tags Pulp 3 added

With the current implementation, in order to see the reduced set of fields, simply append the "?pretty=True" query parameter. If a minimal set of fields is not supported nothing will happen - if it is supported, it will be used.

#15 Updated by dkliban@redhat.com over 1 year ago

  • Sprint changed from Sprint 39 to Sprint 40

#16 Updated by dalley over 1 year ago

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

#17 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF