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

Selecting _id does not work #207

Closed
sirex opened this issue Mar 9, 2022 · 0 comments
Closed

Selecting _id does not work #207

sirex opened this issue Mar 9, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sirex
Copy link
Collaborator

sirex commented Mar 9, 2022

Example where it does not work: https://get.data.gov.lt/datasets/gov/lst/standards/ICS?select(_id,notation)

This gives:

Traceback (most recent call last):
  File "spinta/api.py", line 91, in homepage
    return await create_http_response(context, params, request)
  File "spinta/utils/response.py", line 165, in create_http_response
    return await commands.getall(
  File "spinta/commands/read.py", line 95, in getall
    return render(context, request, model, params, rows, action=action)
  File "spinta/renderer.py", line 22, in render
    return commands.render(
  File "spinta/formats/html/commands.py", line 129, in render
    return _render_model(context, request, model, action, params, data, headers)
  File "spinta/formats/html/commands.py", line 210, in _render_model
    header = _get_model_tabular_header(context, model, action, params)
  File "spinta/formats/html/commands.py", line 189, in _get_model_tabular_header
    return get_model_tabular_header(
  File "spinta/formats/helpers.py", line 92, in get_model_tabular_header
    names = get_select_prop_names(
  File "spinta/backends/helpers.py", line 93, in get_select_prop_names
    check_unknown_props(model, select, known)
  File "spinta/backends/helpers.py", line 251, in check_unknown_props
    raise exceptions.MultipleErrors(
spinta.exceptions.MultipleErrors: Multiple errors:
 - Unknown property '_id'.
     Context:
       component: spinta.components.Model
       manifest: default
       schema: 4997
       dataset: datasets/gov/lst/standards
       model: datasets/gov/lst/standards/ICS
       entity:
       property: _id
@sirex sirex added the bug Something isn't working label Mar 9, 2022
@sirex sirex self-assigned this Mar 9, 2022
@sirex sirex moved this to Todo in Portalo plėtra Mar 9, 2022
@sirex sirex moved this from Todo to In Progress in Portalo plėtra Mar 15, 2022
sirex added a commit that referenced this issue Mar 16, 2022
Related issue:

- #207
@sirex sirex moved this from In Progress to Done in Portalo plėtra Mar 16, 2022
@sirex sirex closed this as completed Jan 18, 2023
@sirex sirex removed this from Portalo plėtra Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant