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

git7234 increase scope for unique properties check #7237

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

davidradl
Copy link
Member

Signed-off-by: David Radley david_radley@uk.ibm.com

The generic handler code that checks for uniqueness for unique attributes has been changed to check at the level of the type where the unique attribute is defined , rather than the type in the entity that was supplied.

Description

The generic handler code that checks for uniqueness for unique attributes has been changed to check at the level of the type where the unique attribute is defined , rather than the type in the entity that was supplied.

The code starts with the type supplied in the entity and looks for the unique property in it, it checks the super types until it finds th property, then looks for existing entities using that type.

Related Issue(s)

Testing

I have tested by creating a glossary through the subject area omas with a qualified name then created an asset with the same qualified name, this fails.

Release Notes & Documentation

Yes this is important as this could effect existing use cases.

Additional notes

This effects create and update.

Signed-off-by: David Radley <david_radley@uk.ibm.com>
@davidradl davidradl self-assigned this Dec 8, 2022
@davidradl
Copy link
Member Author

@lpalashevski here is the pr for #7234 - you expressed some interest in it.

Copy link
Contributor

@mandy-chessell mandy-chessell left a comment

Choose a reason for hiding this comment

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

Looks good - one small code layout problem.

davidradl and others added 2 commits December 13, 2022 09:25
Signed-off-by: David Radley <david_radley@uk.ibm.com>
@davidradl davidradl merged commit 5a81805 into odpi:main Dec 13, 2022
@davidradl davidradl deleted the git7234 branch December 13, 2022 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants