-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Fixes filter on values that are not in the result #20608
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
Conversation
💔 Build Failed |
jenkins, test this |
💔 Build Failed |
src/ui/public/vis/vis.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a huge fan of that syntax, that we need to pass in a rowIndex even in cases we might not have it, but I see, that addFilter(data, { columnIndex, rowIndex, cellValue }) might also not be the best solution (especially since we know we need the columnIndex and addFilter(data, columnIndex, { rowIndex, cellValue }) for sure looks even more weird...
So just wanted to point that out, even without having a proper good solution (but maybe @markov00 or so has an idea).
Could we at least give cellValue = null a default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As written few seconds ago on my review, are we sure that this is the right behaviour? if we don't have data, why we want to filter for a region with no data?
What if we avoid the click and mouseover on regions with no data at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the behaviour we had before ... and i think it makes sense ...
using makelogs data:
- create region map, select term as geo.src, leave size at 5 ....
- you see the top 5 countries ... however you can now click on something like germany for example (which does not have color applied at the moment as its not top 5) and a filter will apply and you will see the color on germany.
|
We should add a functional test, that covers that failure. |
markov00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on chrome/osx. Everything works.
Do we want to check with @elastic/kibana-gis team if this is the wanted behaviour when we click on a region with no data?
|
jenkins, test this |
💔 Build Failed |
|
jenkins, test this |
💔 Build Failed |
a0684ba to
1a93bc1
Compare
💚 Build Succeeded |
timroes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me, tested that region map issue in Chrome, Linux is fixed.
fixes filtering on countries with no data in region map
resolves #20407