mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
* adding roles to instance groups added ResourceMixin to Instancegroup and changed the filtered_queryset * added necessary changes to rebuild relationship between IG and roles * added description to InstanceGroupAccess * preliminary ui plug for demo purposes * preliminary ui plug for demo purposes added inventory special logic for use_role to allow attaching instance groups added more tests to handle those cases * Add access_list to InstanceGroup * scratch branch to test migration work * refactored to shorten logic * Added migration and am removing logic that enabled Org admin permissions * Add Obj admin role to JT, Inv, Org * Changed tests to reflect new permissions * refactored some of the tests * cleaned up more tests and reworded help on InstanceGroupAccess * Removed unnecessary delete of Route for instance group perms change * Fix UI tests and migration * fixed permissions on prompt for InstanceGroups * added related object roles endpoint * added ui/api function for options instance_groups * separate the migrations in order to avoid issues with migrations not being finished * changed migrations parent class to disable the activity stream error in migrations * Added logging to migration as activitystream is disabled * added clarifying comment to jobtemlateaccess and linted UI addition * renamed migrations to avoid collisions * Rename migrations to avoid collisions
49 lines
1.6 KiB
Python
49 lines
1.6 KiB
Python
# Generated by Django 3.2.16 on 2023-02-17 02:45
|
|
|
|
import awx.main.fields
|
|
from django.db import migrations
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('main', '0176_inventorysource_scm_branch'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='instancegroup',
|
|
name='admin_role',
|
|
field=awx.main.fields.ImplicitRoleField(
|
|
editable=False,
|
|
null='True',
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
parent_role=['singleton:system_administrator'],
|
|
related_name='+',
|
|
to='main.role',
|
|
),
|
|
preserve_default='True',
|
|
),
|
|
migrations.AddField(
|
|
model_name='instancegroup',
|
|
name='read_role',
|
|
field=awx.main.fields.ImplicitRoleField(
|
|
editable=False,
|
|
null='True',
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
parent_role=['singleton:system_auditor', 'use_role', 'admin_role'],
|
|
related_name='+',
|
|
to='main.role',
|
|
),
|
|
preserve_default='True',
|
|
),
|
|
migrations.AddField(
|
|
model_name='instancegroup',
|
|
name='use_role',
|
|
field=awx.main.fields.ImplicitRoleField(
|
|
editable=False, null='True', on_delete=django.db.models.deletion.CASCADE, parent_role=['admin_role'], related_name='+', to='main.role'
|
|
),
|
|
preserve_default='True',
|
|
),
|
|
]
|