Skip to content

Consume elasticsearch.publicBaseUrl where possible#192741

Merged
sphilipse merged 20 commits intoelastic:mainfrom
sphilipse:cloud-use-elasticsearch-public-base-url
Sep 19, 2024
Merged

Consume elasticsearch.publicBaseUrl where possible#192741
sphilipse merged 20 commits intoelastic:mainfrom
sphilipse:cloud-use-elasticsearch-public-base-url

Conversation

@sphilipse
Copy link
Copy Markdown
Member

@sphilipse sphilipse commented Sep 12, 2024

Summary

This actually consumes the public base url in the cloud plugin and the places depending on the elasticsearchUrl value populated there.

@sphilipse sphilipse added release_note:skip Skip the PR/issue when compiling release notes Team:Search v8.16.0 labels Sep 12, 2024
@sphilipse sphilipse marked this pull request as ready for review September 17, 2024 14:16
@sphilipse sphilipse requested review from a team as code owners September 17, 2024 14:16
Copy link
Copy Markdown
Contributor

@criamico criamico left a comment

Choose a reason for hiding this comment

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

Fleet LGTM

Copy link
Copy Markdown
Member

@sabarasaba sabarasaba left a comment

Choose a reason for hiding this comment

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

index management changes lgtm

Copy link
Copy Markdown
Member

@afharo afharo 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 a few comments for me to familiarize myself with this code and with some minor suggestions.

@sphilipse sphilipse enabled auto-merge (squash) September 18, 2024 14:57
@kibana-ci
Copy link
Copy Markdown

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Fleet Cypress Tests #4 / View agents list Agent status filter should filter on healthy (16 result)
  • [job] [logs] Fleet Cypress Tests #4 / View agents list Agent status filter should filter on healthy and unhealthy
  • [job] [logs] Fleet Cypress Tests #4 / View agents list Bulk actions should allow to bulk upgrade agents and cancel that upgrade

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
enterpriseSearch 2.6MB 2.6MB +448.0B
fleet 1.8MB 1.8MB +122.0B
home 151.9KB 152.0KB +53.0B
indexManagement 682.3KB 682.3KB +45.0B
searchHomepage 54.8KB 54.8KB +53.0B
searchIndices 83.1KB 83.3KB +196.0B
searchPlayground 151.1KB 151.2KB +84.0B
serverlessSearch 326.9KB 327.2KB +368.0B
total +1.3KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
cloud 0 1 +1

Page load bundle

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

id before after diff
cloud 7.1KB 7.6KB +464.0B
cloudLinks 30.1KB 30.2KB +53.0B
total +517.0B
Unknown metric groups

API count

id before after diff
@kbn/core-elasticsearch-server 117 118 +1

History

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

@sphilipse sphilipse merged commit b4a7b2e into elastic:main Sep 19, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 19, 2024
## Summary

This actually consumes the public base url in the cloud plugin and the
places depending on the `elasticsearchUrl` value populated there.

---------

Co-authored-by: Rodney Norris <rodney@tattdcodemonkey.com>
(cherry picked from commit b4a7b2e)
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.15 Backport failed because of merge conflicts
8.x

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 192741

Questions ?

Please refer to the Backport tool documentation

@sphilipse
Copy link
Copy Markdown
Member Author

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

sphilipse added a commit to sphilipse/kibana that referenced this pull request Sep 24, 2024
## Summary

This actually consumes the public base url in the cloud plugin and the
places depending on the `elasticsearchUrl` value populated there.

---------

Co-authored-by: Rodney Norris <rodney@tattdcodemonkey.com>
(cherry picked from commit b4a7b2e)
kibanamachine added a commit that referenced this pull request Sep 24, 2024
…193442)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Consume elasticsearch.publicBaseUrl where possible
(#192741)](#192741)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-19T14:57:47Z","message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:prev-major","v8.16.0"],"title":"Consume
elasticsearch.publicBaseUrl where
possible","number":192741,"url":"https://github.com/elastic/kibana/pull/192741","mergeCommit":{"message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192741","number":192741,"mergeCommit":{"message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
sphilipse added a commit that referenced this pull request Sep 24, 2024
…193838)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Consume elasticsearch.publicBaseUrl where possible
(#192741)](#192741)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-19T14:57:47Z","message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:prev-major","v8.16.0"],"number":192741,"url":"https://github.com/elastic/kibana/pull/192741","mergeCommit":{"message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192741","number":192741,"mergeCommit":{"message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/193442","number":193442,"state":"OPEN"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Search v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants