-
-
Notifications
You must be signed in to change notification settings - Fork 44
Anthony/added permission changes for default permissions of user #1447
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
Open
AnthonyWeathers
wants to merge
46
commits into
development
Choose a base branch
from
Anthony/Added-PermissionChanges-For-DefaultPermissions-Of-User
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+451
−27
Open
Changes from 38 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
02af33f
Made edits to save changes to default role permissions of a user, and…
AnthonyWeathers a123187
Merge branch 'development' into Anthony/Added-PermissionChanges-For-D…
AnthonyWeathers e84998c
package-lock.json update after npm i with git merge
AnthonyWeathers b50e0e7
Merge branch 'development' into Anthony/Added-PermissionChanges-For-D…
AnthonyWeathers 716e626
chore: merged development into branch
AnthonyWeathers 33f7dc2
refactor: added removedRolePermissions to change log model, and rewor…
AnthonyWeathers 16bbb28
chore: merged development into branch
AnthonyWeathers d313366
refactor: updated condition check for removedPermissions, and added d…
AnthonyWeathers f6681f8
chore: merged development into branch
AnthonyWeathers 600ef9f
chore: merged development into branch
AnthonyWeathers 01a26d3
chore: merged development
AnthonyWeathers 2cbd28d
chore: merged latest development for merge conflicts
AnthonyWeathers 7382520
refactor: added comments identifying current issue with feature to fix
AnthonyWeathers e16b81c
chore: merged development
AnthonyWeathers a4a75f4
chore: merged development
AnthonyWeathers 48ce932
chore: merged development
AnthonyWeathers dde3bef
refactor: added reason value to user change logs and made adjustments…
AnthonyWeathers 1e6f307
refactor: removed commented code from branch that had been removed al…
AnthonyWeathers 8073791
chore: merged development for latest changes
AnthonyWeathers 0742c53
chore: merged development
AnthonyWeathers ffb3e09
chore: merged development for latest changes
AnthonyWeathers 42ef510
chore: merged development
AnthonyWeathers 18e602e
chore: merged development
AnthonyWeathers 3d5e2b3
chore: merged development
AnthonyWeathers 5fbb126
chore: merged latest development
AnthonyWeathers 90ecc45
chore: merged latest development changes
AnthonyWeathers 1901593
chore: merged newest changes from development
AnthonyWeathers d9a9f57
chore: merged development into branch
AnthonyWeathers ffec0f7
chore: merged development for changes
AnthonyWeathers 570cb07
refactor: fixed use of .sort to include a compare function and added …
AnthonyWeathers 4c36e01
chore: merged development changes and kept some changes I made that w…
AnthonyWeathers 995f590
chore: merged development
AnthonyWeathers 1d80d17
refactor: removed previously added value that is not used and removed…
AnthonyWeathers 32dbe07
chore: merged development
AnthonyWeathers 849f8aa
chore: merged development into branch
AnthonyWeathers fba4b04
chore: merged development for changes
AnthonyWeathers 574c220
refactor: Moved roleChanged variable for edge case of no previous cha…
AnthonyWeathers 1430227
chore: merged development for latest changes
AnthonyWeathers a0d711d
chore: merged development for latest changes
AnthonyWeathers 820203e
chore: merge development for changes
AnthonyWeathers 5c68505
refactor: added guard for potential missing reason and condition chec…
AnthonyWeathers 0c6cf96
chore: merged dev again for more changes
AnthonyWeathers 0d01509
chore: merged development for new changes
AnthonyWeathers 78fac5d
refactor: removed condition usage of role changed to determine permis…
AnthonyWeathers 4e71a65
chore: merged development for newest changes before pushing
AnthonyWeathers 6fd060d
refactor: created test file to meet sonar 80% test coverage
AnthonyWeathers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
reason.includes('Role Changed')will throw if a request doesn't includereason— every array input here goes throughcheckPermissionArray, but the string doesn't get the same treatment. The frontend guards it everywhere it reads it (reason?.includes(...), and a'Permissions changed.'fallback for older logs), so it clearly can be absent.The failure is quiet, which is the concerning part: the throw happens before
logEntry.save(), gets caught here and again inpermissionService.updatePermissions, so the permission update succeeds and the audit entry is just silently missing.reason = ''in the destructure, orreason?.includes(...), would cover it.