resources: add param to filter shared with my uploads #6000
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/6hwrd-srd30?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/access',
'access_grants': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/access/users',
'archive': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/communities-suggestions',
'files': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft/files',
'media_files': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft/media-files',
- 'preview_html': 'https://127.0.0.1:5000/records/6hwrd-srd30?preview=1',
'publish': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft/actions/publish',
'record': 'https://127.0.0.1:5000/api/records/6hwrd-srd30',
'record_html': 'https://127.0.0.1:5000/records/6hwrd-srd30',
'requests': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft/pids/doi',
'review': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft/review',
'self': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/draft',
'self_html': 'https://127.0.0.1:5000/uploads/6hwrd-srd30',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:6hwrd-srd30/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:6hwrd-srd30/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/6hwrd-srd30/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/h10m9-zcv57?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/access',
'access_grants': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/access/users',
'archive': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/communities-suggestions',
'doi': 'https://handle.stage.datacite.org/10.1234/h10m9-zcv57',
'draft': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/draft',
'files': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/files',
'latest': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/versions/latest',
'latest_html': 'https://127.0.0.1:5000/records/h10m9-zcv57/latest',
'media_files': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/media-files',
'parent': 'https://127.0.0.1:5000/api/records/cesd1-gma65',
'parent_doi': 'https://handle.stage.datacite.org/10.1234/cesd1-gma65',
'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/cesd1-gma65',
'parent_html': 'https://127.0.0.1:5000/records/cesd1-gma65',
- 'preview_html': 'https://127.0.0.1:5000/records/h10m9-zcv57?preview=1',
'requests': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/draft/pids/doi',
'self': 'https://127.0.0.1:5000/api/records/h10m9-zcv57',
'self_doi': 'https://handle.stage.datacite.org/10.1234/h10m9-zcv57',
'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/h10m9-zcv57',
'self_html': 'https://127.0.0.1:5000/records/h10m9-zcv57',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:h10m9-zcv57/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:h10m9-zcv57/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/h10m9-zcv57/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/0h3dr-q1n72?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/access',
'access_grants': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/access/users',
'archive': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/communities-suggestions',
'files': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft/files',
'media_files': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft/media-files',
- 'preview_html': 'https://127.0.0.1:5000/records/0h3dr-q1n72?preview=1',
'publish': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft/actions/publish',
'record': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72',
'record_html': 'https://127.0.0.1:5000/records/0h3dr-q1n72',
'requests': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft/pids/doi',
'review': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft/review',
'self': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/draft',
'self_html': 'https://127.0.0.1:5000/uploads/0h3dr-q1n72',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/draft:0h3dr-q1n72/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/draft:0h3dr-q1n72/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/0h3dr-q1n72/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/pfzy6-b5s76?preview=1'}
Full diff:
{
'access': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/access',
'access_grants': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/access/grants',
'access_groups': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/access/groups',
'access_links': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/access/links',
'access_request': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/access/request',
'access_users': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/access/users',
'archive': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/files-archive',
'archive_media': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/media-files-archive',
'communities': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/communities',
'communities-suggestions': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/communities-suggestions',
'doi': 'https://handle.stage.datacite.org/10.1234/pfzy6-b5s76',
'draft': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/draft',
'files': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/files',
'latest': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/versions/latest',
'latest_html': 'https://127.0.0.1:5000/records/pfzy6-b5s76/latest',
'media_files': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/media-files',
'parent': 'https://127.0.0.1:5000/api/records/ks9jz-vtt78',
'parent_doi': 'https://handle.stage.datacite.org/10.1234/ks9jz-vtt78',
'parent_doi_html': 'https://127.0.0.1:5000/doi/10.1234/ks9jz-vtt78',
'parent_html': 'https://127.0.0.1:5000/records/ks9jz-vtt78',
- 'preview_html': 'https://127.0.0.1:5000/records/pfzy6-b5s76?preview=1',
'requests': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/requests',
'reserve_doi': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/draft/pids/doi',
'self': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76',
'self_doi': 'https://handle.stage.datacite.org/10.1234/pfzy6-b5s76',
'self_doi_html': 'https://127.0.0.1:5000/doi/10.1234/pfzy6-b5s76',
'self_html': 'https://127.0.0.1:5000/records/pfzy6-b5s76',
'self_iiif_manifest': 'https://127.0.0.1:5000/api/iiif/record:pfzy6-b5s76/manifest',
'self_iiif_sequence': 'https://127.0.0.1:5000/api/iiif/record:pfzy6-b5s76/sequence/default',
'versions': 'https://127.0.0.1:5000/api/records/pfzy6-b5s76/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
|