Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/+uuid-api-param.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix OpenAPI spec to use string instead of UUID format.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ include pulpcore/app/templates/rest_framework/api.html
include manage.py
include test_requirements.txt
exclude releasing.md
exclude AGENTS.md
exclude CLAUDE.md
Comment on lines +18 to +19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove these now and rebase your PR.

recursive-exclude pulpcore/tasking/task_trigger_demonstration *
3 changes: 3 additions & 0 deletions pulpcore/app/viewsets/custom_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from django.conf import settings
from django.db.models import ObjectDoesNotExist
from django_filters import BaseInFilter, CharFilter, Filter
from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import extend_schema_field
from rest_framework import serializers
from rest_framework.serializers import ValidationError as DRFValidationError

Expand Down Expand Up @@ -114,6 +116,7 @@ def filter(self, qs, value):
return qs.filter(created_resources__object_id=resource.pk)


@extend_schema_field(OpenApiTypes.STR)
class RepoVersionHrefPrnFilter(Filter):
"""
Filter Content by a Repository Version.
Expand Down
2 changes: 2 additions & 0 deletions pulpcore/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from drf_spectacular.types import OpenApiTypes
from drf_spectacular.plumbing import build_basic_type
from drf_spectacular.utils import extend_schema_field
from drf_spectacular.contrib.django_filters import DjangoFilterExtension

from pulpcore.app.util import extract_pk, resolve_prn, get_domain_pk
Expand All @@ -42,6 +43,7 @@ def filter(self, qs, value):
return qs.order_by(*ordering)


@extend_schema_field(OpenApiTypes.STR)
class HyperlinkRelatedFilter(filters.Filter):
"""
Enables a user to filter by a foreign key using that FK's href/prn.
Expand Down