global: add redirection from legacy recids #206
Annotations
6 errors and 1 warning
Run tests:
site/cds_rdm/minters.py#L1
pydocstyle-check
/home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/minters.py:1 at module level:
D100: Missing docstring in public module
|
Run tests:
site/cds_rdm/resolver.py#L1
pydocstyle-check
/home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/resolver.py:1 at module level:
D100: Missing docstring in public module
|
Run tests:
site/cds_rdm/views.py#L1
Black format check
--- /home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/views.py 2024-09-27 14:43:01.820517+00:00
+++ /home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/views.py 2024-09-27 14:47:50.303950+00:00
@@ -16,10 +16,12 @@
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."""
|
Run tests:
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
|
Run tests:
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):
|
Run tests
Process completed with exit code 1.
|
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/
|
Loading