-
Notifications
You must be signed in to change notification settings - Fork 22
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
Remove inheritance with the same name, too #50
base: master
Are you sure you want to change the base?
Conversation
I will test this tomorrow |
Koji won't allow a tag's parents to include two of the same name nor priority, so remove matches for either, instead of just priority. This will allow changing a parent's priority when another parent already has that priority, by removing both inheritance links before setting the desired one. It also allows removing inheritance link by either parent tag name or priority, as well as both (exact match).
Rebased on #68, improved commit message and documentation, and expanded test coverage. |
Prior to this change, we only tested deleting by parent_tag name. Add tests to cover deleting by priority as well. Now we have four scenarios: delete-1: Delete by parent_tag name only delete-2: Delete by priority only delete-3: Delete by parent_tag name and priority delete-4: Do *not* delete if parent_tag name and priority fail to match
I think this is a lot easier to review now, thanks. If you rebase on master again, it'll be easier to see the single commit.
We need more integration tests for this behavior, so I added them as a pull request to your branch: https://github.com/ahills/koji-ansible/pull/1 |
Koji won't allow a tag's parents to include two of the same name nor priority, so remove matches for either, instead of just priority. This will allow changing a parent's priority.
tests: more delete tests for koji_tag_inheritance
Koji won't allow a tag's parents to include two of the same name nor priority, so remove matches for either, instead of just priority. This will allow changing a parent's priority when another parent already has that priority, by removing both inheritance links before setting the desired one.
It also allows removing inheritance link by either parent tag name or priority, as well as both (exact match).