-
Notifications
You must be signed in to change notification settings - Fork 330
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-5028] [ENG-5920] Preprints Affiliation Project PR (BE) #10745
Merged
Conversation
This file contains 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
Closed
brianjgeiger
requested changes
Sep 9, 2024
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.
Small things, mostly test related.
api_tests/preprints/views/test_preprint_institutions_relationship.py
Outdated
Show resolved
Hide resolved
api_tests/preprints/views/test_preprint_institutions_relationship.py
Outdated
Show resolved
Hide resolved
[ENG-5829] Add Institutional Affiliation mix-in to Preprints #10649 [ENG-5844] Add preprint institution affiliation endpoint #10655 [ENG-5845] Preprint Institutions Relationship #10659 [ENG-5846][ENG-5847] Add affiliated_institutions to preprint list and detail endpoint #10684 [Bug-fix] Fix Self Link for Preprint Affiliated Institutions #10698 [ENG-5908] Add Test Confirming Preprint Affiliated Institution Data is Sent to SHARE #10700 [ENG-5966] 2.0.1 BE: Update permission to support edit as a WRITE contributor #10741
cslzchen
force-pushed
the
feature/preprints-affiliations
branch
from
September 16, 2024 22:11
dadfbae
to
9bcd800
Compare
* Fixed self url for PreprintsInstitutionsRelationshipSerializer * Removed the superfluous 'html' link that is not part of JSON:API * Fixed incorrect tests
Note: there is some weird but unrelated test failures for my local env |
brianjgeiger
approved these changes
Sep 17, 2024
Johnetordoff
pushed a commit
to Johnetordoff/osf.io
that referenced
this pull request
Sep 19, 2024
into summary-reporter-for-insti-dashboard * 'develop' of https://github.com/CenterForOpenScience/osf.io: Clean up local-ci Remove calls to mark_safe Update changelog and bump version [ENG-5028] [ENG-5920] Preprints Affiliation Project PR (BE) (CenterForOpenScience#10745) # Conflicts: # api/institutions/serializers.py
Johnetordoff
pushed a commit
to Johnetordoff/osf.io
that referenced
this pull request
Sep 19, 2024
into summary-reporter-for-insti-dashboard * 'develop' of https://github.com/CenterForOpenScience/osf.io: Clean up local-ci Remove calls to mark_safe Update changelog and bump version [ENG-5028] [ENG-5920] Preprints Affiliation Project PR (BE) (CenterForOpenScience#10745) # Conflicts: # api/institutions/serializers.py
uditijmehta
pushed a commit
to uditijmehta/osf.io
that referenced
this pull request
Oct 4, 2024
…rOpenScience#10745) [ENG-5829] Add Institutional Affiliation mix-in to Preprints CenterForOpenScience#10649 [ENG-5844] Add preprint institution affiliation endpoint CenterForOpenScience#10655 [ENG-5845] Preprint Institutions Relationship CenterForOpenScience#10659 [ENG-5846][ENG-5847] Add affiliated_institutions to preprint list and detail endpoint CenterForOpenScience#10684 [Bug-fix] Fix Self Link for Preprint Affiliated Institutions CenterForOpenScience#10698 [ENG-5908] Add Test Confirming Preprint Affiliated Institution Data is Sent to SHARE CenterForOpenScience#10700 [ENG-5966] 2.0.1 BE: Update permission to support edit as a WRITE contributor CenterForOpenScience#10741 [CR Response] Fix url links for PreprintsInstitutionsRelationshipSerializer and fix unit tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
This is the project BE PR for Preprints Institution Affiliation.
It comprises the following PRs that were merged into the feature branch
Changes
AffiliatedInstitutionMixin
mixin toPreprint
model and overridesaffiliated_institutions
with related name.PreprintLog
save=False
inadd_affiliated_institution()
PreprintInstitutionsList
: this endpoint is read-only, use existingInstitutionSerializer
and newPreprintInstitutionPermissionList
PreprintInstitutionsRelationship
: this endpoint only allowsGET
andPUT
, uses newPreprintsInstitutionsRelationshipSerializer
and updatedWriteOrPublicForRelationshipInstitutions
PreprintsInstitutionsRelationshipSerializer
forPreprintInstitutionsRelationship
InstitutionRelated
fromnodes
toinstitutions
affiliated_institutions
toPreprintSerializer
handle_author_assertions()
WriteOrPublicForRelationshipInstitutions
fromnodes
tobase
and add a special case forPreprint
PreprintInstitutionPermissionList
: this is a permission for read-only endpointhandle_author_assertions()
Preprints.can_edit()
.nodes
toinstitutions
and added a new helperupdate_institutions_if_user_associated()
QA Notes
See project QA Planning
Documentation
See CenterForOpenScience/developer.osf.io#63, make sure we release documentation to
developer.osf.io
too.Side Effects
N/A
Ticket
Project: https://openscience.atlassian.net/browse/ENG-5028
BE: https://openscience.atlassian.net/browse/ENG-5920