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

Unable to properly filter on an aggregation #22230

Closed
ariya opened this issue Apr 28, 2022 · 3 comments · Fixed by #29539
Closed

Unable to properly filter on an aggregation #22230

ariya opened this issue Apr 28, 2022 · 3 comments · Fixed by #29539
Assignees
Labels
Difficulty:Medium .Frontend Priority:P2 Average run of the mill bug Querying/GUI Query builder catch-all, including simple mode Querying/Parameters & Variables Filter widgets, field filters, variables etc. .Reproduced Issues reproduced in test (usually Cypress) Type:Bug Product defects
Milestone

Comments

@ariya
Copy link
Contributor

ariya commented Apr 28, 2022

In the notebook, when filtering an aggregation (e.g. Max of something) that is not a number, the widget is useless.

To Reproduce

  1. New, Question, Sample Database, People
  2. Summarize, Maximum of Name, group by Source
  3. Filter, Max of Name

Regardless what is being typed in the text box, the Add filter button remains disabled.

image

Also, looking at the network, there are 404 calls to http://localhost:3000/api/field//values (clearly, the field is is missing).

Workaround

Create a custom column, trim([Max of Name]), name it as e.g. MaxName, and filter on that instead.

image

Expected behavior

Filtering some aggregation like Max of Name above should be easy and pleasant.

@ariya ariya added Type:Bug Product defects .Needs Triage labels Apr 28, 2022
@ariya
Copy link
Contributor Author

ariya commented Apr 28, 2022

Previously: #21973.

@ariya ariya added Querying/Parameters & Variables Filter widgets, field filters, variables etc. .Frontend Querying/GUI Query builder catch-all, including simple mode and removed .Needs Triage labels Apr 28, 2022
@ariya ariya linked a pull request Apr 30, 2022 that will close this issue
@flamber flamber added the Priority:P2 Average run of the mill bug label May 2, 2022
@flamber
Copy link
Contributor

flamber commented May 2, 2022

Seems very similar to #19013

@nemanjaglumac
Copy link
Member

If you choose "Not empty", then "Add filter" becomes enabled but the query fails with the non-existing endpoint.

GET /api/field//values (notice two //)

nemanjaglumac added a commit that referenced this issue Jul 12, 2022
@nemanjaglumac nemanjaglumac added the .Reproduced Issues reproduced in test (usually Cypress) label Jul 13, 2022
nemanjaglumac added a commit that referenced this issue Jul 13, 2022
…23869) (#23886)

Co-authored-by: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
WiNloSt added a commit that referenced this issue Mar 24, 2023
WiNloSt added a commit that referenced this issue Mar 28, 2023
github-actions bot pushed a commit that referenced this issue Mar 28, 2023
This was referenced Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty:Medium .Frontend Priority:P2 Average run of the mill bug Querying/GUI Query builder catch-all, including simple mode Querying/Parameters & Variables Filter widgets, field filters, variables etc. .Reproduced Issues reproduced in test (usually Cypress) Type:Bug Product defects
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants