resources: add param to filter shared with my uploads #6001
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/txf2w-45463?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/txf2w-45463/access',
'access_grants': 'https://127.0.0.1:5000/api/records/txf2w-45463/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/txf2w-45463/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/txf2w-45463/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/txf2w-45463/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/txf2w-45463/access/users',
'archive': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/txf2w-45463/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/txf2w-45463/communities-suggestions',
'files': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft/files',
'media_files': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft/media-files',
- 'preview_html': 'https://127.0.0.1:5000/records/txf2w-45463?preview=1',
'publish': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft/actions/publish',
'record': 'https://127.0.0.1:5000/api/records/txf2w-45463',
'record_html': 'https://127.0.0.1:5000/records/txf2w-45463',
'requests': 'https://127.0.0.1:5000/api/records/txf2w-45463/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft/pids/doi',
'review': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft/review',
'self': 'https://127.0.0.1:5000/api/records/txf2w-45463/draft',
'self_html': 'https://127.0.0.1:5000/uploads/txf2w-45463',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:txf2w-45463/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:txf2w-45463/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/txf2w-45463/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/xedyh-n5705?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/xedyh-n5705/access',
'access_grants': 'https://127.0.0.1:5000/api/records/xedyh-n5705/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/xedyh-n5705/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/xedyh-n5705/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/xedyh-n5705/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/xedyh-n5705/access/users',
'archive': 'https://127.0.0.1:5000/api/records/xedyh-n5705/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/xedyh-n5705/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/xedyh-n5705/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/xedyh-n5705/communities-suggestions',
'doi': 'https://handle.stage.datacite.org/10.1234/xedyh-n5705',
'draft': 'https://127.0.0.1:5000/api/records/xedyh-n5705/draft',
'files': 'https://127.0.0.1:5000/api/records/xedyh-n5705/files',
'latest': 'https://127.0.0.1:5000/api/records/xedyh-n5705/versions/latest',
'latest_html': 'https://127.0.0.1:5000/records/xedyh-n5705/latest',
'media_files': 'https://127.0.0.1:5000/api/records/xedyh-n5705/media-files',
'parent': 'https://127.0.0.1:5000/api/records/by09x-6v181',
'parent_doi': 'https://handle.stage.datacite.org/10.1234/by09x-6v181',
'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/by09x-6v181',
'parent_html': 'https://127.0.0.1:5000/records/by09x-6v181',
- 'preview_html': 'https://127.0.0.1:5000/records/xedyh-n5705?preview=1',
'requests': 'https://127.0.0.1:5000/api/records/xedyh-n5705/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/xedyh-n5705/draft/pids/doi',
'self': 'https://127.0.0.1:5000/api/records/xedyh-n5705',
'self_doi': 'https://handle.stage.datacite.org/10.1234/xedyh-n5705',
'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/xedyh-n5705',
'self_html': 'https://127.0.0.1:5000/records/xedyh-n5705',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:xedyh-n5705/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:xedyh-n5705/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/xedyh-n5705/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/4mjee-c1f75?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/access',
'access_grants': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/access/users',
'archive': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/communities-suggestions',
'files': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft/files',
'media_files': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft/media-files',
- 'preview_html': 'https://127.0.0.1:5000/records/4mjee-c1f75?preview=1',
'publish': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft/actions/publish',
'record': 'https://127.0.0.1:5000/api/records/4mjee-c1f75',
'record_html': 'https://127.0.0.1:5000/records/4mjee-c1f75',
'requests': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft/pids/doi',
'review': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft/review',
'self': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/draft',
'self_html': 'https://127.0.0.1:5000/uploads/4mjee-c1f75',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:4mjee-c1f75/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:4mjee-c1f75/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/4mjee-c1f75/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/zm0b9-ad344?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/access',
'access_grants': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/access/users',
'archive': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/communities-suggestions',
'doi': 'https://handle.stage.datacite.org/10.1234/zm0b9-ad344',
'draft': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/draft',
'files': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/files',
'latest': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/versions/latest',
'latest_html': 'https://127.0.0.1:5000/records/zm0b9-ad344/latest',
'media_files': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/media-files',
'parent': 'https://127.0.0.1:5000/api/records/fs1gh-gcg06',
'parent_doi': 'https://handle.stage.datacite.org/10.1234/fs1gh-gcg06',
'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/fs1gh-gcg06',
'parent_html': 'https://127.0.0.1:5000/records/fs1gh-gcg06',
- 'preview_html': 'https://127.0.0.1:5000/records/zm0b9-ad344?preview=1',
'requests': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/draft/pids/doi',
'self': 'https://127.0.0.1:5000/api/records/zm0b9-ad344',
'self_doi': 'https://handle.stage.datacite.org/10.1234/zm0b9-ad344',
'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/zm0b9-ad344',
'self_html': 'https://127.0.0.1:5000/records/zm0b9-ad344',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:zm0b9-ad344/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:zm0b9-ad344/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/zm0b9-ad344/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/passlib/utils/__init__.py#L854
'crypt' is deprecated and slated for removal in Python 3.13
|
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
|