Skip to content

resources: add param to filter shared with my uploads #6002

resources: add param to filter shared with my uploads

resources: add param to filter shared with my uploads #6002

Triggered via pull request March 4, 2025 13:19
Status Failure
Total duration 27m 51s
Artifacts

tests.yml

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

Annotations

12 errors and 22 warnings
Python / Tests (3.9, postgresql14, opensearch2): tests/resources/test_serialized_links.py#L82
test_draft_links AssertionError: assert {'access': 'h...s/links', ...} == {'access': 'h...s/links', ...} Omitting 23 identical items, use -vv to show Right contains 1 more item: {'preview_html': 'https://127.0.0.1:5000/records/519vq-v9v20?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/519vq-v9v20/access', 'access_grants': 'https://127.0.0.1:5000/api/records/519vq-v9v20/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/519vq-v9v20/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/519vq-v9v20/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/519vq-v9v20/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/519vq-v9v20/access/users', 'archive': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/519vq-v9v20/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/519vq-v9v20/communities-suggestions', 'files': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft/files', 'media_files': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft/media-files', - 'preview_html': 'https://127.0.0.1:5000/records/519vq-v9v20?preview=1', 'publish': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft/actions/publish', 'record': 'https://127.0.0.1:5000/api/records/519vq-v9v20', 'record_html': 'https://127.0.0.1:5000/records/519vq-v9v20', 'requests': 'https://127.0.0.1:5000/api/records/519vq-v9v20/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft/pids/doi', 'review': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft/review', 'self': 'https://127.0.0.1:5000/api/records/519vq-v9v20/draft', 'self_html': 'https://127.0.0.1:5000/uploads/519vq-v9v20', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:519vq-v9v20/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:519vq-v9v20/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/519vq-v9v20/versions', }
Python / Tests (3.9, postgresql14, opensearch2): tests/resources/test_serialized_links.py#L127
test_record_links AssertionError: assert {'access': 'h...s/links', ...} == {'access': 'h...s/links', ...} Omitting 29 identical items, use -vv to show Right contains 1 more item: {'preview_html': 'https://127.0.0.1:5000/records/e80ab-29837?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/e80ab-29837/access', 'access_grants': 'https://127.0.0.1:5000/api/records/e80ab-29837/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/e80ab-29837/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/e80ab-29837/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/e80ab-29837/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/e80ab-29837/access/users', 'archive': 'https://127.0.0.1:5000/api/records/e80ab-29837/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/e80ab-29837/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/e80ab-29837/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/e80ab-29837/communities-suggestions', 'doi': 'https://handle.stage.datacite.org/10.1234/e80ab-29837', 'draft': 'https://127.0.0.1:5000/api/records/e80ab-29837/draft', 'files': 'https://127.0.0.1:5000/api/records/e80ab-29837/files', 'latest': 'https://127.0.0.1:5000/api/records/e80ab-29837/versions/latest', 'latest_html': 'https://127.0.0.1:5000/records/e80ab-29837/latest', 'media_files': 'https://127.0.0.1:5000/api/records/e80ab-29837/media-files', 'parent': 'https://127.0.0.1:5000/api/records/0yqrr-qq829', 'parent_doi': 'https://handle.stage.datacite.org/10.1234/0yqrr-qq829', 'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/0yqrr-qq829', 'parent_html': 'https://127.0.0.1:5000/records/0yqrr-qq829', - 'preview_html': 'https://127.0.0.1:5000/records/e80ab-29837?preview=1', 'requests': 'https://127.0.0.1:5000/api/records/e80ab-29837/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/e80ab-29837/draft/pids/doi', 'self': 'https://127.0.0.1:5000/api/records/e80ab-29837', 'self_doi': 'https://handle.stage.datacite.org/10.1234/e80ab-29837', 'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/e80ab-29837', 'self_html': 'https://127.0.0.1:5000/records/e80ab-29837', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:e80ab-29837/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:e80ab-29837/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/e80ab-29837/versions', }
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/services/access/service.py#L1
isort-check from invenio_notifications.services.uow import NotificationOp from invenio_records_resources.services.errors import PermissionDeniedError from invenio_records_resources.services.records.schema import ServiceSchemaWrapper -from invenio_records_resources.services.uow import unit_of_work, RecordCommitOp +from invenio_records_resources.services.uow import RecordCommitOp, unit_of_work from invenio_requests.proxies import current_requests_service from invenio_search.engine import dsl from invenio_users_resources.proxies import current_user_resources
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/services/config.py#L1
isort-check from .schemas.tombstone import TombstoneSchema from .search_params import ( MetricsParam, + PublishedRecordsParam, SharedOrMyDraftsParam, - PublishedRecordsParam, StatusParam, ) from .sort import VerifiedRecordsSortParam
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/services/search_params.py#L1
isort-check """Search parameter interpreter API.""" +from invenio_access.permissions import authenticated_user +from invenio_records_resources.services.records.params.base import ParamInterpreter from invenio_search.engine import dsl -from invenio_access.permissions import authenticated_user -from invenio_records_resources.services.records.params.base import ParamInterpreter - -from invenio_rdm_records.services.generators import AccessGrant from invenio_rdm_records.records.systemfields.deletion_status import ( RecordDeletionStatusEnum, ) +from invenio_rdm_records.services.generators import AccessGrant class StatusParam(ParamInterpreter):
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): tests/resources/test_serialized_links.py#L82
test_draft_links AssertionError: assert {'access': 'h...s/links', ...} == {'access': 'h...s/links', ...} Omitting 23 identical items, use -vv to show Right contains 1 more item: {'preview_html': 'https://127.0.0.1:5000/records/12z73-kgp34?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/12z73-kgp34/access', 'access_grants': 'https://127.0.0.1:5000/api/records/12z73-kgp34/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/12z73-kgp34/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/12z73-kgp34/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/12z73-kgp34/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/12z73-kgp34/access/users', 'archive': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/12z73-kgp34/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/12z73-kgp34/communities-suggestions', 'files': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft/files', 'media_files': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft/media-files', - 'preview_html': 'https://127.0.0.1:5000/records/12z73-kgp34?preview=1', 'publish': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft/actions/publish', 'record': 'https://127.0.0.1:5000/api/records/12z73-kgp34', 'record_html': 'https://127.0.0.1:5000/records/12z73-kgp34', 'requests': 'https://127.0.0.1:5000/api/records/12z73-kgp34/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft/pids/doi', 'review': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft/review', 'self': 'https://127.0.0.1:5000/api/records/12z73-kgp34/draft', 'self_html': 'https://127.0.0.1:5000/uploads/12z73-kgp34', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:12z73-kgp34/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:12z73-kgp34/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/12z73-kgp34/versions', }
Python / Tests (3.12, postgresql14, opensearch2): tests/resources/test_serialized_links.py#L127
test_record_links AssertionError: assert {'access': 'h...s/links', ...} == {'access': 'h...s/links', ...} Omitting 29 identical items, use -vv to show Right contains 1 more item: {'preview_html': 'https://127.0.0.1:5000/records/90f9z-61c20?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/90f9z-61c20/access', 'access_grants': 'https://127.0.0.1:5000/api/records/90f9z-61c20/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/90f9z-61c20/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/90f9z-61c20/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/90f9z-61c20/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/90f9z-61c20/access/users', 'archive': 'https://127.0.0.1:5000/api/records/90f9z-61c20/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/90f9z-61c20/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/90f9z-61c20/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/90f9z-61c20/communities-suggestions', 'doi': 'https://handle.stage.datacite.org/10.1234/90f9z-61c20', 'draft': 'https://127.0.0.1:5000/api/records/90f9z-61c20/draft', 'files': 'https://127.0.0.1:5000/api/records/90f9z-61c20/files', 'latest': 'https://127.0.0.1:5000/api/records/90f9z-61c20/versions/latest', 'latest_html': 'https://127.0.0.1:5000/records/90f9z-61c20/latest', 'media_files': 'https://127.0.0.1:5000/api/records/90f9z-61c20/media-files', 'parent': 'https://127.0.0.1:5000/api/records/qp63c-bzp14', 'parent_doi': 'https://handle.stage.datacite.org/10.1234/qp63c-bzp14', 'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/qp63c-bzp14', 'parent_html': 'https://127.0.0.1:5000/records/qp63c-bzp14', - 'preview_html': 'https://127.0.0.1:5000/records/90f9z-61c20?preview=1', 'requests': 'https://127.0.0.1:5000/api/records/90f9z-61c20/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/90f9z-61c20/draft/pids/doi', 'self': 'https://127.0.0.1:5000/api/records/90f9z-61c20', 'self_doi': 'https://handle.stage.datacite.org/10.1234/90f9z-61c20', 'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/90f9z-61c20', 'self_html': 'https://127.0.0.1:5000/records/90f9z-61c20', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:90f9z-61c20/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:90f9z-61c20/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/90f9z-61c20/versions', }
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/services/access/service.py#L1
isort-check from invenio_notifications.services.uow import NotificationOp from invenio_records_resources.services.errors import PermissionDeniedError from invenio_records_resources.services.records.schema import ServiceSchemaWrapper -from invenio_records_resources.services.uow import unit_of_work, RecordCommitOp +from invenio_records_resources.services.uow import RecordCommitOp, unit_of_work from invenio_requests.proxies import current_requests_service from invenio_search.engine import dsl from invenio_users_resources.proxies import current_user_resources
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/services/config.py#L1
isort-check from .schemas.tombstone import TombstoneSchema from .search_params import ( MetricsParam, + PublishedRecordsParam, SharedOrMyDraftsParam, - PublishedRecordsParam, StatusParam, ) from .sort import VerifiedRecordsSortParam
Python / Tests (3.12, postgresql14, opensearch2): invenio_rdm_records/services/search_params.py#L1
isort-check """Search parameter interpreter API.""" +from invenio_access.permissions import authenticated_user +from invenio_records_resources.services.records.params.base import ParamInterpreter from invenio_search.engine import dsl -from invenio_access.permissions import authenticated_user -from invenio_records_resources.services.records.params.base import ParamInterpreter - -from invenio_rdm_records.services.generators import AccessGrant from invenio_rdm_records.records.systemfields.deletion_status import ( RecordDeletionStatusEnum, ) +from invenio_rdm_records.services.generators import AccessGrant class StatusParam(ParamInterpreter):
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Python / Tests (3.9, postgresql14, opensearch2): invenio_rdm_records/config.py#L15
Implicit imports (e.g., 'import idutils; idutils.function;') might be removed in the next major version. Please use explicit imports (e.g., 'from idutils import function;') instead.
Python / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow/utils.py#L361
`Field` should not be instantiated. Use `fields.Raw` or another field subclass instead.
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/fs/__init__.py#L4
Deprecated call to `pkg_resources.declare_namespace('fs')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/fs/opener/__init__.py#L6
Deprecated call to `pkg_resources.declare_namespace('fs.opener')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Python / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/pkg_resources/__init__.py#L2559
Deprecated call to `pkg_resources.declare_namespace('fs')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages