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

fix(Pool): duplicate BPN request identifier mapping entries #1173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicoprow
Copy link
Contributor

@nicoprow nicoprow commented Jan 9, 2025

Description

This pull request fixes the Pool's behaviour of creating duplicate BPN request identifier mapping entries

  • Remove duplicate BPN request identifier mappings form the database
  • Prevent creation of new duplicates
  • Fix the request identifier unique constraint so that an exception will be thrown when a duplicate entry tries to be created in the database (just for data integrity, should not happen in normal logic)

Fixes #1159

How to test

In order to check the behaviour you can create a business partner with site information via the Gate, full golden record process. Then provide an update to that business partner without changing the names or BPNs (for example change a small field in the address). Look into the database, there should be no duplicate entries. In the previous version you should see a duplicate.

Please fill free to execute further test scenarios.

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

- Remove duplicate BPN request identifier mappings form the database
- Prevent creation of new duplicates
- Fix the request identifier unique constraint so that an exception will be thrown when a duplicate entry tries to be created in the database (just for data integrity, should not happen in normal logic)
@nicoprow nicoprow marked this pull request as ready for review January 9, 2025 09:51
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.

Duplicate entries in bpn_requestIdentifier_mapping
1 participant