Project

Profile

Help

Task #6772

Collection Import needs to validate data with CollectionSerializer before saving

Added by bmbouter about 1 year ago. Updated 10 months ago.

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

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Background

pulpcore recommends all plugin writers validate data with the corresponding serializer before saving with this issue.

pulp_ansible creates CollectionVersion objects from data returned by ansible-lint here. Notice that the CollectionVersionSerializer is never used to validate the model prior to saving.

Solution

Use the CollectionVersionSerializer to validate the model data before saving.

Associated revisions

Revision 013744b3 View on GitHub
Added by Fabricio Aguiar about 1 year ago

Serializer to validate collections while importing

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

History

#1 Updated by fao89 about 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89

#2 Updated by pulpbot about 1 year ago

  • Status changed from ASSIGNED to POST

#3 Updated by Anonymous about 1 year ago

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

#4 Updated by fao89 12 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#5 Updated by fao89 10 months ago

  • Sprint/Milestone set to 0.2.0

Please register to edit this issue

Also available in: Atom PDF