pulpcore 3.84.0__py3-none-any.whl → 3.85.0__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.

Files changed (163) hide show
  1. pulp_certguard/app/__init__.py +1 -1
  2. pulp_certguard/app/models.py +7 -26
  3. pulp_certguard/app/serializers.py +0 -2
  4. pulp_certguard/rhsm/__init__.py +4 -0
  5. pulp_certguard/rhsm/rhsm_check_path.py +198 -0
  6. pulp_certguard/tests/unit/certdata.py +249 -0
  7. pulp_certguard/tests/unit/test_rhsm_check_path.py +213 -0
  8. pulp_file/app/__init__.py +1 -1
  9. pulp_file/app/migrations/0001_initial_squashed_0016_add_domain.py +0 -20
  10. pulp_file/app/migrations/0017_alter_filealternatecontentsource_alternatecontentsource_ptr_and_more.py +1 -1
  11. pulpcore/app/apps.py +2 -12
  12. pulpcore/app/entrypoint.py +22 -22
  13. pulpcore/app/migrations/0001_squashed_0090_char_to_text_field.py +0 -95
  14. pulpcore/app/migrations/0091_systemid.py +1 -1
  15. pulp_file/app/migrations/0006_delete_filefilesystemexporter.py → pulpcore/app/migrations/0136_delete_basedistribution.py +3 -3
  16. pulpcore/app/migrations/0137_appstatus.py +33 -0
  17. pulpcore/app/migrations/0138_vulnerabilityreport.py +33 -0
  18. pulpcore/app/models/__init__.py +4 -1
  19. pulpcore/app/models/publication.py +0 -41
  20. pulpcore/app/models/status.py +145 -0
  21. pulpcore/app/models/task.py +1 -0
  22. pulpcore/app/models/vulnerability_report.py +34 -0
  23. pulpcore/app/serializers/__init__.py +1 -0
  24. pulpcore/app/serializers/content.py +13 -1
  25. pulpcore/app/serializers/repository.py +8 -1
  26. pulpcore/app/serializers/vulnerability_report.py +27 -0
  27. pulpcore/app/settings.py +14 -47
  28. pulpcore/app/tasks/__init__.py +2 -0
  29. pulpcore/app/tasks/vulnerability_report.py +159 -0
  30. pulpcore/app/viewsets/__init__.py +1 -0
  31. pulpcore/app/viewsets/vulnerability_report.py +20 -0
  32. pulpcore/constants.py +4 -0
  33. pulpcore/content/__init__.py +23 -22
  34. pulpcore/content/handler.py +5 -2
  35. pulpcore/migrations.py +38 -11
  36. pulpcore/openapi/__init__.py +8 -0
  37. pulpcore/plugin/models/__init__.py +2 -0
  38. pulpcore/plugin/serializers/__init__.py +2 -0
  39. pulpcore/plugin/tasking.py +2 -0
  40. pulpcore/plugin/viewsets/__init__.py +2 -0
  41. pulpcore/pytest_plugin.py +21 -21
  42. pulpcore/tasking/worker.py +38 -35
  43. pulpcore/tests/functional/api/test_auth.py +18 -3
  44. pulpcore/tests/functional/api/test_openapi_schema.py +32 -15
  45. pulpcore/tests/functional/api/using_plugin/test_checkpoint.py +23 -1
  46. pulpcore/tests/functional/api/using_plugin/test_proxy.py +1 -1
  47. pulpcore/tests/unit/content/test_heartbeat.py +11 -8
  48. pulpcore/tests/unit/test_vulnerability_report.py +74 -0
  49. {pulpcore-3.84.0.dist-info → pulpcore-3.85.0.dist-info}/METADATA +12 -17
  50. {pulpcore-3.84.0.dist-info → pulpcore-3.85.0.dist-info}/RECORD +54 -152
  51. pulp_certguard/app/utils.py +0 -28
  52. pulp_certguard/tests/unit/test_models.py +0 -9
  53. pulp_file/app/migrations/0001_initial.py +0 -59
  54. pulp_file/app/migrations/0002_file_related_names.py +0 -55
  55. pulp_file/app/migrations/0003_auto_20191014_1721.py +0 -18
  56. pulp_file/app/migrations/0004_filefilesystemexporter.py +0 -21
  57. pulp_file/app/migrations/0005_filerepository.py +0 -24
  58. pulp_file/app/migrations/0007_filefilesystemexporter.py +0 -25
  59. pulp_file/app/migrations/0008_add_manifest_field.py +0 -19
  60. pulp_file/app/migrations/0009_move_data_to_new_master_distribution_model.py +0 -77
  61. pulp_file/app/migrations/0010_auto_publish.py +0 -23
  62. pulp_file/app/migrations/0011_fix_auto_publish.py +0 -36
  63. pulp_file/app/migrations/0012_delete_filefilesystemexporter.py +0 -28
  64. pulp_file/app/migrations/0013_file_acs.py +0 -24
  65. pulp_file/app/migrations/0014_new_rbac_permissions.py +0 -33
  66. pulp_file/app/migrations/0015_allow_null_manifest.py +0 -23
  67. pulp_file/app/migrations/0016_add_domain.py +0 -25
  68. pulpcore/app/migrations/0001_initial.py +0 -451
  69. pulpcore/app/migrations/0002_increase_artifact_size_field.py +0 -18
  70. pulpcore/app/migrations/0003_remove_upload_completed.py +0 -17
  71. pulpcore/app/migrations/0004_add_duplicated_reserved_resources.py +0 -45
  72. pulpcore/app/migrations/0005_progressreport_code.py +0 -19
  73. pulpcore/app/migrations/0006_repository_plugin_managed.py +0 -18
  74. pulpcore/app/migrations/0007_delete_progress_proxies.py +0 -19
  75. pulpcore/app/migrations/0008_published_metadata_as_content.py +0 -44
  76. pulpcore/app/migrations/0009_remove_task_non_fatal_errors.py +0 -17
  77. pulpcore/app/migrations/0010_pulp_fields.py +0 -570
  78. pulpcore/app/migrations/0011_relative_path.py +0 -28
  79. pulpcore/app/migrations/0012_auto_20191104_2000.py +0 -31
  80. pulpcore/app/migrations/0013_repository_pulp_type.py +0 -18
  81. pulpcore/app/migrations/0014_remove_repository_plugin_managed.py +0 -17
  82. pulpcore/app/migrations/0015_auto_20191112_1426.py +0 -33
  83. pulpcore/app/migrations/0016_charfield_to_textfield.py +0 -68
  84. pulpcore/app/migrations/0017_remove_task_parent.py +0 -17
  85. pulpcore/app/migrations/0018_auto_20191127_2350.py +0 -20
  86. pulpcore/app/migrations/0019_add_signing_service_model.py +0 -27
  87. pulpcore/app/migrations/0020_change_publishedartifact_constraints.py +0 -17
  88. pulpcore/app/migrations/0021_add_signing_service_foreign_key.py +0 -24
  89. pulpcore/app/migrations/0022_rename_last_version.py +0 -27
  90. pulpcore/app/migrations/0023_change_exporter_models.py +0 -82
  91. pulpcore/app/migrations/0024_use_local_storage_for_uploads.py +0 -19
  92. pulpcore/app/migrations/0025_task_parent_task.py +0 -19
  93. pulpcore/app/migrations/0026_task_group.py +0 -32
  94. pulpcore/app/migrations/0027_export_backend.py +0 -31
  95. pulpcore/app/migrations/0028_import_importer_pulpimporter_pulpimporterrepository.py +0 -85
  96. pulpcore/app/migrations/0029_export_delete.py +0 -19
  97. pulpcore/app/migrations/0030_taskgroup_all_tasks_dispatched.py +0 -24
  98. pulpcore/app/migrations/0031_import_export_validate_params.py +0 -19
  99. pulpcore/app/migrations/0032_export_to_chunks.py +0 -27
  100. pulpcore/app/migrations/0033_increase_remote_artifact_size_field.py +0 -18
  101. pulpcore/app/migrations/0034_groupprogressreport.py +0 -32
  102. pulpcore/app/migrations/0035_content_upstream_id.py +0 -18
  103. pulpcore/app/migrations/0036_unprotect_last_export.py +0 -19
  104. pulpcore/app/migrations/0037_pulptemporaryfile.py +0 -28
  105. pulpcore/app/migrations/0038_repository_remote.py +0 -19
  106. pulpcore/app/migrations/0039_change_download_concurrency.py +0 -25
  107. pulpcore/app/migrations/0040_set_admin_is_staff.py +0 -28
  108. pulpcore/app/migrations/0041_accesspolicy.py +0 -29
  109. pulpcore/app/migrations/0042_rbac_for_tasks.py +0 -56
  110. pulpcore/app/migrations/0043_toc_attribute.py +0 -19
  111. pulpcore/app/migrations/0044_temp_file_artifact_field.py +0 -20
  112. pulpcore/app/migrations/0045_accesspolicy_permissions_allow_null.py +0 -19
  113. pulpcore/app/migrations/0046_task__resource_job_id.py +0 -35
  114. pulpcore/app/migrations/0047_improve_orphan_cleanup.py +0 -59
  115. pulpcore/app/migrations/0048_fips_checksums.py +0 -38
  116. pulpcore/app/migrations/0049_add_file_field_to_uploadchunk.py +0 -24
  117. pulpcore/app/migrations/0050_namespace_access_policies.py +0 -28
  118. pulpcore/app/migrations/0051_timeoutfields.py +0 -34
  119. pulpcore/app/migrations/0052_tasking_logging_cid.py +0 -18
  120. pulpcore/app/migrations/0053_remote_headers.py +0 -19
  121. pulpcore/app/migrations/0054_add_public_key.py +0 -104
  122. pulpcore/app/migrations/0055_label.py +0 -31
  123. pulpcore/app/migrations/0056_remote_rate_limit.py +0 -18
  124. pulpcore/app/migrations/0057_add_label_indexes.py +0 -23
  125. pulpcore/app/migrations/0058_accesspolicy_customized.py +0 -18
  126. pulpcore/app/migrations/0059_proxy_creds.py +0 -23
  127. pulpcore/app/migrations/0060_data_migration_proxy_creds.py +0 -45
  128. pulpcore/app/migrations/0061_call_handle_artifact_checksums_command.py +0 -87
  129. pulpcore/app/migrations/0062_add_new_distribution_mastermodel.py +0 -36
  130. pulpcore/app/migrations/0063_repository_retained_versions.py +0 -18
  131. pulpcore/app/migrations/0064_add_new_style_task_columns.py +0 -109
  132. pulpcore/app/migrations/0064_repository_user_hidden.py +0 -18
  133. pulpcore/app/migrations/0065_merge_20210615_1211.py +0 -14
  134. pulpcore/app/migrations/0066_download_concurrency_and_retry_changes.py +0 -24
  135. pulpcore/app/migrations/0067_add_protect_to_task_reservation.py +0 -19
  136. pulpcore/app/migrations/0068_add_timestamp_of_interest.py +0 -23
  137. pulpcore/app/migrations/0069_update_json_fields.py +0 -63
  138. pulpcore/app/migrations/0070_rename_retained_versions.py +0 -18
  139. pulpcore/app/migrations/0071_filesystemexport_filesystemexporter.py +0 -35
  140. pulpcore/app/migrations/0072_add_method_to_filesystem_exporter.py +0 -18
  141. pulpcore/app/migrations/0073_encrypt_remote_fields.py +0 -139
  142. pulpcore/app/migrations/0074_acs.py +0 -47
  143. pulpcore/app/migrations/0075_rbaccontentguard.py +0 -25
  144. pulpcore/app/migrations/0076_remove_reserved_resource.py +0 -39
  145. pulpcore/app/migrations/0077_move_remote_url_credentials.py +0 -41
  146. pulpcore/app/migrations/0078_grouprole_role_userrole.py +0 -70
  147. pulpcore/app/migrations/0079_rename_permissions_assignment_accesspolicy_creation_hooks.py +0 -18
  148. pulpcore/app/migrations/0080_proxy_group_model.py +0 -37
  149. pulpcore/app/migrations/0081_reapplabel_group_permissions.py +0 -59
  150. pulpcore/app/migrations/0082_add_manage_roles_permissions.py +0 -17
  151. pulpcore/app/migrations/0083_alter_group_options.py +0 -17
  152. pulpcore/app/migrations/0084_alter_rbaccontentguard_options.py +0 -17
  153. pulpcore/app/migrations/0085_contentredirectcontentguard.py +0 -26
  154. pulpcore/app/migrations/0086_task_json_fields.py +0 -77
  155. pulpcore/app/migrations/0087_taskschedule.py +0 -34
  156. pulpcore/app/migrations/0088_accesspolicy_queryset_scoping.py +0 -18
  157. pulpcore/app/migrations/0089_alter_contentredirectcontentguard_options.py +0 -17
  158. pulpcore/app/migrations/0090_char_to_text_field.py +0 -79
  159. pulpcore/tests/unit/migration/test_0077_move_remote_url_credentials.py +0 -35
  160. {pulpcore-3.84.0.dist-info → pulpcore-3.85.0.dist-info}/WHEEL +0 -0
  161. {pulpcore-3.84.0.dist-info → pulpcore-3.85.0.dist-info}/entry_points.txt +0 -0
  162. {pulpcore-3.84.0.dist-info → pulpcore-3.85.0.dist-info}/licenses/LICENSE +0 -0
  163. {pulpcore-3.84.0.dist-info → pulpcore-3.85.0.dist-info}/top_level.txt +0 -0
@@ -1,451 +0,0 @@
1
- # Generated by Django 2.2.2 on 2019-06-28 13:08
2
-
3
- import django.core.validators
4
- from django.db import migrations, models
5
- import django.db.models.deletion
6
- import pulpcore.app.models.content
7
- import pulpcore.app.models.fields
8
- import pulpcore.app.models.publication
9
- import pulpcore.app.models.task
10
- import uuid
11
-
12
-
13
- class Migration(migrations.Migration):
14
-
15
- initial = True
16
-
17
- dependencies = [
18
- ('contenttypes', '0002_remove_content_type_name'),
19
- ]
20
-
21
- operations = [
22
- migrations.CreateModel(
23
- name='Artifact',
24
- fields=[
25
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
26
- ('_created', models.DateTimeField(auto_now_add=True)),
27
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
28
- ('file', pulpcore.app.models.fields.ArtifactFileField(max_length=255, upload_to=pulpcore.app.models.content.Artifact.storage_path)),
29
- ('size', models.IntegerField()),
30
- ('md5', models.CharField(db_index=True, max_length=32)),
31
- ('sha1', models.CharField(db_index=True, max_length=40)),
32
- ('sha224', models.CharField(db_index=True, max_length=56)),
33
- ('sha256', models.CharField(db_index=True, max_length=64, unique=True)),
34
- ('sha384', models.CharField(db_index=True, max_length=96, unique=True)),
35
- ('sha512', models.CharField(db_index=True, max_length=128, unique=True)),
36
- ],
37
- options={
38
- 'abstract': False,
39
- },
40
- ),
41
- migrations.CreateModel(
42
- name='Content',
43
- fields=[
44
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
45
- ('_created', models.DateTimeField(auto_now_add=True)),
46
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
47
- ('_type', models.TextField(default=None)),
48
- ],
49
- options={
50
- 'verbose_name_plural': 'content',
51
- },
52
- bases=(models.Model, pulpcore.app.models.content.QueryMixin),
53
- ),
54
- migrations.CreateModel(
55
- name='ContentAppStatus',
56
- fields=[
57
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
58
- ('_created', models.DateTimeField(auto_now_add=True)),
59
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
60
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
61
- ('last_heartbeat', models.DateTimeField(auto_now=True)),
62
- ],
63
- options={
64
- 'abstract': False,
65
- },
66
- ),
67
- migrations.CreateModel(
68
- name='ContentArtifact',
69
- fields=[
70
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
71
- ('_created', models.DateTimeField(auto_now_add=True)),
72
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
73
- ('relative_path', models.CharField(max_length=255)),
74
- ('artifact', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='core.Artifact')),
75
- ('content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Content')),
76
- ],
77
- options={
78
- 'unique_together': {('content', 'relative_path')},
79
- },
80
- bases=(models.Model, pulpcore.app.models.content.QueryMixin),
81
- ),
82
- migrations.CreateModel(
83
- name='ContentGuard',
84
- fields=[
85
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
86
- ('_created', models.DateTimeField(auto_now_add=True)),
87
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
88
- ('_type', models.TextField(default=None)),
89
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
90
- ('description', models.TextField(null=True)),
91
- ],
92
- options={
93
- 'abstract': False,
94
- },
95
- ),
96
- migrations.CreateModel(
97
- name='Exporter',
98
- fields=[
99
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
100
- ('_created', models.DateTimeField(auto_now_add=True)),
101
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
102
- ('_type', models.TextField(default=None)),
103
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
104
- ('last_export', models.DateTimeField(null=True)),
105
- ],
106
- options={
107
- 'default_related_name': 'exporters',
108
- },
109
- ),
110
- migrations.CreateModel(
111
- name='Publisher',
112
- fields=[
113
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
114
- ('_created', models.DateTimeField(auto_now_add=True)),
115
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
116
- ('_type', models.TextField(default=None)),
117
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
118
- ],
119
- options={
120
- 'default_related_name': 'publishers',
121
- },
122
- ),
123
- migrations.CreateModel(
124
- name='Remote',
125
- fields=[
126
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
127
- ('_created', models.DateTimeField(auto_now_add=True)),
128
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
129
- ('_type', models.TextField(default=None)),
130
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
131
- ('url', models.TextField()),
132
- ('ssl_ca_certificate', models.TextField(null=True)),
133
- ('ssl_client_certificate', models.TextField(null=True)),
134
- ('ssl_client_key', models.TextField(null=True)),
135
- ('ssl_validation', models.BooleanField(default=True)),
136
- ('proxy_url', models.TextField(null=True)),
137
- ('username', models.TextField(null=True)),
138
- ('password', models.TextField(null=True)),
139
- ('download_concurrency', models.PositiveIntegerField(default=20)),
140
- ('policy', models.TextField(choices=[('immediate', 'When syncing, download all metadata and content now.'), ('on_demand', 'When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests.'), ('streamed', 'When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.')], default='immediate')),
141
- ],
142
- options={
143
- 'default_related_name': 'remotes',
144
- },
145
- ),
146
- migrations.CreateModel(
147
- name='Repository',
148
- fields=[
149
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
150
- ('_created', models.DateTimeField(auto_now_add=True)),
151
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
152
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
153
- ('description', models.TextField(null=True)),
154
- ('last_version', models.PositiveIntegerField(default=0)),
155
- ],
156
- options={
157
- 'verbose_name_plural': 'repositories',
158
- },
159
- ),
160
- migrations.CreateModel(
161
- name='RepositoryVersion',
162
- fields=[
163
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
164
- ('_created', models.DateTimeField(auto_now_add=True)),
165
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
166
- ('number', models.PositiveIntegerField(db_index=True)),
167
- ('complete', models.BooleanField(db_index=True, default=False)),
168
- ('base_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='versions', to='core.RepositoryVersion')),
169
- ('repository', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='versions', to='core.Repository')),
170
- ],
171
- options={
172
- 'ordering': ('number',),
173
- 'get_latest_by': 'number',
174
- 'default_related_name': 'versions',
175
- 'unique_together': {('repository', 'number')},
176
- },
177
- ),
178
- migrations.CreateModel(
179
- name='ReservedResource',
180
- fields=[
181
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
182
- ('_created', models.DateTimeField(auto_now_add=True)),
183
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
184
- ('resource', models.CharField(max_length=255, unique=True)),
185
- ],
186
- options={
187
- 'abstract': False,
188
- },
189
- ),
190
- migrations.CreateModel(
191
- name='Task',
192
- fields=[
193
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
194
- ('_created', models.DateTimeField(auto_now_add=True)),
195
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
196
- ('state', models.TextField(choices=[('waiting', 'Waiting'), ('skipped', 'Skipped'), ('running', 'Running'), ('completed', 'Completed'), ('failed', 'Failed'), ('canceled', 'Canceled')])),
197
- ('name', models.CharField(max_length=255)),
198
- ('started_at', models.DateTimeField(null=True)),
199
- ('finished_at', models.DateTimeField(null=True)),
200
- ('non_fatal_errors', django.contrib.postgres.fields.JSONField(default=list)),
201
- ('error', django.contrib.postgres.fields.JSONField(null=True)),
202
- ('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='spawned_tasks', to='core.Task')),
203
- ],
204
- options={
205
- 'abstract': False,
206
- },
207
- ),
208
- migrations.CreateModel(
209
- name='Upload',
210
- fields=[
211
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
212
- ('_created', models.DateTimeField(auto_now_add=True)),
213
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
214
- ('file', models.FileField(max_length=255, upload_to='')),
215
- ('size', models.BigIntegerField()),
216
- ('completed', models.DateTimeField(null=True)),
217
- ],
218
- options={
219
- 'abstract': False,
220
- },
221
- ),
222
- migrations.CreateModel(
223
- name='Worker',
224
- fields=[
225
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
226
- ('_created', models.DateTimeField(auto_now_add=True)),
227
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
228
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
229
- ('last_heartbeat', models.DateTimeField(auto_now=True)),
230
- ('gracefully_stopped', models.BooleanField(default=False)),
231
- ('cleaned_up', models.BooleanField(default=False)),
232
- ],
233
- options={
234
- 'abstract': False,
235
- },
236
- ),
237
- migrations.CreateModel(
238
- name='UploadChunk',
239
- fields=[
240
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
241
- ('_created', models.DateTimeField(auto_now_add=True)),
242
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
243
- ('offset', models.BigIntegerField()),
244
- ('size', models.BigIntegerField()),
245
- ('upload', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='chunks', to='core.Upload')),
246
- ],
247
- options={
248
- 'abstract': False,
249
- },
250
- ),
251
- migrations.CreateModel(
252
- name='TaskReservedResource',
253
- fields=[
254
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
255
- ('_created', models.DateTimeField(auto_now_add=True)),
256
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
257
- ('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ReservedResource')),
258
- ('task', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='core.Task')),
259
- ],
260
- options={
261
- 'abstract': False,
262
- },
263
- ),
264
- migrations.AddField(
265
- model_name='task',
266
- name='worker',
267
- field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tasks', to='core.Worker'),
268
- ),
269
- migrations.AddField(
270
- model_name='reservedresource',
271
- name='tasks',
272
- field=models.ManyToManyField(related_name='reserved_resources', through='core.TaskReservedResource', to='core.Task'),
273
- ),
274
- migrations.AddField(
275
- model_name='reservedresource',
276
- name='worker',
277
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reservations', to='core.Worker'),
278
- ),
279
- migrations.CreateModel(
280
- name='RepositoryVersionContentDetails',
281
- fields=[
282
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
283
- ('count_type', models.CharField(choices=[('A', 'added'), ('P', 'present'), ('R', 'removed')], max_length=1)),
284
- ('content_type', models.TextField()),
285
- ('count', models.IntegerField()),
286
- ('repository_version', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='counts', to='core.RepositoryVersion')),
287
- ],
288
- ),
289
- migrations.CreateModel(
290
- name='RepositoryContent',
291
- fields=[
292
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
293
- ('_created', models.DateTimeField(auto_now_add=True)),
294
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
295
- ('content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='version_memberships', to='core.Content')),
296
- ('repository', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Repository')),
297
- ('version_added', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='added_memberships', to='core.RepositoryVersion')),
298
- ('version_removed', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='removed_memberships', to='core.RepositoryVersion')),
299
- ],
300
- options={
301
- 'unique_together': {('repository', 'content', 'version_added'), ('repository', 'content', 'version_removed')},
302
- },
303
- ),
304
- migrations.AddField(
305
- model_name='repository',
306
- name='content',
307
- field=models.ManyToManyField(related_name='repositories', through='core.RepositoryContent', to='core.Content'),
308
- ),
309
- migrations.CreateModel(
310
- name='Publication',
311
- fields=[
312
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
313
- ('_created', models.DateTimeField(auto_now_add=True)),
314
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
315
- ('_type', models.TextField(default=None)),
316
- ('complete', models.BooleanField(db_index=True, default=False)),
317
- ('pass_through', models.BooleanField(default=False)),
318
- ('publisher', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Publisher')),
319
- ('repository_version', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.RepositoryVersion')),
320
- ],
321
- options={
322
- 'abstract': False,
323
- },
324
- ),
325
- migrations.CreateModel(
326
- name='ProgressReport',
327
- fields=[
328
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
329
- ('_created', models.DateTimeField(auto_now_add=True)),
330
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
331
- ('message', models.TextField()),
332
- ('state', models.TextField(choices=[('waiting', 'Waiting'), ('skipped', 'Skipped'), ('running', 'Running'), ('completed', 'Completed'), ('failed', 'Failed'), ('canceled', 'Canceled')], default='waiting')),
333
- ('total', models.IntegerField(null=True)),
334
- ('done', models.IntegerField(default=0)),
335
- ('suffix', models.TextField(null=True)),
336
- ('task', models.ForeignKey(default=pulpcore.app.models.task.Task.current, on_delete=django.db.models.deletion.CASCADE, related_name='progress_reports', to='core.Task')),
337
- ],
338
- options={
339
- 'abstract': False,
340
- },
341
- ),
342
- migrations.CreateModel(
343
- name='CreatedResource',
344
- fields=[
345
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
346
- ('_created', models.DateTimeField(auto_now_add=True)),
347
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
348
- ('object_id', models.UUIDField()),
349
- ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
350
- ('task', models.ForeignKey(default=pulpcore.app.models.task.Task.current, on_delete=django.db.models.deletion.CASCADE, related_name='created_resources', to='core.Task')),
351
- ],
352
- options={
353
- 'abstract': False,
354
- },
355
- ),
356
- migrations.AddField(
357
- model_name='content',
358
- name='_artifacts',
359
- field=models.ManyToManyField(through='core.ContentArtifact', to='core.Artifact'),
360
- ),
361
- migrations.CreateModel(
362
- name='BaseDistribution',
363
- fields=[
364
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
365
- ('_created', models.DateTimeField(auto_now_add=True)),
366
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
367
- ('_type', models.TextField(default=None)),
368
- ('name', models.CharField(db_index=True, max_length=255, unique=True)),
369
- ('base_path', models.CharField(max_length=255, unique=True)),
370
- ('content_guard', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.ContentGuard')),
371
- ('remote', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Remote')),
372
- ],
373
- options={
374
- 'abstract': False,
375
- },
376
- ),
377
- migrations.CreateModel(
378
- name='ProgressBar',
379
- fields=[
380
- ],
381
- options={
382
- 'proxy': True,
383
- 'indexes': [],
384
- 'constraints': [],
385
- },
386
- bases=('core.progressreport',),
387
- ),
388
- migrations.CreateModel(
389
- name='ProgressSpinner',
390
- fields=[
391
- ],
392
- options={
393
- 'proxy': True,
394
- 'indexes': [],
395
- 'constraints': [],
396
- },
397
- bases=('core.progressreport',),
398
- ),
399
- migrations.CreateModel(
400
- name='RemoteArtifact',
401
- fields=[
402
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
403
- ('_created', models.DateTimeField(auto_now_add=True)),
404
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
405
- ('url', models.TextField(validators=[django.core.validators.URLValidator])),
406
- ('size', models.IntegerField(null=True)),
407
- ('md5', models.CharField(max_length=32, null=True)),
408
- ('sha1', models.CharField(max_length=40, null=True)),
409
- ('sha224', models.CharField(max_length=56, null=True)),
410
- ('sha256', models.CharField(max_length=64, null=True)),
411
- ('sha384', models.CharField(max_length=96, null=True)),
412
- ('sha512', models.CharField(max_length=128, null=True)),
413
- ('content_artifact', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ContentArtifact')),
414
- ('remote', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Remote')),
415
- ],
416
- options={
417
- 'unique_together': {('content_artifact', 'remote')},
418
- },
419
- bases=(models.Model, pulpcore.app.models.content.QueryMixin),
420
- ),
421
- migrations.CreateModel(
422
- name='PublishedMetadata',
423
- fields=[
424
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
425
- ('_created', models.DateTimeField(auto_now_add=True)),
426
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
427
- ('relative_path', models.CharField(max_length=255)),
428
- ('file', models.FileField(max_length=255, upload_to='')),
429
- ('publication', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='published_metadata', to='core.Publication')),
430
- ],
431
- options={
432
- 'default_related_name': 'published_metadata',
433
- 'unique_together': {('publication', 'relative_path'), ('publication', 'file')},
434
- },
435
- ),
436
- migrations.CreateModel(
437
- name='PublishedArtifact',
438
- fields=[
439
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
440
- ('_created', models.DateTimeField(auto_now_add=True)),
441
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
442
- ('relative_path', models.CharField(max_length=255)),
443
- ('content_artifact', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='published_artifact', to='core.ContentArtifact')),
444
- ('publication', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='published_artifact', to='core.Publication')),
445
- ],
446
- options={
447
- 'default_related_name': 'published_artifact',
448
- 'unique_together': {('publication', 'content_artifact'), ('publication', 'relative_path')},
449
- },
450
- ),
451
- ]
@@ -1,18 +0,0 @@
1
- # Generated by Django 2.2.2 on 2019-07-05 17:06
2
-
3
- from django.db import migrations, models
4
-
5
-
6
- class Migration(migrations.Migration):
7
-
8
- dependencies = [
9
- ('core', '0001_initial'),
10
- ]
11
-
12
- operations = [
13
- migrations.AlterField(
14
- model_name='artifact',
15
- name='size',
16
- field=models.BigIntegerField(),
17
- ),
18
- ]
@@ -1,17 +0,0 @@
1
- # Generated by Django 2.2.3 on 2019-07-24 17:28
2
-
3
- from django.db import migrations
4
-
5
-
6
- class Migration(migrations.Migration):
7
-
8
- dependencies = [
9
- ('core', '0002_increase_artifact_size_field'),
10
- ]
11
-
12
- operations = [
13
- migrations.RemoveField(
14
- model_name='upload',
15
- name='completed',
16
- ),
17
- ]
@@ -1,45 +0,0 @@
1
- # Generated by Django 2.2.3 on 2019-08-14 12:15
2
-
3
- from django.db import migrations, models
4
- import django.db.models.deletion
5
- import uuid
6
-
7
-
8
- class Migration(migrations.Migration):
9
-
10
- dependencies = [
11
- ('core', '0003_remove_upload_completed'),
12
- ]
13
-
14
- operations = [
15
- migrations.CreateModel(
16
- name='ReservedResourceRecord',
17
- fields=[
18
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
19
- ('_created', models.DateTimeField(auto_now_add=True)),
20
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
21
- ('resource', models.CharField(max_length=255, unique=True)),
22
- ],
23
- options={
24
- 'abstract': False,
25
- },
26
- ),
27
- migrations.CreateModel(
28
- name='TaskReservedResourceRecord',
29
- fields=[
30
- ('_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
31
- ('_created', models.DateTimeField(auto_now_add=True)),
32
- ('_last_updated', models.DateTimeField(auto_now=True, null=True)),
33
- ('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ReservedResourceRecord')),
34
- ('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Task')),
35
- ],
36
- options={
37
- 'abstract': False,
38
- },
39
- ),
40
- migrations.AddField(
41
- model_name='reservedresourcerecord',
42
- name='tasks',
43
- field=models.ManyToManyField(related_name='reserved_resources_record', through='core.TaskReservedResourceRecord', to='core.Task'),
44
- ),
45
- ]
@@ -1,19 +0,0 @@
1
- # Generated by Django 2.2.5 on 2019-09-09 20:17
2
-
3
- from django.db import migrations, models
4
-
5
-
6
- class Migration(migrations.Migration):
7
-
8
- dependencies = [
9
- ('core', '0004_add_duplicated_reserved_resources'),
10
- ]
11
-
12
- operations = [
13
- migrations.AddField(
14
- model_name='progressreport',
15
- name='code',
16
- field=models.CharField(default="no_code", max_length=36),
17
- preserve_default=False,
18
- ),
19
- ]
@@ -1,18 +0,0 @@
1
- # Generated by Django 2.2.5 on 2019-09-13 21:23
2
-
3
- from django.db import migrations, models
4
-
5
-
6
- class Migration(migrations.Migration):
7
-
8
- dependencies = [
9
- ('core', '0005_progressreport_code'),
10
- ]
11
-
12
- operations = [
13
- migrations.AddField(
14
- model_name='repository',
15
- name='plugin_managed',
16
- field=models.BooleanField(default=False),
17
- ),
18
- ]
@@ -1,19 +0,0 @@
1
- # Generated by Django 2.2.5 on 2019-09-17 16:59
2
-
3
- from django.db import migrations
4
-
5
-
6
- class Migration(migrations.Migration):
7
-
8
- dependencies = [
9
- ('core', '0006_repository_plugin_managed'),
10
- ]
11
-
12
- operations = [
13
- migrations.DeleteModel(
14
- name='ProgressBar',
15
- ),
16
- migrations.DeleteModel(
17
- name='ProgressSpinner',
18
- ),
19
- ]
@@ -1,44 +0,0 @@
1
- # Generated by Django 2.2.5 on 2019-09-18 15:52
2
-
3
- from django.db import migrations, models
4
- import django.db.models.deletion
5
-
6
-
7
- class Migration(migrations.Migration):
8
-
9
- dependencies = [
10
- ('core', '0007_delete_progress_proxies'),
11
- ]
12
-
13
- operations = [
14
- migrations.AlterUniqueTogether(
15
- name='publishedmetadata',
16
- unique_together={('publication', 'relative_path')},
17
- ),
18
- migrations.RemoveField(
19
- model_name='publishedmetadata',
20
- name='_created',
21
- ),
22
- migrations.RemoveField(
23
- model_name='publishedmetadata',
24
- name='_id',
25
- ),
26
- migrations.RemoveField(
27
- model_name='publishedmetadata',
28
- name='_last_updated',
29
- ),
30
- migrations.RemoveField(
31
- model_name='publishedmetadata',
32
- name='file',
33
- ),
34
- migrations.AddField(
35
- model_name='publishedmetadata',
36
- name='content_ptr',
37
- field=models.OneToOneField(auto_created=True, default=0,
38
- on_delete=django.db.models.deletion.CASCADE,
39
- parent_link=True, primary_key=True,
40
- related_name='published_metadata',
41
- serialize=False, to='core.Content'),
42
- preserve_default=False,
43
- ),
44
- ]
@@ -1,17 +0,0 @@
1
- # Generated by Django 2.2.6 on 2019-10-07 16:45
2
-
3
- from django.db import migrations
4
-
5
-
6
- class Migration(migrations.Migration):
7
-
8
- dependencies = [
9
- ('core', '0008_published_metadata_as_content'),
10
- ]
11
-
12
- operations = [
13
- migrations.RemoveField(
14
- model_name='task',
15
- name='non_fatal_errors',
16
- ),
17
- ]