-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PULP-76] Remove is highest #2039
Draft
mdellweg
wants to merge
2
commits into
pulp:main
Choose a base branch
from
mdellweg:remove_is_highest
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,2 @@ | ||
CollectionVersion global uniqueness constraint is now its sha256 digest. Repository level uniqueness | ||
is still (namespace, name, version). |
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,7 @@ | ||
Added the final migration to make the sha256 of the collection version artifact the uniqueness | ||
constraint. This allows users to serve their own interpretation of the content in their private | ||
repositories. | ||
The migration will only succeed if all the content has been adjusted. To account for content that | ||
was not migrated by the migration shipped with 0.22.0, you can run the content repair command | ||
``datarepair-ansible-collection-sha256`` prior to upgrading. | ||
This version removed the content repair command. |
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 @@ | ||
Remove the `is_highest` field from CollectionVersion table. |
56 changes: 0 additions & 56 deletions
56
pulp_ansible/app/management/commands/datarepair-ansible-collection-sha256.py
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
pulp_ansible/app/migrations/0058_collectionversion_unique_sha256.py
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,25 @@ | ||
# Generated by Django 3.2.14 on 2022-07-21 23:05 | ||
|
||
from django.db import migrations, models | ||
from pulpcore.plugin.migrations import RequireVersion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ansible', '0057_collectionversion_sha256_migrate'), | ||
('core', '0110_apiappstatus'), | ||
] | ||
|
||
operations = [ | ||
RequireVersion("ansible", "0.23.0"), | ||
migrations.AlterField( | ||
model_name='collectionversion', | ||
name='sha256', | ||
field=models.CharField(db_index=True, max_length=64, null=False), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='collectionversion', | ||
unique_together={('sha256',)}, | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
pulp_ansible/app/migrations/0059_remove_collectionversion_unique_is_highest_and_more.py
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,23 @@ | ||
# Generated by Django 4.2.16 on 2024-11-21 08:53 | ||
|
||
from django.db import migrations | ||
from pulpcore.plugin.migrations import RequireVersion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("ansible", "0058_collectionversion_unique_sha256"), | ||
] | ||
|
||
operations = [ | ||
RequireVersion("ansible", "0.23.0"), | ||
migrations.RemoveConstraint( | ||
model_name="collectionversion", | ||
name="unique_is_highest", | ||
), | ||
migrations.RemoveField( | ||
model_name="collectionversion", | ||
name="is_highest", | ||
), | ||
] |
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering about this search vector.