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

Fixed get_definition_by_name() #4001

Merged
merged 1 commit into from
May 30, 2024

Conversation

SpookedByRoaches
Copy link
Contributor

Fixed get_definition_by_name() so that it does not get deleted definitions.

Copy link
Member

@jekkos jekkos left a comment

Choose a reason for hiding this comment

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

What behavior does it fix exactly? Do selected attributes still show in case you delete a definition?

@SpookedByRoaches
Copy link
Contributor Author

What behavior does it fix exactly? Do selected attributes still show in case you delete a definition?

When adding an item by importing a CSV, it adds an attribute link for the first attribute that comes out of the query. So if you have an attribute that you deleted and added again, it would add an attribute link with the ID of the deleted attribute when importing.

Let's say you have color attribute and you added it as string type at first, then deleted it and added another attribute with the same name but with dropdown instead. Now the attribute with the string type is still there in the attribute_definitions but the deleted column is 1. If you import through the CSV, it would pick likely pick the deleted one since it doesn't have a condition that the definition is not deleted.

@jekkos jekkos merged commit 95a73ad into opensourcepos:ci4-branch May 30, 2024
0 of 2 checks passed
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.

None yet

2 participants