Skip to content

Commit

Permalink
Fix duplicate operationIDs in Galaxy API (pulp#1371)
Browse files Browse the repository at this point in the history
fixes: pulp#1356
  • Loading branch information
gerrod3 authored Mar 6, 2023
1 parent 587382d commit eda7dc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/1356.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed duplicate operationIDs in Galaxy V1 & V2 API endpoint schemas.
4 changes: 3 additions & 1 deletion pulp_ansible/app/galaxy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.conf import settings
from django.shortcuts import get_object_or_404, HttpResponse
from drf_spectacular.utils import extend_schema
from drf_spectacular.utils import extend_schema, extend_schema_view
from rest_framework import generics, pagination, response, views

from pulpcore.plugin.models import PulpTemporaryFile
Expand Down Expand Up @@ -113,6 +113,7 @@ def get_queryset(self):
return roles


@extend_schema_view(get=extend_schema(operation_id="api_v1_roles_versions_list"))
class RoleVersionList(DistributionMixin, generics.ListAPIView):
"""
APIView for Role Versions.
Expand Down Expand Up @@ -189,6 +190,7 @@ def post(self, request, path):
return OperationPostponedResponse(async_result, request)


@extend_schema_view(get=extend_schema(operation_id="api_v2_collection_versions_list"))
class GalaxyCollectionVersionList(DistributionMixin, generics.ListAPIView):
"""
APIView for Collections by namespace/name.
Expand Down

0 comments on commit eda7dc1

Please sign in to comment.