Project

Profile

Help

Story #8761

Task #8740: [EPIC] Publication based plugins should use either `distribution.repository` or `distribution.publication` but not both

Add validation to Distribution serializer

Added by bmbouter about 1 month ago. Updated 19 days ago.

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

100%

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

Description

BaseDistributionSerializer and RepositoryVersionSerializer had some validation preventing users from setting them up incorrectly which was not added to DistributionSerializer.

  • You should not be allowed to set Distribution.repository_version and Distribution.publication at the same time
  • You should not be allowed to set Distribution.repository and Distribution.repository_version at the same time

Associated revisions

Revision 1e262aa9 View on GitHub
Added by dalley 26 days ago

Bring back some of the Distribution validation around "repository"

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

History

#1 Updated by bmbouter about 1 month ago

  • Sprint/Milestone set to 3.14.0

This can't happen in 3.13 because pulp_file has a release which could set Distribution.repository and Distribution.publication at the same time. That release declares compatibility with <=3.13, so the earliest we can do this is 3.14.

#2 Updated by dalley 26 days ago

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

#3 Updated by dalley 26 days ago

  • Subject changed from Add database constraints relating to Distributions to Add validation to Distribution serializer
  • Description updated (diff)
  • Sprint/Milestone changed from 3.14.0 to 3.13.0

#4 Updated by pulpbot 19 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF