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
[ENG-6445] [ENG-6457] Preprints Version Creation and API Implementation - Part 2 #10807
[ENG-6445] [ENG-6457] Preprints Version Creation and API Implementation - Part 2 #10807
Changes from 13 commits
be29660
8170a37
3c1c7fd
6808467
cba34fb
b463455
0c46293
d7be9fb
0343cc1
c7fe749
6891a2e
c50b2ae
756aa31
e70f3ef
5d03ac8
c1bf134
b8560cf
3eef71a
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.
Reminder for myself: need to check with FE if this detail is surfaced back directly to the user; if so, we need Product to provide the exact language; if not, we may not need to provide the detail.
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.
Reminder for myself: it seems neither the
create
nor thelist
checks the permission ... if the comment is correct ... need to double check ... I think these are still checked but just not strict enough, which finer-grained access control are done inget_queryset()
.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.
Future improvements: let's return
None
for now, but we may need to add some sentry log to detect this and maybe re-raise the exception afterwards.