-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #154
- Loading branch information
Showing
12 changed files
with
467 additions
and
51 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
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 @@ | ||
Added support for RBAC and domains. |
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
69 changes: 69 additions & 0 deletions
69
pulp_gem/app/migrations/0012_alter_gemdistribution_options_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,69 @@ | ||
# Generated by Django 4.2.4 on 2023-10-04 10:25 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import pulpcore.app.util | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0110_apiappstatus"), | ||
("gem", "0011_alter_gemcontent_platform"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="gemdistribution", | ||
options={ | ||
"default_related_name": "%(app_label)s_%(model_name)s", | ||
"permissions": [ | ||
("manage_roles_gemdistribution", "Can manage roles on gem distributions") | ||
], | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="gempublication", | ||
options={ | ||
"default_related_name": "%(app_label)s_%(model_name)s", | ||
"permissions": [ | ||
("manage_roles_gempublication", "Can manage roles on gem publications") | ||
], | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="gemremote", | ||
options={ | ||
"default_related_name": "%(app_label)s_%(model_name)s", | ||
"permissions": [("manage_roles_gemremote", "Can manage roles on gem remotes")], | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="gemrepository", | ||
options={ | ||
"default_related_name": "%(app_label)s_%(model_name)s", | ||
"permissions": [ | ||
("sync_gemrepository", "Can start a sync task"), | ||
("modify_gemrepository", "Can modify content of the repository"), | ||
("manage_roles_gemrepository", "Can manage roles on gem repositories"), | ||
("repair_gemrepository", "Can repair repository versions"), | ||
], | ||
}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="gemcontent", | ||
unique_together=set(), | ||
), | ||
migrations.AddField( | ||
model_name="gemcontent", | ||
name="_pulp_domain", | ||
field=models.ForeignKey( | ||
default=pulpcore.app.util.get_domain_pk, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
to="core.domain", | ||
), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="gemcontent", | ||
unique_together={("_pulp_domain", "checksum")}, | ||
), | ||
] |
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.