-
Notifications
You must be signed in to change notification settings - Fork 43
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
PIMS-1928: Cancel and resend notifications #2616
Conversation
…r resending a notification per a specific internal notifiation queue id
🚀 Deployment Information The Express API Image has been built with the tag: |
Code Climate has analyzed commit 7b1bca2 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 93.8%. View more on Code Climate. |
… reflected in the frontend table. Updated unit tests accordingly.
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.
return res.status(404).send('Notification not found.'); | ||
} | ||
const kcUser = req.user; | ||
if (!(isAdmin(kcUser) || isAuditor(kcUser))) { |
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.
If they are not an admin, should we even allow them to trigger this?
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.
No idea, I wasn't sure how strict this should be so I just applied similar logic as elsewhere.
return res.status(404).send('Notification not found.'); | ||
} | ||
const kcUser = req.user; | ||
if (!(isAdmin(kcUser) || isAuditor(kcUser))) { |
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.
Same question about admin-only logic.
I don't believe this is introduced with this ticket but I will see about fixing it regardless.
I think this is a good idea, I'll choose some appropriate icons. |
…ttons with tooltips to save some horizontal real estate.
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.
Buttons are working well for me now. Like the look of the icons chosen.
🎯 Summary
PIMS-1928
Note:
🔰 Checklist