Skip to content

"from" pin causes use of "const" to generate a syntax error #2567

@philrz

Description

@philrz

Repro is with Brim commit cccb040.

A community zync user inquired:

Is there a way to use const <id> = <expr> in Zui?

Of course, Zui is intended to handle any valid syntax, but indeed there's a UX challenge here. The app tries to be helpful by populating a from pin when the user clicks Query Pool, which allows them to start writing searches and aggregations right in the editor. However, if they try to kick off their Zed with something like const, they get a syntax error.

image

If they're hip to what's going on and delete the from pin and put the from in the typed Zed after the const, now it starts to work.

image

It seems that whatever we might do to address this could also relate to #2533.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions