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

BugFix: Update Migration To Fix Lingering Duplicate Users Issue #1347

Merged
merged 8 commits into from
Sep 5, 2024

Conversation

NickPhura
Copy link
Collaborator

@NickPhura NickPhura commented Aug 23, 2024

Links to Jira Tickets

n/a

Description of Changes

Update the existing migration that was meant to fix duplicate user issues, but which left some issues unfixed.

Testing Notes

On a new local build, it should delete all duplicate users (rather than end-date them), and should now correctly prevent duplicate user records from being created.

  • Should enforce unique user_guid and unique (user_Identifier + user_identity_source).

Editing Existing Migration

Normally we dont edit existing migrations, but since this is only in Test, and it only touches the system_user table, it was easier to just modify it, and then I'll manually run some queries to account for the differences in Dev and Test (since this migration wont re-run in either of those environments)

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 46.94%. Comparing base (7eb4c5c) to head (2bdbbd6).

Files with missing lines Patch % Lines
api/src/paths/user/add.ts 33.33% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1347   +/-   ##
=======================================
  Coverage   46.94%   46.94%           
=======================================
  Files         753      753           
  Lines       20276    20277    +1     
  Branches     3114     3114           
=======================================
+ Hits         9518     9519    +1     
  Misses      10180    10180           
  Partials      578      578           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NickPhura NickPhura added Early Feedback Welcome PR is not finished, but early review feedback is welcomed Ready For Review PR is ready for review and removed Early Feedback Welcome PR is not finished, but early review feedback is welcomed labels Aug 23, 2024
mauberti-bc
mauberti-bc previously approved these changes Aug 28, 2024
Copy link
Collaborator

@mauberti-bc mauberti-bc left a comment

Choose a reason for hiding this comment

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

Tested locally, looks good

database/tsconfig.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@MacQSL MacQSL left a comment

Choose a reason for hiding this comment

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

LGTM 🪿

@NickPhura NickPhura added the Do Not Merge PR should not be merged label Sep 4, 2024
@NickPhura NickPhura marked this pull request as ready for review September 5, 2024 16:04
@NickPhura NickPhura removed the Do Not Merge PR should not be merged label Sep 5, 2024
Copy link

sonarcloud bot commented Sep 5, 2024

@NickPhura NickPhura merged commit 36009c9 into dev Sep 5, 2024
20 checks passed
@NickPhura NickPhura deleted the npBugFix-duplicate-users branch September 5, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants