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.
- pulp_certguard/app/__init__.py +1 -1
- pulp_file/app/__init__.py +1 -1
- pulpcore/app/apps.py +1 -1
- pulpcore/app/models/task.py +1 -1
- pulpcore/app/serializers/task.py +8 -7
- {pulpcore-3.89.1.dist-info → pulpcore-3.89.2.dist-info}/METADATA +1 -1
- {pulpcore-3.89.1.dist-info → pulpcore-3.89.2.dist-info}/RECORD +11 -11
- {pulpcore-3.89.1.dist-info → pulpcore-3.89.2.dist-info}/WHEEL +0 -0
- {pulpcore-3.89.1.dist-info → pulpcore-3.89.2.dist-info}/entry_points.txt +0 -0
- {pulpcore-3.89.1.dist-info → pulpcore-3.89.2.dist-info}/licenses/LICENSE +0 -0
- {pulpcore-3.89.1.dist-info → pulpcore-3.89.2.dist-info}/top_level.txt +0 -0
pulp_certguard/app/__init__.py
CHANGED
pulp_file/app/__init__.py
CHANGED
pulpcore/app/apps.py
CHANGED
pulpcore/app/models/task.py
CHANGED
|
@@ -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):
|
pulpcore/app/serializers/task.py
CHANGED
|
@@ -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 =
|
|
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
|
|
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
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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=
|
|
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.
|
|
446
|
-
pulpcore-3.89.
|
|
447
|
-
pulpcore-3.89.
|
|
448
|
-
pulpcore-3.89.
|
|
449
|
-
pulpcore-3.89.
|
|
450
|
-
pulpcore-3.89.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|