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] fix Air-gapped enviroment hitting 400 error loading fonts for layer #165986

Merged
merged 5 commits into from Sep 13, 2023

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Sep 7, 2023

Closes #165974

The root cause of the problem is calling basePath.prepend on a path without a leading /. Maps is not consistent with path constants. Some have leading / while others do not. To resolve the issue, this PR updates all path constants to consistently have leading /.

PR adds functional test runner with map.includeElasticMapsService: false to ensure maps is tested without EMS enabled to catch future regressions.

Test instructions

  • set map.includeElasticMapsService: false in kibana.dev.yml
  • install sample data set
  • create new map with documents layer
  • Configure label styling
  • Verify layer is displayed with labels
Screen Shot 2023-09-13 at 6 26 23 AM

@nreese
Copy link
Contributor Author

nreese commented Sep 13, 2023

@elasticmachine merge upstream

@nreese
Copy link
Contributor Author

nreese commented Sep 13, 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.8MB 2.8MB -13.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
maps 45.3KB 45.3KB +3.0B

History

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

@nreese nreese marked this pull request as ready for review September 13, 2023 14:22
@nreese nreese requested review from a team as code owners September 13, 2023 14:22
@nreese nreese added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Feature:Maps v8.10.0 v8.11.0 labels Sep 13, 2023
@elasticmachine
Copy link
Contributor

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

@nreese nreese added v8.10.1 and removed v8.10.0 labels Sep 13, 2023
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! 💯 for adding the functional test when EMS is excluded!

code review and tested that fonts are showing with EMS excluded.

@nreese nreese merged commit 691311c into elastic:main Sep 13, 2023
31 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 13, 2023
…layer (elastic#165986)

Closes elastic#165974

The root cause of the problem is calling `basePath.prepend` on a path
without a leading `/`. Maps is not consistent with path constants. Some
have leading `/` while others do not. To resolve the issue, this PR
updates all path constants to consistently have leading `/`.

PR adds functional test runner with `map.includeElasticMapsService:
false` to ensure maps is tested without EMS enabled to catch future
regressions.

### Test instructions
* set *map.includeElasticMapsService: false* in kibana.dev.yml
* install sample data set
* create new map with documents layer
* Configure label styling
* Verify layer is displayed with labels

<img width="500" alt="Screen Shot 2023-09-13 at 6 26 23 AM"
src="https://github.com/elastic/kibana/assets/373691/44d12e87-9b80-424c-9bc9-126b373bdf18">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 691311c)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.10

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 13, 2023
…ts for layer (#165986) (#166375)

# Backport

This will backport the following commits from `main` to `8.10`:
- [[maps] fix Air-gapped enviroment hitting 400 error loading fonts for
layer (#165986)](#165986)

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

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2023-09-13T16:06:05Z","message":"[maps]
fix Air-gapped enviroment hitting 400 error loading fonts for layer
(#165986)\n\nCloses
#165974 root cause of
the problem is calling `basePath.prepend` on a path\r\nwithout a leading
`/`. Maps is not consistent with path constants. Some\r\nhave leading
`/` while others do not. To resolve the issue, this PR\r\nupdates all
path constants to consistently have leading `/`.\r\n\r\nPR adds
functional test runner with `map.includeElasticMapsService:\r\nfalse` to
ensure maps is tested without EMS enabled to catch
future\r\nregressions.\r\n\r\n### Test instructions\r\n* set
*map.includeElasticMapsService: false* in kibana.dev.yml\r\n* install
sample data set\r\n* create new map with documents layer\r\n* Configure
label styling\r\n* Verify layer is displayed with labels\r\n\r\n<img
width=\"500\" alt=\"Screen Shot 2023-09-13 at 6 26 23
AM\"\r\nsrc=\"https://github.com/elastic/kibana/assets/373691/44d12e87-9b80-424c-9bc9-126b373bdf18\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"691311ce7c38cff3ca89758f1a45e31b7f292759","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","Feature:Maps","v8.11.0","v8.10.1"],"number":165986,"url":"#165986
fix Air-gapped enviroment hitting 400 error loading fonts for layer
(#165986)\n\nCloses
#165974 root cause of
the problem is calling `basePath.prepend` on a path\r\nwithout a leading
`/`. Maps is not consistent with path constants. Some\r\nhave leading
`/` while others do not. To resolve the issue, this PR\r\nupdates all
path constants to consistently have leading `/`.\r\n\r\nPR adds
functional test runner with `map.includeElasticMapsService:\r\nfalse` to
ensure maps is tested without EMS enabled to catch
future\r\nregressions.\r\n\r\n### Test instructions\r\n* set
*map.includeElasticMapsService: false* in kibana.dev.yml\r\n* install
sample data set\r\n* create new map with documents layer\r\n* Configure
label styling\r\n* Verify layer is displayed with labels\r\n\r\n<img
width=\"500\" alt=\"Screen Shot 2023-09-13 at 6 26 23
AM\"\r\nsrc=\"https://github.com/elastic/kibana/assets/373691/44d12e87-9b80-424c-9bc9-126b373bdf18\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"691311ce7c38cff3ca89758f1a45e31b7f292759"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"#165986
fix Air-gapped enviroment hitting 400 error loading fonts for layer
(#165986)\n\nCloses
#165974 root cause of
the problem is calling `basePath.prepend` on a path\r\nwithout a leading
`/`. Maps is not consistent with path constants. Some\r\nhave leading
`/` while others do not. To resolve the issue, this PR\r\nupdates all
path constants to consistently have leading `/`.\r\n\r\nPR adds
functional test runner with `map.includeElasticMapsService:\r\nfalse` to
ensure maps is tested without EMS enabled to catch
future\r\nregressions.\r\n\r\n### Test instructions\r\n* set
*map.includeElasticMapsService: false* in kibana.dev.yml\r\n* install
sample data set\r\n* create new map with documents layer\r\n* Configure
label styling\r\n* Verify layer is displayed with labels\r\n\r\n<img
width=\"500\" alt=\"Screen Shot 2023-09-13 at 6 26 23
AM\"\r\nsrc=\"https://github.com/elastic/kibana/assets/373691/44d12e87-9b80-424c-9bc9-126b373bdf18\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"691311ce7c38cff3ca89758f1a45e31b7f292759"}},{"branch":"8.10","label":"v8.10.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Maps release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.10.1 v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[maps] Air-gapped enviroment hitting 400 error loading fonts for layer
6 participants