-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feat/reviewqueue #451
Feat/reviewqueue #451
Conversation
@@ -30,6 +30,7 @@ class Review(SQLModel, table=True): # type: ignore [call-arg] | |||
|
|||
reviewer_identifier: str = Field( | |||
foreign_key="user.subject_identifier", | |||
exclude=True, |
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.
Indicates that the field will not be serialized to JSON, which is to say it will not be shown to end users.
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.
Looks good.
Does it make sense to add the review decision and comment in the submission list, so that reviewer can see the details of the completed reviews?
Good idea! Turned it into a separate issue so we can follow up separately :) |
Change
Adds convenience functions for reviewers through a review router.
Reviewers can use its endpoints to either get a list of pending submission, or get a specific one.
In a follow up PR we will add conveniences for the user (getting review status for assets, let them read review notes)
How to Test
If your keycloak instance lacks a reviewer account, make sure to recreate your kc:
Keycloak then has both the regular user, as well as a reviewer user (username: reviewer, password: password).
You can submit a new asset for review as a regular user, and check, approve or reject the submission as a reviewer, and use the new endpoints to get insight into the pending/completed reviews.
Checklist
Related Issues