global: add redirection from legacy recids #208
Triggered via pull request
September 27, 2024 15:58
Status
Failure
Total duration
5m 28s
Artifacts
–
Annotations
6 errors and 1 warning
Tests (site, 3.9, postgresql14, opensearch2, redis, rabbitmq, 18):
site/cds_rdm/views.py#L1
Black format check
--- /home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/views.py 2024-09-27 15:58:42.954832+00:00
+++ /home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/views.py 2024-09-27 16:03:19.618100+00:00
@@ -17,10 +17,11 @@
def legacy_redirect(id):
pid = get_pid_by_legacy_recid(id)
url_path = record_url_for(pid_value=pid)
return redirect(url_path)
+
#
# Registration
#
def create_blueprint(app):
"""Register blueprint routes on app."""
|
Tests (site, 3.9, postgresql14, opensearch2, redis, rabbitmq, 18):
site/cds_rdm/views.py#L1
pydocstyle-check
/home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/views.py:17 in public function `legacy_redirect`:
D103: Missing docstring in public function
|
Tests (site, 3.9, postgresql14, opensearch2, redis, rabbitmq, 18):
site/cds_rdm/views.py#L1
isort-check
"""Additional views."""
from flask import Blueprint, redirect
+from invenio_rdm_records.resources.urls import record_url_for
from cds_rdm.resolver import get_pid_by_legacy_recid
-from invenio_rdm_records.resources.urls import record_url_for
def legacy_redirect(id):
|
Tests (site, 3.9, postgresql14, opensearch2, redis, rabbitmq, 18)
Process completed with exit code 1.
|
Tests (site, 3.12, postgresql14, opensearch2, redis, rabbitmq, 18)
The job was canceled because "site_3_9_postgresql14_ope" failed.
|
Tests (site, 3.12, postgresql14, opensearch2, redis, rabbitmq, 18)
The operation was canceled.
|
Tests (site, 3.9, postgresql14, opensearch2, redis, rabbitmq, 18)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|