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

Error when clearing query comparison #1564

Closed
lukavdplas opened this issue May 6, 2024 · 0 comments · Fixed by #1602
Closed

Error when clearing query comparison #1564

lukavdplas opened this issue May 6, 2024 · 0 comments · Fixed by #1602
Labels
bug something isn't working right frontend changes to the angular frontend visualisation changes to visualisation features

Comments

@lukavdplas
Copy link
Contributor

lukavdplas commented May 6, 2024

What went wrong?

In the "number of results" visualisation, if you searched without a search term, use the "compare with another query" option to add additional queries, and then clear them, the visualisation displays an error message.

There are some additional problems with this error message:

  • The error message is "[object Object]"
  • If you enter a search term in the top bar, the visualisation will work properly again and load the new results, so the message should dissapear, but it does not.

Alternatively, you could try clearing the additional queries by using the "reset" button. This one does not show an error, but it also doesn't reset the visualisation: you'll still see the old data.

What did you expect to happen?

Obviously you should be able to mess around in the menu without encountering error messages. If they do occur, error messages should show a clear message, etc.

In the UI, it should be possible to clear / reset the query comparison menu if you searched without a query.

Solution 1:

  • As also suggested in Empty query not shown in compare query #1561 : the empty query should be shown in the queries input.
  • To prevent user error, the original query should be "locked", in that it can't be removed or changed.

Solution 2:

  • The "compare queries" input should not show the original query at all, and only show additional queries
  • This way, removing all comparison queries is always valid.

Solution 3:

  • The empty query should be shown in the queries input.
  • In this scenario, the reset button should restore the input to only contain the empty query again.
  • If the user clears the query comparison input and clicks "confirm", the input value [] should be corrected to [""] (i.e. one item with the empty query) .

Screenshot

screenshot of i-analyzer

Where did you find the bug?

Version

5.6.1

Steps to reproduce

This will display an error message.

Also problematic:

No error message, but the visualisation data isn't updated.

@lukavdplas lukavdplas added bug something isn't working right frontend changes to the angular frontend visualisation changes to visualisation features labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working right frontend changes to the angular frontend visualisation changes to visualisation features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant