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

[Maps] fixes Kibana maps shows MVT borders if the geometry border style is greater than 1 #150497

Merged
merged 7 commits into from
Feb 9, 2023

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Feb 7, 2023

Fixes #150187

PR passes buffer to kibana MVT route which passes buffer to Elasticsearch vector tile API. Buffer is set based on line width style property.

Screen Shot 2023-02-07 at 2 43 15 PM

@nreese
Copy link
Contributor Author

nreese commented Feb 8, 2023

@elasticmachine merge upstream

@nreese nreese marked this pull request as ready for review February 8, 2023 21:00
@nreese nreese requested a review from a team as a code owner February 8, 2023 21:00
@nreese nreese added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas auto-backport Deprecated - use backport:version if exact versions are needed Feature:Maps v8.7.0 v8.8.0 labels Feb 8, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese nreese requested a review from nickpeihl February 8, 2023 21:01
Copy link
Member

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. I just added one nit.

code review and tested in chrome

@@ -68,6 +69,7 @@ export function initMVTRoutes({
};
try {
tileRequest = getHitsTileRequest({
buffer: 'buffer' in query ? (query.buffer as number) : 5,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we use parseInt in line 139, but not here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I have switched this to use parseInt as well.

@nreese
Copy link
Contributor Author

nreese commented Feb 9, 2023

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
maps 2.7MB 2.7MB +544.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@nreese nreese merged commit f439bdc into elastic:main Feb 9, 2023
kibanamachine pushed a commit that referenced this pull request Feb 9, 2023
…le is greater than 1 (#150497)

Fixes #150187

PR passes buffer to kibana MVT route which passes buffer to
Elasticsearch vector tile API. Buffer is set based on line width style
property.

<img width="600" alt="Screen Shot 2023-02-07 at 2 43 15 PM"
src="https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png">

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit f439bdc)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.7

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

kibanamachine added a commit that referenced this pull request Feb 9, 2023
…er style is greater than 1 (#150497) (#150758)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Maps] fixes Kibana maps shows MVT borders if the geometry border
style is greater than 1
(#150497)](#150497)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-02-09T18:07:54Z","message":"[Maps]
fixes Kibana maps shows MVT borders if the geometry border style is
greater than 1 (#150497)\n\nFixes
https://github.com/elastic/kibana/issues/150187\r\n\r\nPR passes buffer
to kibana MVT route which passes buffer to\r\nElasticsearch vector tile
API. Buffer is set based on line width style\r\nproperty.\r\n\r\n<img
width=\"600\" alt=\"Screen Shot 2023-02-07 at 2 43 15
PM\"\r\nsrc=\"https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f439bdc2b3fe7caa20ff5375460cc9659c6a76db","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","auto-backport","Feature:Maps","v8.7.0","v8.8.0"],"number":150497,"url":"https://github.com/elastic/kibana/pull/150497","mergeCommit":{"message":"[Maps]
fixes Kibana maps shows MVT borders if the geometry border style is
greater than 1 (#150497)\n\nFixes
https://github.com/elastic/kibana/issues/150187\r\n\r\nPR passes buffer
to kibana MVT route which passes buffer to\r\nElasticsearch vector tile
API. Buffer is set based on line width style\r\nproperty.\r\n\r\n<img
width=\"600\" alt=\"Screen Shot 2023-02-07 at 2 43 15
PM\"\r\nsrc=\"https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f439bdc2b3fe7caa20ff5375460cc9659c6a76db"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150497","number":150497,"mergeCommit":{"message":"[Maps]
fixes Kibana maps shows MVT borders if the geometry border style is
greater than 1 (#150497)\n\nFixes
https://github.com/elastic/kibana/issues/150187\r\n\r\nPR passes buffer
to kibana MVT route which passes buffer to\r\nElasticsearch vector tile
API. Buffer is set based on line width style\r\nproperty.\r\n\r\n<img
width=\"600\" alt=\"Screen Shot 2023-02-07 at 2 43 15
PM\"\r\nsrc=\"https://user-images.githubusercontent.com/373691/217373279-4d72e210-31ae-48cc-997f-dc05d330028b.png\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f439bdc2b3fe7caa20ff5375460cc9659c6a76db"}}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <[email protected]>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 10, 2023
* main: (115 commits)
  [Custom branding] Add custom logo to space selector (elastic#150284)
  [api-docs] 2023-02-10 Daily api_docs build (elastic#150831)
  [ci] build next docs in PRs when relevant files change (elastic#149991)
  [codeowners] allow overrides to take higher precedence (elastic#150821)
  [docs] Remove kibDevDocsOpsPluginDiscovery (elastic#150788)
  [Fleet] Fix max 20 installed integrations returned from Fleet API (elastic#150780)
  [maps] fix Changing resolutions on Heat map layer throws error in console (elastic#150761)
  fixes Failing ES Promotion: X-Pack API Integration Tests x-pack/test/api_integration/apis/maps/get_grid_tile.js (elastic#150768)
  [Synthetics] adjust overview scrolling e2e (elastic#150774)
  [Security Solution] Fixes bulk close alerts from exception flyout type bug (elastic#150765)
  Upgrade EUI to v74.1.0 (elastic#150235)
  [skip ci] Fix labeling for Infrastructure UI (elastic#150571)
  [Enterprise Search] Move pipelines modal to flyout (elastic#150727)
  [Security Solution] fix flaky endpoint tests (elastic#150652)
  Fixes the space selector page layout  (elastic#150503)
  [Dashboard] [Navigation] Fix mount point bug (elastic#150507)
  [Infrastructure UI] Track host cloud provider on table entry click (elastic#150685)
  [Dashboard Usability] Moves scrollbar to panel section (elastic#145628)
  [Maps] fixes Kibana maps shows MVT borders if the geometry border style is greater than 1 (elastic#150497)
  [Cloud Posture][Dashboard] dashboard re-design enhancements (elastic#150394)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Maps release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.7.0 v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kibana maps shows MVT borders if the geometry border style is greater than 1
5 participants