Skip to content

ror: use datePublished as fallback date for dataset timestamp #1478

ror: use datePublished as fallback date for dataset timestamp

ror: use datePublished as fallback date for dataset timestamp #1478

Triggered via pull request August 28, 2024 14:30
Status Failure
Total duration 5m 42s
Artifacts

tests.yml

on: pull_request
Matrix: JS / Tests
Matrix: Python / Tests
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Python / Tests (3.9, postgresql14, opensearch2): invenio_vocabularies/contrib/common/ror/datastreams.py#L1
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py 2024-08-28 14:30:19.733028+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py 2024-08-28 14:34:34.440232+00:00 @@ -45,11 +45,12 @@ ) json_ld_reponse.raise_for_status() json_ld_data = json_ld_reponse.json() last_dump_date = arrow.get( - json_ld_data.get("dateCreated") or json_ld_data.get("datePublished") + json_ld_data.get("dateCreated") + or json_ld_data.get("datePublished") ) return last_dump_date else: raise ReaderError( "Couldn't find JSON-LD in publisher's linkset to determine last dump date."
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): invenio_vocabularies/contrib/common/ror/datastreams.py#L1
Black format check --- /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py 2024-08-28 14:30:18.798487+00:00 +++ /home/runner/work/invenio-vocabularies/invenio-vocabularies/invenio_vocabularies/contrib/common/ror/datastreams.py 2024-08-28 14:35:09.377401+00:00 @@ -45,11 +45,12 @@ ) json_ld_reponse.raise_for_status() json_ld_data = json_ld_reponse.json() last_dump_date = arrow.get( - json_ld_data.get("dateCreated") or json_ld_data.get("datePublished") + json_ld_data.get("dateCreated") + or json_ld_data.get("datePublished") ) return last_dump_date else: raise ReaderError( "Couldn't find JSON-LD in publisher's linkset to determine last dump date."
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.