forked from pulp/pulp_ostree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for filtering refs during synchronization
In this commit, there was also altered a database model for Ref objects. The only information that is stored in a file is the checksum of a referenced commit. This can be saved directly to a string instead of holding reference to an artifact. closes pulp#163
- Loading branch information
Showing
8 changed files
with
136 additions
and
21 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,2 @@ | ||
Added support for filtering refs during synchronization. Users can now use the flags | ||
``include_refs`` or ``exclude_refs`` to include or exclude refs from a remote repository. |
32 changes: 32 additions & 0 deletions
32
pulp_ostree/app/migrations/0004_include_exclude_refs_no_artifact.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,32 @@ | ||
# Generated by Django 3.2.12 on 2022-03-22 14:35 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ostree', '0003_create_many_to_many_objs_commits'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='ostreeremote', | ||
name='exclude_refs', | ||
field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=255, null=True), null=True, size=None), | ||
), | ||
migrations.AddField( | ||
model_name='ostreeremote', | ||
name='include_refs', | ||
field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=255, null=True), null=True, size=None), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='ostreeref', | ||
unique_together={('name', 'commit')}, | ||
), | ||
migrations.RemoveField( | ||
model_name='ostreeref', | ||
name='relative_path', | ||
), | ||
] |
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