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

make DOI optional and add CLI command for DOI minting #1979

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

zubeydecivelek
Copy link
Contributor

  • Removed DOI minting code for video
  • Added a CLI command to mint DOI
  • Updated FAQ section to request a DOI
  • Updated tests to reflect the changes

- Removed DOI minting code for video types
- Added a CLI command to mint DOI
- Updated FAQ section to request a DOI
- Updated tests to reflect the changes
Copy link
Contributor

@jrcastro2 jrcastro2 left a comment

Choose a reason for hiding this comment

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

Left a couple of comments, nice test!

cds/modules/deposit/api.py Outdated Show resolved Hide resolved
cds/modules/records/minters.py Outdated Show resolved Hide resolved
cds/modules/maintenance/cli.py Outdated Show resolved Hide resolved
tests/unit/test_video_rest.py Outdated Show resolved Hide resolved
cds/modules/maintenance/cli.py Outdated Show resolved Hide resolved
cds/modules/maintenance/cli.py Outdated Show resolved Hide resolved
cds/modules/maintenance/cli.py Outdated Show resolved Hide resolved
cds/modules/maintenance/cli.py Show resolved Hide resolved
tests/unit/test_provider.py Show resolved Hide resolved
tests/unit/test_video_rest.py Outdated Show resolved Hide resolved
tests/unit/test_video_rest.py Outdated Show resolved Hide resolved
@@ -528,6 +526,67 @@ def test_record_video_links(
}


@mock.patch("invenio_pidstore.providers.datacite.DataCiteMDSClient")
def test_mint_doi_with_cli(
Copy link
Contributor

Choose a reason for hiding this comment

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

Really nice and clear test :)

cds/modules/deposit/api.py Outdated Show resolved Hide resolved
cds/modules/deposit/api.py Outdated Show resolved Hide resolved
cds/modules/deposit/api.py Show resolved Hide resolved
cds/modules/maintenance/cli.py Outdated Show resolved Hide resolved
@zzacharo zzacharo merged commit 0700b95 into CERNDocumentServer:main Nov 19, 2024
1 check passed
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.

Make DOI optional (for Weblecture video type and/or all video types)
3 participants