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: role entity name column should be unique [ ON HOLD till 1.7.0 ] #3151

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

davidzwa
Copy link
Collaborator

Description

Tackles the item in #3080 by adding a migration.
This migration will remove all roles which are duplicate and then apply an uniqueness index to the name column of the role table.

Breaking change without direct benefit. Deferring till 1.7.0.

@davidzwa davidzwa added the bug Something isn't working label Apr 22, 2024
@davidzwa davidzwa self-assigned this Apr 22, 2024
@davidzwa davidzwa added this to the 1.7 milestone Apr 22, 2024
@davidzwa davidzwa force-pushed the fix/3080-make-role-name-unique-database-sqlite branch from 56e9841 to e703821 Compare April 22, 2024 20:39
Copy link

codecov bot commented Apr 22, 2024

Codecov Report

Attention: Patch coverage is 69.23077% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 68.40%. Comparing base (d45ada0) to head (03fe661).

Files Patch % Lines
...c/migrations/1713300747465-ChangeRoleNameUnique.ts 65.21% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3151      +/-   ##
===========================================
- Coverage    68.41%   68.40%   -0.02%     
===========================================
  Files          208      209       +1     
  Lines         8524     8549      +25     
  Branches      1044      953      -91     
===========================================
+ Hits          5832     5848      +16     
- Misses        2691     2701      +10     
+ Partials         1        0       -1     
Flag Coverage Δ
server-nodejs 68.40% <69.23%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@davidzwa davidzwa force-pushed the fix/3080-make-role-name-unique-database-sqlite branch from e703821 to 03fe661 Compare April 25, 2024 21:36
@davidzwa davidzwa merged commit 2af1d8c into develop Apr 26, 2024
6 of 7 checks passed
@davidzwa davidzwa deleted the fix/3080-make-role-name-unique-database-sqlite branch April 26, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple roles with the same name are allowed in the database - this should not be allowed
1 participant