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

Cannot wrap search query in parenthesis #3587

Open
gsnedders opened this issue Nov 4, 2023 · 0 comments
Open

Cannot wrap search query in parenthesis #3587

gsnedders opened this issue Nov 4, 2023 · 0 comments

Comments

@gsnedders
Copy link
Member

gsnedders commented Nov 4, 2023

e.g. (path:/css/css-display and exists(display contents)), https://wpt.fyi/results/?label=master&label=experimental&aligned&q=%28path%3A%2Fcss%2Fcss-display%20and%20exists%28display%20contents%29%29

This leads to a request to https://wpt.fyi/api/search which returns 400 ("Failed to parse query fragment as any of the existing search atoms in wpt.fyi/api/query/README.md").

We're passing the following body:

{
    "run_ids": [
        5130502731726848,
        5127139076079616,
        5170202456621056,
        5079107785719808
    ],
    "query": "(path:/css/css-display and exists(display contents))"
}

This is because the front-end is failing to parse the query:

Error: Failed to parse query: (path:/css/css-display and exists(display contents))

I would expect wrapping the query in parenthesis to be a no-op in terms of the parser.

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

No branches or pull requests

1 participant