Skip to content

Commit

Permalink
Fixed collection version serializer field lengths
Browse files Browse the repository at this point in the history
fixes #8649

(cherry picked from commit 9cfa8cd)
  • Loading branch information
David Davis authored and fao89 committed Apr 29, 2021
1 parent 1c6afd4 commit 56ca11a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/8649.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated api lengths for collection version fields to match db model lengths.
6 changes: 3 additions & 3 deletions pulp_ansible/app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ class CollectionVersionSerializer(SingleArtifactContentSerializer, ContentChecks
child=serializers.CharField(max_length=32),
)

name = serializers.CharField(help_text=_("The name of the collection."), max_length=32)
name = serializers.CharField(help_text=_("The name of the collection."), max_length=64)

namespace = serializers.CharField(
help_text=_("The namespace of the collection."), max_length=32
help_text=_("The namespace of the collection."), max_length=64
)

repository = serializers.CharField(
Expand All @@ -363,7 +363,7 @@ class CollectionVersionSerializer(SingleArtifactContentSerializer, ContentChecks

tags = TagNestedSerializer(many=True, read_only=True)

version = serializers.CharField(help_text=_("The version of the collection."), max_length=32)
version = serializers.CharField(help_text=_("The version of the collection."), max_length=128)

requires_ansible = serializers.CharField(
help_text=_(
Expand Down

0 comments on commit 56ca11a

Please sign in to comment.