Skip to content

collections: added task to compute num of records #5549

collections: added task to compute num of records

collections: added task to compute num of records #5549

Triggered via pull request October 21, 2024 14:10
Status Failure
Total duration 23m 45s
Artifacts

tests.yml

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

Annotations

8 errors
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/collections/results.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/results.py 2024-10-21 14:10:39.097214+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/results.py 2024-10-21 14:31:51.245628+00:00 @@ -64,11 +64,13 @@ } """ res = { "root": self._collection.id, self._collection.id: { - **self._schema.dump(self._collection, context={"identity": self._identity}), + **self._schema.dump( + self._collection, context={"identity": self._identity} + ), "children": list(), "links": self._links_tpl.expand(self._identity, self._collection), }, } @@ -145,11 +147,10 @@ CollectionItem(self._identity, x, self._schema, self._links_item_tpl) for x in self._collections ) - class CollectionTreeItem: """Collection tree item.""" def __init__(self, identity, tree, collection_link_tpl, collection_schema): """Instantiate a Collection tree object."""
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/collections/service.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/service.py 2024-10-21 14:10:39.097214+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/service.py 2024-10-21 14:31:52.272680+00:00 @@ -196,7 +196,9 @@ identity, community_id=collection.community.id, params=params, ) else: - raise NotImplementedError("Search for collections without community not supported.") + raise NotImplementedError( + "Search for collections without community not supported." + ) return res
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/collections/tasks.py#L1
isort-check from flask import current_app from invenio_access.permissions import system_identity -from invenio_rdm_records.proxies import ( - current_rdm_records, -) +from invenio_rdm_records.proxies import current_rdm_records @shared_task(ignore_result=True)
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/collections/results.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/results.py 2024-10-21 14:10:37.791328+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/results.py 2024-10-21 14:32:04.920862+00:00 @@ -64,11 +64,13 @@ } """ res = { "root": self._collection.id, self._collection.id: { - **self._schema.dump(self._collection, context={"identity": self._identity}), + **self._schema.dump( + self._collection, context={"identity": self._identity} + ), "children": list(), "links": self._links_tpl.expand(self._identity, self._collection), }, } @@ -145,11 +147,10 @@ CollectionItem(self._identity, x, self._schema, self._links_item_tpl) for x in self._collections ) - class CollectionTreeItem: """Collection tree item.""" def __init__(self, identity, tree, collection_link_tpl, collection_schema): """Instantiate a Collection tree object."""
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/collections/service.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/service.py 2024-10-21 14:10:37.791328+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/collections/service.py 2024-10-21 14:32:06.301199+00:00 @@ -196,7 +196,9 @@ identity, community_id=collection.community.id, params=params, ) else: - raise NotImplementedError("Search for collections without community not supported.") + raise NotImplementedError( + "Search for collections without community not supported." + ) return res
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/collections/tasks.py#L1
isort-check from flask import current_app from invenio_access.permissions import system_identity -from invenio_rdm_records.proxies import ( - current_rdm_records, -) +from invenio_rdm_records.proxies import current_rdm_records @shared_task(ignore_result=True)
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.