Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[PM-13013] add delete many async method to i user repository and i user service for bulk user deletion #5035
base: main
Are you sure you want to change the base?
[PM-13013] add delete many async method to i user repository and i user service for bulk user deletion #5035
Changes from all commits
97b3be2
13ab036
16bf910
b21563e
1c000ff
9368004
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check failure on line 168 in src/Infrastructure.Dapper/Repositories/UserRepository.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteAsync_Works(userRepository: UserRepository { })
Raw output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this change to pass the single Id. The failing integration test will pass then.
Check warning on line 174 in src/Infrastructure.Dapper/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.Dapper/Repositories/UserRepository.cs#L170-L174
Check failure on line 180 in src/Infrastructure.Dapper/Repositories/UserRepository.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteManyAsync_Works(userRepository: UserRepository { })
Raw output
Check warning on line 182 in src/Infrastructure.Dapper/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.Dapper/Repositories/UserRepository.cs#L176-L182
Check warning on line 267 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L264-L267
Check warning on line 273 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L270-L273
Check warning on line 275 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L275
Check warning on line 277 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L277
Check warning on line 302 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L279-L302
Check warning on line 308 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs
Codecov / codecov/patch
src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L305-L308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may want a big transaction that scopes deleting everything related to each single user. @rkac-bw will have much better insights
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a single migration on release night I like a large transaction, it is a one time script and must succeed. As a reoccurring script that runs at any time creating a large transaction will lead to lots of locking and potential deadlocks on a busy db like ours, I would prefer a retry on error with smaller transactions and possibly
give it a deadlock priority of high so it is not the victim
Check failure on line 23 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteAsync_Works(userRepository: UserRepository { })
Raw output
Check failure on line 23 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteAsync_Works(userRepository: UserRepository { })
Raw output
Check failure on line 23 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteAsync_Works(userRepository: UserRepository { })
Raw output
Check failure on line 23 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteAsync_Works(userRepository: UserRepository { })
Raw output
Check failure on line 53 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteManyAsync_Works(userRepository: UserRepository { })
Raw output
Check failure on line 53 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteManyAsync_Works(userRepository: UserRepository { })
Raw output
Check failure on line 53 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteManyAsync_Works(userRepository: UserRepository { })
Raw output
Check failure on line 53 in test/Infrastructure.IntegrationTest/Auth/Repositories/UserRepoistoryTests.cs
GitHub Actions / Test Results
Bit.Infrastructure.IntegrationTest.Repositories.UserRepositoryTests โบ DeleteManyAsync_Works(userRepository: UserRepository { })
Raw output