Skip to content

Commit

Permalink
Explose the plain component to API querries
Browse files Browse the repository at this point in the history
closes #1167
  • Loading branch information
quba42 committed Oct 8, 2024
1 parent d98e115 commit f8b9692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/1167.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Exposed the plain component when retrieving ReleaseComponent content via the API.
2 changes: 2 additions & 0 deletions pulp_deb/app/serializers/content_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,12 +856,14 @@ def retrieve(self, validated_data):

component = CharField(help_text="Name of the component.")
distribution = CharField(help_text="Name of the distribution.")
plain_component = CharField(help_text="Name of the component without any path prefixes.")

class Meta(NoArtifactContentSerializer.Meta):
model = ReleaseComponent
fields = NoArtifactContentSerializer.Meta.fields + (
"component",
"distribution",
"plain_component",
)


Expand Down

0 comments on commit f8b9692

Please sign in to comment.