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

Bug/duplicate users #195

Merged
merged 3 commits into from
Aug 11, 2023
Merged

Bug/duplicate users #195

merged 3 commits into from
Aug 11, 2023

Conversation

TimCsaky
Copy link
Contributor

@TimCsaky TimCsaky commented Aug 11, 2023

Description

DB migration to remove dupes, add unique constraint on identityId and idp columns
conflict behaviour changed with simpler sql queries
wrapped whole login process in db transaction

ticket: https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3297

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

DB migration to remove dupes, add unique constraint on identityId and idp columns
conflict behaviour changed with simpler sql queries
wrapped whole login process in db transaction
@TimCsaky TimCsaky marked this pull request as ready for review August 11, 2023 23:22
@github-actions
Copy link

Coverage Report

Totals Coverage
Statements: 52.43% ( 2028 / 3868 )
Methods: 41.37% ( 223 / 539 )
Lines: 58.67% ( 1269 / 2163 )
Branches: 45.97% ( 536 / 1166 )

app/src/services/user.js Show resolved Hide resolved
app/src/services/user.js Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Aug 11, 2023

Code Climate has analyzed commit 03030b1 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2

The test coverage on the diff in this pull request is 90.4% (50% is the threshold).

This pull request will bring the total coverage in the repository to 58.6% (0.1% change).

View more on Code Climate.

@jujaga jujaga merged commit f027eab into master Aug 11, 2023
12 checks passed
@jujaga jujaga deleted the bug/duplicate-users branch August 11, 2023 23:37
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