Skip to content

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

resources: add param to filter shared with my uploads

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

Triggered via pull request March 4, 2025 14:10
Status Failure
Total duration 27m 11s
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/7y8rf-14p83?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/access', 'access_grants': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/access/users', 'archive': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/communities-suggestions', 'files': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft/files', 'media_files': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft/media-files', - 'preview_html': 'https://127.0.0.1:5000/records/7y8rf-14p83?preview=1', 'publish': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft/actions/publish', 'record': 'https://127.0.0.1:5000/api/records/7y8rf-14p83', 'record_html': 'https://127.0.0.1:5000/records/7y8rf-14p83', 'requests': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft/pids/doi', 'review': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft/review', 'self': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/draft', 'self_html': 'https://127.0.0.1:5000/uploads/7y8rf-14p83', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:7y8rf-14p83/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:7y8rf-14p83/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/7y8rf-14p83/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/1875f-ata29?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/1875f-ata29/access', 'access_grants': 'https://127.0.0.1:5000/api/records/1875f-ata29/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/1875f-ata29/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/1875f-ata29/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/1875f-ata29/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/1875f-ata29/access/users', 'archive': 'https://127.0.0.1:5000/api/records/1875f-ata29/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/1875f-ata29/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/1875f-ata29/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/1875f-ata29/communities-suggestions', 'doi': 'https://handle.stage.datacite.org/10.1234/1875f-ata29', 'draft': 'https://127.0.0.1:5000/api/records/1875f-ata29/draft', 'files': 'https://127.0.0.1:5000/api/records/1875f-ata29/files', 'latest': 'https://127.0.0.1:5000/api/records/1875f-ata29/versions/latest', 'latest_html': 'https://127.0.0.1:5000/records/1875f-ata29/latest', 'media_files': 'https://127.0.0.1:5000/api/records/1875f-ata29/media-files', 'parent': 'https://127.0.0.1:5000/api/records/j46ac-8vd74', 'parent_doi': 'https://handle.stage.datacite.org/10.1234/j46ac-8vd74', 'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/j46ac-8vd74', 'parent_html': 'https://127.0.0.1:5000/records/j46ac-8vd74', - 'preview_html': 'https://127.0.0.1:5000/records/1875f-ata29?preview=1', 'requests': 'https://127.0.0.1:5000/api/records/1875f-ata29/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/1875f-ata29/draft/pids/doi', 'self': 'https://127.0.0.1:5000/api/records/1875f-ata29', 'self_doi': 'https://handle.stage.datacite.org/10.1234/1875f-ata29', 'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/1875f-ata29', 'self_html': 'https://127.0.0.1:5000/records/1875f-ata29', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:1875f-ata29/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:1875f-ata29/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/1875f-ata29/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/rtj9z-x3d52?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/access', 'access_grants': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/access/users', 'archive': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/communities-suggestions', 'files': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft/files', 'media_files': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft/media-files', - 'preview_html': 'https://127.0.0.1:5000/records/rtj9z-x3d52?preview=1', 'publish': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft/actions/publish', 'record': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52', 'record_html': 'https://127.0.0.1:5000/records/rtj9z-x3d52', 'requests': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft/pids/doi', 'review': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft/review', 'self': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/draft', 'self_html': 'https://127.0.0.1:5000/uploads/rtj9z-x3d52', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:rtj9z-x3d52/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:rtj9z-x3d52/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/rtj9z-x3d52/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/kk3gy-y1670?preview=1'} Full diff: { 'access': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/access', 'access_grants': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/access/grants', 'access_groups': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/access/groups', 'access_links': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/access/links', 'access_request': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/access/request', 'access_users': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/access/users', 'archive': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/files-archive', 'archive_media': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/media-files-archive', 'communities': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/communities', 'communities-suggestions': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/communities-suggestions', 'doi': 'https://handle.stage.datacite.org/10.1234/kk3gy-y1670', 'draft': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/draft', 'files': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/files', 'latest': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/versions/latest', 'latest_html': 'https://127.0.0.1:5000/records/kk3gy-y1670/latest', 'media_files': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/media-files', 'parent': 'https://127.0.0.1:5000/api/records/e9mt8-f4b10', 'parent_doi': 'https://handle.stage.datacite.org/10.1234/e9mt8-f4b10', 'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/e9mt8-f4b10', 'parent_html': 'https://127.0.0.1:5000/records/e9mt8-f4b10', - 'preview_html': 'https://127.0.0.1:5000/records/kk3gy-y1670?preview=1', 'requests': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/requests', 'reserve_doi': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/draft/pids/doi', 'self': 'https://127.0.0.1:5000/api/records/kk3gy-y1670', 'self_doi': 'https://handle.stage.datacite.org/10.1234/kk3gy-y1670', 'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/kk3gy-y1670', 'self_html': 'https://127.0.0.1:5000/records/kk3gy-y1670', 'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:kk3gy-y1670/manifest', 'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:kk3gy-y1670/sequence/default', 'versions': 'https://127.0.0.1:5000/api/records/kk3gy-y1670/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