Skip to content

config: Update checkout permissions to support self checkout #2054

config: Update checkout permissions to support self checkout

config: Update checkout permissions to support self checkout #2054

Triggered via pull request June 10, 2024 14:48
Status Failure
Total duration 6m 10s
Artifacts

tests.yml

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

Annotations

5 errors and 2 warnings
Python_Tests (3.9, postgresql14, opensearch2): cds_ils/config.py#L1
isort-check circulation_default_extension_duration, circulation_default_loan_duration, ) +from invenio_app_ils.items.api import ITEM_PID_TYPE from invenio_app_ils.literature.api import LITERATURE_PID_TYPE from invenio_app_ils.locations.api import LOCATION_PID_TYPE from invenio_app_ils.patrons.api import PATRON_PID_TYPE from invenio_app_ils.permissions import ( authenticated_user_permission, backoffice_permission, + loan_checkout_permission, loan_extend_circulation_permission, patron_owner_permission, - loan_checkout_permission, ) from invenio_app_ils.series.api import SERIES_PID_TYPE -from invenio_app_ils.items.api import ITEM_PID_TYPE from invenio_circulation.pidstore.pids import CIRCULATION_LOAN_PID_TYPE from invenio_circulation.transitions.transitions import ( CreatedToPending,
Python_Tests (3.9, postgresql14, opensearch2): cds_ils/config.py#L1
Black format check --- /home/runner/work/cds-ils/cds-ils/cds_ils/config.py 2024-06-10 14:48:37.928637+00:00 +++ /home/runner/work/cds-ils/cds-ils/cds_ils/config.py 2024-06-10 14:53:23.335563+00:00 @@ -401,15 +401,19 @@ } RECORDS_REST_ENDPOINTS[SERIES_PID_TYPE]["search_serializers"] = { "application/json": "cds_ils.series.serializers:json_v1_search", "text/csv": "cds_ils.series.serializers:csv_v1_search", } -RECORDS_REST_ENDPOINTS[ITEM_PID_TYPE]["list_permission_factory_imp"] = authenticated_user_permission +RECORDS_REST_ENDPOINTS[ITEM_PID_TYPE][ + "list_permission_factory_imp" +] = authenticated_user_permission ILS_CIRCULATION_RECORDS_REST_ENDPOINTS[CIRCULATION_LOAN_PID_TYPE]["search_serializers"][ "text/csv" ] = "cds_ils.circulation.serializers:csv_v1_search" -ILS_CIRCULATION_RECORDS_REST_ENDPOINTS[CIRCULATION_LOAN_PID_TYPE]["update_permission_factory_imp"] = loan_checkout_permission +ILS_CIRCULATION_RECORDS_REST_ENDPOINTS[CIRCULATION_LOAN_PID_TYPE][ + "update_permission_factory_imp" +] = loan_checkout_permission ############################################################################### # ILS overridden ############################################################################### ILS_VIEWS_PERMISSIONS_FACTORY = views_permissions_factory
Python_Tests (3.9, postgresql14, opensearch2): cds_ils/patrons/permissions.py#L1
isort-check from invenio_access import action_factory from invenio_access.permissions import Permission -from invenio_app_ils.permissions import backoffice_access_action, authenticated_user_permission +from invenio_app_ils.permissions import ( + authenticated_user_permission, + backoffice_access_action, +) from invenio_app_ils.permissions import ( views_permissions_factory as ils_views_permissions_factory, )
Python_Tests (3.9, postgresql14, opensearch2): cds_ils/patrons/permissions.py#L1
Black format check --- /home/runner/work/cds-ils/cds-ils/cds_ils/patrons/permissions.py 2024-06-10 14:48:37.936637+00:00 +++ /home/runner/work/cds-ils/cds-ils/cds_ils/patrons/permissions.py 2024-06-10 14:54:10.178664+00:00 @@ -7,11 +7,14 @@ """CDS-ILS retrieve patron loans permissions.""" from invenio_access import action_factory from invenio_access.permissions import Permission -from invenio_app_ils.permissions import backoffice_access_action, authenticated_user_permission +from invenio_app_ils.permissions import ( + backoffice_access_action, + authenticated_user_permission, +) from invenio_app_ils.permissions import ( views_permissions_factory as ils_views_permissions_factory, ) retrieve_patron_loans_access_action = action_factory("retrieve-patron-loans-access")
Python_Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Node_Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Python_Tests (3.9, postgresql14, opensearch2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.