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

UniqueWithinRegion doesn't check the base class #16739

Closed
Fryguy opened this issue Jan 3, 2018 · 2 comments
Closed

UniqueWithinRegion doesn't check the base class #16739

Fryguy opened this issue Jan 3, 2018 · 2 comments
Assignees

Comments

@Fryguy
Copy link
Member

Fryguy commented Jan 3, 2018

The UniqueWithinRegion uses record.class, which when used with STI classes would be a leaf class, and may not scope properly across them. It should probably use record.class.base_class instead.

@carbonin Can you work on this when you have a chance?

cc @d-m-u I think you had added a fix using this feature to the CustomizationTemplate class, however that class uses STI, and I don't think the validation works as expected. The PR in question #15495, doesn't seem to have tests that verify this, so can you add specs? We may have just gotten lucky if the only things in the database were PXE customization templates.

@carbonin carbonin assigned d-m-u and unassigned carbonin Jan 3, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 4, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 4, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 8, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 8, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 8, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 8, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 8, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 9, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 10, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 10, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 10, 2018
d-m-u added a commit to d-m-u/manageiq that referenced this issue Jan 10, 2018
@d-m-u
Copy link
Contributor

d-m-u commented Jan 19, 2018

@Fryguy Can we close this one?

@carbonin
Copy link
Member

Fixed by #16775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants