global: add redirection from legacy recids #199
Annotations
7 errors
|
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
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:
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
Black format check
--- /home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/views.py 2024-09-19 13:23:36.537455+00:00
+++ /home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/views.py 2024-09-19 13:28:40.311161+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
The operation was canceled.
|
Loading