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

fixes #17129 - allow deletion of cv & version associated w/ hg #6418

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

bbuckingham
Copy link
Member

This commit contains changes to allow deletion of a content
view version and view that has associations to a hostgroup
via the content view and media (synced content) settings.

Without it,

  • deleting a version would show:
ERROR: update or delete on table "katello_repositories"
violates foreign key constraint
"hostgroups_kickstart_repository_id_fk"
on table "hostgroups" DETAIL: Key (id)=(25) is still
referenced from table "hostgroups"
  • deleting a view would show:
Cannot delete record because of dependent hostgroups

This commit contains changes to allow deletion of a content
view version and view that has associations to a hostgroup
via the content view and media (synced content) settings.

Without it,
- deleting a version would show:

ERROR: update or delete on table "katello_repositories"
violates foreign key constraint
"hostgroups_kickstart_repository_id_fk"
on table "hostgroups" DETAIL: Key (id)=(25) is still
referenced from table "hostgroups"

- deleting a view would show:

Cannot delete record because of dependent hostgroups
@mention-bot
Copy link

@bbuckingham, thanks for your PR! By analyzing the history of the files in this pull request, we identified @parthaa, @johnpmitsch and @jlsherrill to be potential reviewers.

@jlsherrill
Copy link
Member

ACK

@bbuckingham
Copy link
Member Author

Thanks @jlsherrill !

@bbuckingham bbuckingham merged commit 6025e0d into Katello:master Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants