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
Refactored groupPermissions #8528
Refactored groupPermissions #8528
Changes from 1 commit
a076462
2328c70
c5230dc
a585f93
c96c360
b941aab
bb180b1
d2be5be
77185db
b4f87c9
00cda1a
38f69ec
71ed1cc
f3686a2
b7509e7
e7b86d8
1a3663b
de14dc1
7520513
371512e
2920702
d5155d9
74ed80a
dde914c
aa69a9d
b5c6934
d984825
943e588
2caadd7
099e810
97380e3
9e984aa
5eb64c4
329f1b1
ab6393d
ccfeffc
2020d4e
77d678c
f592b71
3b81098
fef29f6
b9e8012
34c1534
39d0488
c4579c5
e289a20
0f85378
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
bulkInsert
?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.
bulkInsert won't work here because we have an array of enums, but we need to specify the field as a string[] in sequelize otherwise the tests will fail when trying to sync. As a result Sequelize tries to cast them into an array of strings which sql complains about.
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 don't exactly understand but is this not something we can work-around with type assertions? Also, this is already a raw query so we should be able to just prepare all the values at once (and not use
bulkInsert
). A nested for-loop query is a bad idea.