Skip to content
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

Do some aesthetic adjustments to role presentation fields #15153

Merged
merged 5 commits into from Apr 29, 2024

Conversation

AlanCoding
Copy link
Member

SUMMARY

Firstly this is adding a test to assure we have Capital Letters.

We also want to be sure that anything that we ship has a description.

Most notably, this fixes an issues where an auto-created RoleDefinition would have created_by set, and we don't want that, because it shouldn't be attributed to such an (ordinary) user.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

'special': '{cls.__name__} {action}',
}
# This has been moved to data migration code
ANSIBLE_BASE_ROLE_PRECREATE = {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a big goof. Since I had put up ansible/django-ansible-base#296 I confused myself about the contract with DAB. This was unexpectedly creating the managed role definitions in the post_migrate hook, in addition to AWX logic I added that did the same thing. Had it been removed in DAB (i.e. 296 was merged) that might have worked, but the path forward isn't super clear for that and I have cold feet on it.

In other words, we had duplicate role definitions which was causing unexpected names to be found.

@AlanCoding AlanCoding merged commit 918d5b3 into ansible:devel Apr 29, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants