Skip to content

errors: rework PermissionDeniedError #1559

errors: rework PermissionDeniedError

errors: rework PermissionDeniedError #1559

Triggered via pull request May 21, 2024 09:35
Status Failure
Total duration 3m 39s
Artifacts

tests.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

49 errors and 4 warnings
Tests (3.8, pypi, redis, postgresql13, opensearch2): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.653981+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:16.490407+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.8, pypi, redis, postgresql13, opensearch2): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:28.653981+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:27.136008+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.8, pypi, redis, postgresql13, opensearch2): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.8, pypi, redis, postgresql13, opensearch2)
Process completed with exit code 1.
Tests (3.9, pypi, redis, postgresql14, elasticsearch7): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.560503+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:14.940885+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.9, pypi, redis, postgresql14, elasticsearch7): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:28.560503+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:25.992350+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.9, pypi, redis, postgresql14, elasticsearch7): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.9, pypi, redis, postgresql14, elasticsearch7)
Process completed with exit code 1.
Tests (3.8, pypi, redis, postgresql14, elasticsearch7)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.8, pypi, redis, postgresql14, elasticsearch7): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:27.848482+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:26.339916+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.8, pypi, redis, postgresql14, elasticsearch7): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:27.852482+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:37.272789+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.8, pypi, redis, postgresql14, elasticsearch7): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.8, pypi, redis, postgresql14, elasticsearch7)
The operation was canceled.
Tests (3.8, pypi, redis, postgresql14, opensearch2)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.8, pypi, redis, postgresql14, opensearch2): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.269427+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:26.311545+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.8, pypi, redis, postgresql14, opensearch2): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:28.269427+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:36.903458+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.8, pypi, redis, postgresql14, opensearch2): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.8, pypi, redis, postgresql14, opensearch2)
The operation was canceled.
Tests (3.9, pypi, redis, mysql8, elasticsearch7)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.9, pypi, redis, mysql8, elasticsearch7): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.534747+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:29.985114+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.9, pypi, redis, mysql8, elasticsearch7): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:28.538747+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:40.674711+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.9, pypi, redis, mysql8, elasticsearch7): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.9, pypi, redis, mysql8, elasticsearch7)
The operation was canceled.
Tests (3.9, pypi, redis, postgresql13, elasticsearch7)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.9, pypi, redis, postgresql13, elasticsearch7): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.262841+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:29.933862+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.9, pypi, redis, postgresql13, elasticsearch7): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:28.262841+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:41.017541+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.9, pypi, redis, postgresql13, elasticsearch7): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.9, pypi, redis, postgresql13, elasticsearch7)
The operation was canceled.
Tests (3.8, pypi, redis, mysql8, elasticsearch7)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.8, pypi, redis, mysql8, elasticsearch7)
The operation was canceled.
Tests (3.9, pypi, redis, postgresql14, opensearch2)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.9, pypi, redis, postgresql14, opensearch2): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.211320+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:39.770531+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.9, pypi, redis, postgresql14, opensearch2): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:28.211320+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:50.953367+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.9, pypi, redis, postgresql14, opensearch2)
The operation was canceled.
Tests (3.9, pypi, redis, postgresql13, opensearch2)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.9, pypi, redis, postgresql13, opensearch2): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:27.933738+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:32.684411+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.9, pypi, redis, postgresql13, opensearch2): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:27.933738+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:43.575654+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.9, pypi, redis, postgresql13, opensearch2): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.9, pypi, redis, postgresql13, opensearch2)
The operation was canceled.
Tests (3.9, pypi, redis, mysql8, opensearch2)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.9, pypi, redis, mysql8, opensearch2): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.829218+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:47.295058+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.9, pypi, redis, mysql8, opensearch2)
The operation was canceled.
Tests (3.8, pypi, redis, postgresql13, elasticsearch7)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.8, pypi, redis, postgresql13, elasticsearch7): invenio_records_resources/services/errors.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:35:28.457110+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/errors.py 2024-05-21 09:38:32.330351+00:00 @@ -23,11 +23,12 @@ def __init__(self, action_name=None, record=None, *args, **kwargs): """Initialize exception.""" self.record = record self.action_name = action_name super(RecordPermissionDeniedError, self).__init__(*args, **kwargs) - + + class PermissionDeniedError(PermissionDenied): """Permission denied error.""" description = "Permission denied."
Tests (3.8, pypi, redis, postgresql13, elasticsearch7): invenio_records_resources/services/records/service.py#L1
Black format check --- /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:35:28.457110+00:00 +++ /home/runner/work/invenio-records-resources/invenio-records-resources/invenio_records_resources/services/records/service.py 2024-05-21 09:38:43.345407+00:00 @@ -17,11 +17,14 @@ from invenio_search import current_search_client from invenio_search.engine import dsl from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError from ..uow import RecordCommitOp, RecordDeleteOp, unit_of_work from .schema import ServiceSchemaWrapper
Tests (3.8, pypi, redis, postgresql13, elasticsearch7): invenio_records_resources/services/records/service.py#L1
isort-check from kombu import Queue from werkzeug.local import LocalProxy -from invenio_records_resources.services.errors import PermissionDeniedError, RecordPermissionDeniedError +from invenio_records_resources.services.errors import ( + PermissionDeniedError, + RecordPermissionDeniedError, +) from ..base import LinksTemplate, Service from ..errors import RevisionIdMismatchError
Tests (3.8, pypi, redis, postgresql13, elasticsearch7)
The operation was canceled.
Tests (3.8, pypi, redis, mysql8, opensearch2)
The job was canceled because "_3_8_pypi_redis_postgresq" failed.
Tests (3.8, pypi, redis, mysql8, opensearch2)
The operation was canceled.
Tests (3.8, pypi, redis, postgresql13, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (3.8, pypi, redis, postgresql13, opensearch2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (3.9, pypi, redis, postgresql14, elasticsearch7)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (3.9, pypi, redis, postgresql14, elasticsearch7)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/