-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Objects of the Manifest class no longer store the manifest data (raw binary json data) in a linked artifact. Instead, a new TextField called 'data' was added to the Manifest class itself. closes #1288
- Loading branch information
1 parent
f377a9c
commit 2ccfa05
Showing
13 changed files
with
294 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Updated the Manifest model to no longer rely on artifacts, storing all manifest data internally | ||
withing the database. This change dissociates the image manifest from external files on the storage | ||
backend. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 4.2.10 on 2024-03-05 11:22 | ||
import warnings | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def print_warning_for_initializing_manifest_data(apps, schema_editor): | ||
warnings.warn( | ||
"Run 'pulpcore-manager container-handle-image-data' to move the manifests' data from artifacts to the new 'data' database field." | ||
) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("container", "0038_add_manifest_metadata_fields"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="manifest", | ||
name="data", | ||
field=models.TextField(default=""), | ||
), | ||
migrations.RunPython( | ||
print_warning_for_initializing_manifest_data, | ||
reverse_code=migrations.RunPython.noop, | ||
elidable=True, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.