Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixtures: dynamic introduction of [unit] within [dataset_semantics] is not allowed #71

Closed
tiborsimko opened this issue Oct 25, 2024 · 0 comments · Fixed by #77
Closed

Comments

@tiborsimko
Copy link
Member

Current behaviour

When loading TOTEM records from cernopendata/opendata.cern.ch#3693 into a local CERN Open Data portal instance running with v0.1.11 image (and the portal source code being checked out at 2943d1d, the dataset record loading leads to the following trouble with dataset semantics information:

$ docker exec -t opendatacernch-web-1 cernopendata fixtures records --mode insert-or-replace -f /content/data/records/totem-datasets-2011.json
...
opensearchpy.exceptions.RequestError: RequestError(400, 'strict_dynamic_mapping_exception', 'mapping set to strict, dynamic introduction of [unit] within [dataset_semantics] is not allowed')
...
  File "/opt/invenio/var/instance/python/lib/python3.9/site-packages/opensearchpy/connection/base.py", line 315, in _raise_error
    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(

Loading of the same data file without the dataset_semantics.unit subfield present works well.

Expected behaviour

If we support dataset_semantics.unit subfield as a free text value, and the record fixtures supply some values, then the record loading should be working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants