Skip to content

Gracefully return [] to an incorrect query with from=datapoints and empty select.value #120

@angiehjort

Description

@angiehjort

mountain chart sends a query with empty "select.value" array to Billy dataset

LINK

To which ddfcsv reader in small waffle errors and pollutes the error log. Returns 500.

2024-07-11T14:54:52: Too many query structure errors:
2024-07-11T14:54:52: * 'select.value' clause for 'datapoints' queries must have at least 1 item undefined
2024-07-11T14:54:52:
2024-07-11T14:54:52:   InternalServerError: Internal Server Error

Big-waffle would gracefully return an empty array in this case (try)

Response:

{
"version":"bb66a61",
"header":["person","time"],
"rows": [

]}

It is better that DDFCSV reader would also return an empty array in this case without complaining

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions