pulpcore 3.89.1__py3-none-any.whl → 3.89.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulpcore might be problematic. Click here for more details.

@@ -6,6 +6,6 @@ class PulpCertGuardPluginAppConfig(PulpPluginAppConfig):
6
6
 
7
7
  name = "pulp_certguard.app"
8
8
  label = "certguard"
9
- version = "3.89.1"
9
+ version = "3.89.2"
10
10
  python_package_name = "pulpcore"
11
11
  domain_compatible = True
pulp_file/app/__init__.py CHANGED
@@ -8,6 +8,6 @@ class PulpFilePluginAppConfig(PulpPluginAppConfig):
8
8
 
9
9
  name = "pulp_file.app"
10
10
  label = "file"
11
- version = "3.89.1"
11
+ version = "3.89.2"
12
12
  python_package_name = "pulpcore"
13
13
  domain_compatible = True
pulpcore/app/apps.py CHANGED
@@ -239,7 +239,7 @@ class PulpAppConfig(PulpPluginAppConfig):
239
239
  label = "core"
240
240
 
241
241
  # The version of this app
242
- version = "3.89.1"
242
+ version = "3.89.2"
243
243
 
244
244
  # The python package name providing this app
245
245
  python_package_name = "pulpcore"
@@ -72,7 +72,7 @@ class TaskManager(models.Manager):
72
72
  # Always make encrypted args deferred.
73
73
  # This will prevent a lot of issues when the fernet key is lost.
74
74
  # Only task workers need to be able to read these args anyway.
75
- return super().get_queryset().defer("enc_args", "enc_kwargs")
75
+ return super().get_queryset().defer("enc_args", "enc_kwargs", "worker")
76
76
 
77
77
 
78
78
  class Task(BaseModel, AutoAddObjPermsMixin):
@@ -1,6 +1,8 @@
1
+ import typing as t
1
2
  from gettext import gettext as _
2
3
 
3
4
  from rest_framework import serializers
5
+ from drf_spectacular.types import OpenApiTypes
4
6
 
5
7
  from pulpcore.app import models
6
8
  from pulpcore.app.serializers import (
@@ -52,13 +54,9 @@ class TaskSerializer(ModelSerializer):
52
54
  ),
53
55
  read_only=True,
54
56
  )
55
- worker = RelatedField(
56
- help_text=_(
57
- "The worker associated with this task."
58
- " This field is empty if a worker is not yet assigned."
59
- ),
57
+ worker = serializers.SerializerMethodField(
58
+ help_text=_("DEPRECATED - Always null"),
60
59
  read_only=True,
61
- view_name="workers-detail",
62
60
  )
63
61
  parent_task = RelatedField(
64
62
  help_text=_("The parent task that spawned this task."),
@@ -93,7 +91,10 @@ class TaskSerializer(ModelSerializer):
93
91
  help_text=_("The result of this task."),
94
92
  )
95
93
 
96
- def get_created_by(self, obj):
94
+ def get_worker(self, obj) -> t.Optional[OpenApiTypes.URI]:
95
+ return None
96
+
97
+ def get_created_by(self, obj) -> t.Optional[OpenApiTypes.URI]:
97
98
  if task_user_map := self.context.get("task_user_mapping"):
98
99
  if user_id := task_user_map.get(str(obj.pk)):
99
100
  kwargs = {"pk": user_id}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulpcore
3
- Version: 3.89.1
3
+ Version: 3.89.2
4
4
  Summary: Pulp Django Application and Related Modules
5
5
  Author-email: Pulp Team <pulp-list@redhat.com>
6
6
  Project-URL: Homepage, https://pulpproject.org
@@ -1,6 +1,6 @@
1
1
  pulp_certguard/__init__.py,sha256=llnEd00PrsAretsgAOHiNKFbmvIdXe3iDVPmSaKz7gU,71
2
2
  pulp_certguard/pytest_plugin.py,sha256=qhRbChzqN2PROtD-65KuoTfKr5k9T3GPsz9daFgpqpM,852
3
- pulp_certguard/app/__init__.py,sha256=kzZ3wGxLCnXlRgOmYT-vBx3VCggg0xU0kGvyP20WwPU,297
3
+ pulp_certguard/app/__init__.py,sha256=JTTjiUc7Zh8W7hm6-Mq79I-LZatUjQyT5qM45bNJO_4,297
4
4
  pulp_certguard/app/models.py,sha256=YLEhBtZM4hetekVZ_GTnbLlWD6CkIQw2B3ILwXRcq-s,7483
5
5
  pulp_certguard/app/serializers.py,sha256=9IxlQiy783RdKF9oI1mrYS4haG5Boy2DOjfP_eJtMLY,1726
6
6
  pulp_certguard/app/viewsets.py,sha256=1_gNmsWyOT8kcOiGVkn4-wrtAjZO4wC8q0-aoEsCpjI,697
@@ -51,7 +51,7 @@ pulp_certguard/tests/unit/test_rhsm_check_path.py,sha256=Q1CsXnUgD7ELvtolPeumyNr
51
51
  pulp_file/__init__.py,sha256=0vOCXofR6Eyxkg4y66esnOGPeESCe23C1cNBHj56w44,61
52
52
  pulp_file/manifest.py,sha256=1WwIOJrPSkFcmkRm7CkWifVOCoZvo_nnANgce6uuG7U,3796
53
53
  pulp_file/pytest_plugin.py,sha256=l1PvTxUi5D3uJy4SnHWNhr-otWEYNcm-kc5nSqVJg0Y,10646
54
- pulp_file/app/__init__.py,sha256=6FWiOFXIN2a4JlLw834RSEMf5qWBPWHMg6jdX4tCeDA,292
54
+ pulp_file/app/__init__.py,sha256=gkJ-3DozJqOLk6g8h3st71A7bJmbtam_gBSKSXb9p7U,292
55
55
  pulp_file/app/modelresource.py,sha256=v-m-_bBEsfr8wG0TI5ffx1TuKUy2-PsirhuQz4XXF-0,1063
56
56
  pulp_file/app/models.py,sha256=QsrVg_2uKqnR89sLN2Y7Zy260_nLIcUfa94uZowlmFw,4571
57
57
  pulp_file/app/replica.py,sha256=OtNWVmdFUgNTYhPttftVNQnSrnvx2_hnrJgtW_G0Vrg,1894
@@ -96,7 +96,7 @@ pulpcore/pytest_plugin.py,sha256=fy9vz5-bw30T7f4jxDtNIgF7L_0MJ_q7KIAzpvizvnY,382
96
96
  pulpcore/responses.py,sha256=mIGKmdCfTSoZxbFu4yIH1xbdLx1u5gqt3D99LTamcJg,6125
97
97
  pulpcore/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
98
98
  pulpcore/app/access_policy.py,sha256=5vCKy6WoHtIt1_-eS5vMaZ7CmR4G-CIpsrB8yT-d88Q,6079
99
- pulpcore/app/apps.py,sha256=olMl0UW7f9cvpoq01vVOwYOO9ejWOzxFPcBE_fPwUJQ,17412
99
+ pulpcore/app/apps.py,sha256=rXb7bcEMjYPiaecOGTbjBLtEGl14qapCuBZgU898gbE,17412
100
100
  pulpcore/app/authentication.py,sha256=1LIJW6HIQQlZrliHy__jdzkDEh6Oj7xKgd0V-vRcDus,2855
101
101
  pulpcore/app/checks.py,sha256=jbfTF7nmftBbky4AQXHigpyCaGydKasvRUXsd72JZVg,1946
102
102
  pulpcore/app/entrypoint.py,sha256=GYEq4GjglQZhFlU3865AT_H0nPypDKJAsf8qdyR4tPY,4985
@@ -212,7 +212,7 @@ pulpcore/app/models/repository.py,sha256=SIc21Gex6okxI7OCfHEGIpXpGlypG3z9IgMt5-m
212
212
  pulpcore/app/models/role.py,sha256=dZklNd2VeAw4cT6dyJ7SyTBt9sZvdqakY86wXGAY3vU,3287
213
213
  pulpcore/app/models/status.py,sha256=WniovQQFdlR0TN-XWd_0FnBRiwzKxDyODyD-5VUgXjo,8290
214
214
  pulpcore/app/models/storage.py,sha256=2b-DQWaO31NqjV6FiISALegND-sQZAU7BVAsduUvm3o,6780
215
- pulpcore/app/models/task.py,sha256=0SLfpkyIvyJ1WAWKHl_eanjjincU0UUGyws1k0YTiys,16031
215
+ pulpcore/app/models/task.py,sha256=ehdoRHXAoES_AWKEMTf6Ohbx6msf4y9Z-K1Ypvcmn7E,16041
216
216
  pulpcore/app/models/upload.py,sha256=3njXT2rrVJwBjEDegvqcLD9_7cPnnl974lhbAhikEp8,3004
217
217
  pulpcore/app/models/vulnerability_report.py,sha256=DDAUjDaW3Kn9KPBkBl94u4EuQy8UIu5wKbmE5kMkhWE,1238
218
218
  pulpcore/app/protobuf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -236,7 +236,7 @@ pulpcore/app/serializers/repair.py,sha256=uKrxTnhoarxyyGCixPRn9pmG19gRRVUTM7nPwC
236
236
  pulpcore/app/serializers/replica.py,sha256=E3jwn1vfBqT4Y4s9pWsTrUEJKPO9pO0q2ZmwcpIDVh4,4044
237
237
  pulpcore/app/serializers/repository.py,sha256=BNv0yX1JJs57VcMdzjU5rthRMcm1KB93Seqp6jve2i8,20468
238
238
  pulpcore/app/serializers/status.py,sha256=RRlymRv_CrfCog3xIZUY86L03MHButvsJu8xmzdoreY,4245
239
- pulpcore/app/serializers/task.py,sha256=FmYJDwKOkOsCUoBWTMgPrBEwqZQX0KreDR0lgX4aC-M,9110
239
+ pulpcore/app/serializers/task.py,sha256=InkDY8jHUc1IwySvDgTsbzJEY_7zgCLuNo_egY28LqI,9174
240
240
  pulpcore/app/serializers/upload.py,sha256=4r6iBegbYHmgFYjBYPcqB8J7eSxXgY4ukayMxJZNh_M,2402
241
241
  pulpcore/app/serializers/user.py,sha256=QBEnUCfq2my3Lq_pohj7hphDE8wqU6g6fnYuEXl8VtI,18413
242
242
  pulpcore/app/serializers/vulnerability_report.py,sha256=N7geQkTDZ7_SCipo6Q4LGBInwuGy8-tGIpwGIPWimm4,787
@@ -442,9 +442,9 @@ pulpcore/tests/unit/stages/test_artifactdownloader.py,sha256=DX6jHctGYbDhsnzQpXf
442
442
  pulpcore/tests/unit/stages/test_stages.py,sha256=H1a2BQLjdZlZvcb_qULp62huZ1xy6ItTcthktVyGU0w,4735
443
443
  pulpcore/tests/unit/viewsets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
444
444
  pulpcore/tests/unit/viewsets/test_viewset_base.py,sha256=gmVIgE9o0tAdiF92HCNiJkb1joc8oEaG5rnzh5V1loc,4837
445
- pulpcore-3.89.1.dist-info/licenses/LICENSE,sha256=dhnHU8rJXUdAIgIjveSKAyYG_KzN5eVG-bxETIGrNW0,17988
446
- pulpcore-3.89.1.dist-info/METADATA,sha256=1I5stsaDz0RlRSksncFLEkJz2jKcrrbs15yI8LC27ys,4104
447
- pulpcore-3.89.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
448
- pulpcore-3.89.1.dist-info/entry_points.txt,sha256=OZven4wzXzQA5b5q9MpP4HUpIPPQCSvIOvkKtNInrK0,452
449
- pulpcore-3.89.1.dist-info/top_level.txt,sha256=6h-Lm3FKQSaT_nL1KSxu_hBnzKE15bcvf_BoU-ea4CI,34
450
- pulpcore-3.89.1.dist-info/RECORD,,
445
+ pulpcore-3.89.2.dist-info/licenses/LICENSE,sha256=dhnHU8rJXUdAIgIjveSKAyYG_KzN5eVG-bxETIGrNW0,17988
446
+ pulpcore-3.89.2.dist-info/METADATA,sha256=WFSGeuW8CvTSqCbo7efbhUuQ9usJUBks3PeDKgch930,4104
447
+ pulpcore-3.89.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
448
+ pulpcore-3.89.2.dist-info/entry_points.txt,sha256=OZven4wzXzQA5b5q9MpP4HUpIPPQCSvIOvkKtNInrK0,452
449
+ pulpcore-3.89.2.dist-info/top_level.txt,sha256=6h-Lm3FKQSaT_nL1KSxu_hBnzKE15bcvf_BoU-ea4CI,34
450
+ pulpcore-3.89.2.dist-info/RECORD,,