indexer: Allow the definition of indices in index_templates, instead … #179
Annotations
2 errors and 2 warnings
Run tests:
invenio_indexer/utils.py#L1
Black format check
--- /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:22:44.662374+00:00
+++ /home/runner/work/invenio-indexer/invenio-indexer/invenio_indexer/utils.py 2024-03-04 12:24:00.158268+00:00
@@ -52,11 +52,13 @@
:param record: The record object.
:returns: index.
"""
# The indices could be defined either in the mappings or in the index_templates
- index_names = list(current_search.mappings.keys()) + list(current_search.index_templates.keys())
+ index_names = list(current_search.mappings.keys()) + list(
+ current_search.index_templates.keys()
+ )
schema = record.get("$schema", "")
if isinstance(schema, dict):
schema = schema.get("$ref", "")
index = schema_to_index(schema, index_names=index_names)
|
Run tests
Process completed with exit code 1.
|
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/.
|
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/
|
The logs for this run have expired and are no longer available.
Loading