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

SIRI-1042 fix not working unique-check on changing a within value #670

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

ymo-sci
Copy link
Contributor

@ymo-sci ymo-sci commented Dec 20, 2024

Description

If some has a unique-check with a within-column and the within-column value changes until now this was an available way to surround a unique-check on editing the value later... This will fix this buggy "workaround"

Also add some fitting test-cases for this use case

Additional Notes

  • This PR fixes or works on following ticket(s): SIRI-1042
  • This PR is related to PR:

Checklist

  • Code change has been tested and works locally
  • Code was formatted via IntelliJ and follows SonarLint & best practices
  • Patch Tasks: Is local execution of Patch Tasks necessary? If so, please also mark the PR with the tag.

Until now 2 entities which were created with ok within constraint can be edited later by changing the within-value to the same as one other without an error. So the unique-check only was executed if the explicit value changed, not if the within-value changed. This now will be ensured and to not check the uniqueness too ofter we filter on the mappings from the within.

- fixes: SIRI-1042
- one for checking uniqueness on change of the value
- one for checking uniqueness on change of the within value

- fixes: SIRI-1042
- fixes: SIRI-1042
@ymo-sci ymo-sci added the 🐛 Bugfix Contains only a small fix for an existing bug label Dec 20, 2024
this was broken due to already existant entities with new unique constraint

- fixes: SIRI-1042
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bugfix Contains only a small fix for an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant