Skip to content

Conversation

@ppisljar
Copy link
Contributor

@ppisljar ppisljar commented Jul 10, 2018

fixes filtering on countries with no data in region map

resolves #20407

@ppisljar ppisljar added review Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v6.4.0 labels Jul 10, 2018
@ppisljar ppisljar requested review from markov00 and timroes July 10, 2018 07:35
@elasticmachine
Copy link
Contributor

💔 Build Failed

@ppisljar
Copy link
Contributor Author

07:36:30 fatal: Could not read from remote repository.
07:36:30 
07:36:30 Please make sure you have the correct access rights

jenkins, test this

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

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?

Copy link
Member

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?

Copy link
Contributor Author

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.

@timroes
Copy link
Contributor

timroes commented Jul 10, 2018

We should add a functional test, that covers that failure.

Copy link
Member

@markov00 markov00 left a 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?

@ppisljar
Copy link
Contributor Author

jenkins, test this

@timroes timroes changed the title fixes region map filters Fixes filter on values that are not in the result Jul 10, 2018
@elasticmachine
Copy link
Contributor

💔 Build Failed

@ppisljar
Copy link
Contributor Author

jenkins, test this

@elasticmachine
Copy link
Contributor

💔 Build Failed

@ppisljar ppisljar force-pushed the fix/regionMapFilter branch from a0684ba to 1a93bc1 Compare July 12, 2018 07:16
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@timroes timroes left a 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.

@ppisljar ppisljar merged commit 1726665 into elastic:master Jul 12, 2018
ppisljar added a commit to ppisljar/kibana that referenced this pull request Jul 12, 2018
@ppisljar ppisljar deleted the fix/regionMapFilter branch July 12, 2018 11:37
@ppisljar ppisljar restored the fix/regionMapFilter branch September 26, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review v6.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug clicking in region map on empty regions

4 participants