Skip to content
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-6706] Preprints DOI Versioning Project PR - BE #10922

Merged
merged 322 commits into from
Jan 27, 2025

Conversation

cslzchen
Copy link
Collaborator

@cslzchen cslzchen commented Jan 16, 2025

Purpose

  • This pull request implements the backend features for the Preprints DOI Versioning Project.
  • The main goal is to enable preprints versioning, ensuring that each version of a preprint can be uniquely identified and managed.

Changes

  • Added new views and endpoints for handling versioned preprints.
  • Modified permissions to accommodate new versioned preprints features.
  • Added/Updated URL patterns for the versioned preprints.
  • Updated the Preprint model to include fields and methods for DOI versioning.
  • Added a script to populate existing preprints with initial versioned preprint data.
  • Added/Updated unit tests to ensure the correctness of the DOI versioning implementation.

QA Notes

N/A

Documentation

N/A

Side Effects

N/A

Ticket

https://openscience.atlassian.net/browse/ENG-6706

Ostap-Zherebetskyi and others added 30 commits December 9, 2024 13:38
…eprints_update

[ENG-6644][ENG-6680] Rejected version number and GUID referent
[ENG-6558] Fix failed tests for new Versioned GUID change - Part 1
…ned_preprint

[ENG-6692] Versioned preprints refactor
…ator

[ENG-6477] Feature/update sitemap generator
…igeble_objects

[ENG-6679] Feature/improve version ineligeble objects
…OldVersionsImmutableMixin

[ENG-6720] Fixed PreprintOldVersionsImmutableMixin
…id_versions_through

[ENG-6702] Added unique constraint to GuidVersionsThrough
Copy link
Member

@mfraezz mfraezz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple open questions, but otherwise LGTM. Should be RTM when those (and the previously-discussed API relationship stuff, and CrossRef API issue) are resolved.

Pass complete :octocat:

api/base/utils.py Outdated Show resolved Hide resolved
api_tests/nodes/views/test_node_preprints.py Outdated Show resolved Hide resolved
api_tests/preprints/views/test_preprint_versions.py Outdated Show resolved Hide resolved
osf/models/preprint.py Outdated Show resolved Hide resolved
@cslzchen
Copy link
Collaborator Author

The failed test passed locally, might be a random hiccup, hopefully next merge will fix it.

@mfraezz mfraezz merged commit b13312c into develop Jan 27, 2025
17 checks passed
Johnetordoff added a commit to Johnetordoff/osf.io that referenced this pull request Jan 27, 2025
 into log-add-curator

* 'develop' of https://github.com/CenterForOpenScience/osf.io:
  Update CHANGELOG, bump version
  [ENG-6706] Preprints DOI Versioning Project PR - BE (CenterForOpenScience#10922)
Johnetordoff added a commit to Johnetordoff/osf.io that referenced this pull request Jan 27, 2025
 into alert-admins-of-changed-affillations

* 'develop' of https://github.com/CenterForOpenScience/osf.io:
  Update CHANGELOG, bump version
  [ENG-6706] Preprints DOI Versioning Project PR - BE (CenterForOpenScience#10922)

# Conflicts:
#	osf/models/mixins.py
Johnetordoff added a commit to Johnetordoff/osf.io that referenced this pull request Jan 28, 2025
 into log-add-curator

* 'develop' of https://github.com/CenterForOpenScience/osf.io:
  Update CHANGELOG, bump version
  [ENG-6706] Preprints DOI Versioning Project PR - BE (CenterForOpenScience#10922)
Johnetordoff added a commit to Johnetordoff/osf.io that referenced this pull request Jan 29, 2025
…penScience/osf.io into ica-fix-send-email-without-custom-text

* 'feature/b-and-i-25-01' of https://github.com/CenterForOpenScience/osf.io:
  Use previously-fetched guid__id
  Update CHANGELOG, bump version
  [ENG-6706] Preprints DOI Versioning Project PR - BE (CenterForOpenScience#10922)
  fix issue with requested permissions not being passed into state machine add contributor method
  no message
  add resubmit/update ability for node requests

# Conflicts:
#	api_tests/requests/views/test_node_request_institutional_access.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants