From 00447233d37e2739cad1c0fa83169caf18e4ee34 Mon Sep 17 00:00:00 2001 From: Gerrod Ubben Date: Tue, 27 Jan 2026 15:47:30 -0500 Subject: [PATCH] Add pulp-label serializer helpers to plugin api Assisted by: claude-4.5-sonnet (cherry picked from commit 9b0aa39f328664a3e42df97941e5f1a128ba2f42) --- CHANGES/plugin_api/+pulp-labels-api.bugfix | 1 + pulpcore/app/serializers/__init__.py | 1 + pulpcore/plugin/serializers/__init__.py | 4 ++++ 3 files changed, 6 insertions(+) create mode 100644 CHANGES/plugin_api/+pulp-labels-api.bugfix diff --git a/CHANGES/plugin_api/+pulp-labels-api.bugfix b/CHANGES/plugin_api/+pulp-labels-api.bugfix new file mode 100644 index 00000000000..1250cc20f87 --- /dev/null +++ b/CHANGES/plugin_api/+pulp-labels-api.bugfix @@ -0,0 +1 @@ +Exposed `PulpLabelsField` and `pulp_labels_validator` to the plugin API. diff --git a/pulpcore/app/serializers/__init__.py b/pulpcore/app/serializers/__init__.py index ac85fb9f7ca..be44c31de94 100644 --- a/pulpcore/app/serializers/__init__.py +++ b/pulpcore/app/serializers/__init__.py @@ -33,6 +33,7 @@ JSONDictField, JSONListField, LatestVersionField, + PulpLabelsField, SingleContentArtifactField, RepositoryVersionsIdentityFromRepositoryField, RepositoryVersionRelatedField, diff --git a/pulpcore/plugin/serializers/__init__.py b/pulpcore/plugin/serializers/__init__.py index 7e0798f458a..b4f743fe899 100644 --- a/pulpcore/plugin/serializers/__init__.py +++ b/pulpcore/plugin/serializers/__init__.py @@ -26,6 +26,8 @@ ProgressReportSerializer, PRNField, PublicationSerializer, + PulpLabelsField, + pulp_labels_validator, RelatedField, RemoteSerializer, RepositorySerializer, @@ -75,6 +77,8 @@ "ProgressReportSerializer", "PRNField", "PublicationSerializer", + "PulpLabelsField", + "pulp_labels_validator", "RelatedField", "RemoteSerializer", "RepositorySerializer",