Skip to content

Fix publicUrlWarning message related to server.publicBaseUrl#161091

Merged
maryam-saeidi merged 3 commits intoelastic:mainfrom
maryam-saeidi:160909-fix-publicBaseUrl-warning
Jul 3, 2023
Merged

Fix publicUrlWarning message related to server.publicBaseUrl#161091
maryam-saeidi merged 3 commits intoelastic:mainfrom
maryam-saeidi:160909-fix-publicBaseUrl-warning

Conversation

@maryam-saeidi
Copy link
Copy Markdown
Member

@maryam-saeidi maryam-saeidi commented Jul 3, 2023

Fixes #160909

Summary

This PR fixes the publicUrlWarning. Some of the URLs such as context.alertDetailsUrl and rule.url are empty strings if server.publicBaseUrl is not configured.

This is where you can see the message if server.publicBaseUrl is not configured:

Before After
image image

@maryam-saeidi maryam-saeidi added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor labels Jul 3, 2023
@maryam-saeidi maryam-saeidi self-assigned this Jul 3, 2023
@ghost
Copy link
Copy Markdown

ghost commented Jul 3, 2023

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@maryam-saeidi maryam-saeidi marked this pull request as ready for review July 3, 2023 13:11
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner July 3, 2023 13:11
@maryam-saeidi
Copy link
Copy Markdown
Member Author

Please let me know if I need to do something related to the translation of this message.
I ran node scripts/i18n_check.js --fix but nothing changed as I am just changing the default message.

Copy link
Copy Markdown
Contributor

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

LGTM

@kibana-ci
Copy link
Copy Markdown

💚 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
triggersActionsUi 1.4MB 1.4MB +17.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 411 415 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 490 494 +4
total +6

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

cc @maryam-saeidi

@maryam-saeidi maryam-saeidi merged commit e9a9f03 into elastic:main Jul 3, 2023
@maryam-saeidi maryam-saeidi deleted the 160909-fix-publicBaseUrl-warning branch July 3, 2023 14:50
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 3, 2023
…#161091)

Fixes elastic#160909

## Summary

This PR fixes the publicUrlWarning. Some of the URLs such as
`context.alertDetailsUrl` and `rule.url` are empty strings if
`server.publicBaseUrl` is not configured.

<img
src="https://github.com/elastic/kibana/assets/12370520/644e9a3e-8545-4b9b-84a9-1402815ac53d"
width=300 />

This is where you can see the message if `server.publicBaseUrl` is not
configured:

|Before|After|
|---|---|

|![image](https://github.com/elastic/kibana/assets/12370520/4d56d2fb-af2e-46f1-a3cf-91dd4cf9aaf2)|![image](https://github.com/elastic/kibana/assets/12370520/87c8bdb7-6d0b-4685-822e-c989f0013f42)|

(cherry picked from commit e9a9f03)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.9

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 Jul 3, 2023
…161091) (#161110)

# Backport

This will backport the following commits from `main` to `8.9`:
- [Fix publicUrlWarning message related to server.publicBaseUrl
(#161091)](#161091)

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

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

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"maryam.saeidi@elastic.co"},"sourceCommit":{"committedDate":"2023-07-03T14:50:18Z","message":"Fix
publicUrlWarning message related to server.publicBaseUrl
(#161091)\n\nFixes #160909\r\n\r\n## Summary\r\n\r\nThis PR fixes the
publicUrlWarning. Some of the URLs such as\r\n`context.alertDetailsUrl`
and `rule.url` are empty strings if\r\n`server.publicBaseUrl` is not
configured.\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/644e9a3e-8545-4b9b-84a9-1402815ac53d\"\r\nwidth=300
/>\r\n\r\nThis is where you can see the message if
`server.publicBaseUrl` is
not\r\nconfigured:\r\n\r\n|Before|After|\r\n|---|---|\r\n\r\n|![image](https://github.com/elastic/kibana/assets/12370520/4d56d2fb-af2e-46f1-a3cf-91dd4cf9aaf2)|![image](https://github.com/elastic/kibana/assets/12370520/87c8bdb7-6d0b-4685-822e-c989f0013f42)|","sha":"e9a9f0396558581f29e34479917c991e81bc49af","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","backport:prev-minor","v8.10.0"],"number":161091,"url":"https://github.com/elastic/kibana/pull/161091","mergeCommit":{"message":"Fix
publicUrlWarning message related to server.publicBaseUrl
(#161091)\n\nFixes #160909\r\n\r\n## Summary\r\n\r\nThis PR fixes the
publicUrlWarning. Some of the URLs such as\r\n`context.alertDetailsUrl`
and `rule.url` are empty strings if\r\n`server.publicBaseUrl` is not
configured.\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/644e9a3e-8545-4b9b-84a9-1402815ac53d\"\r\nwidth=300
/>\r\n\r\nThis is where you can see the message if
`server.publicBaseUrl` is
not\r\nconfigured:\r\n\r\n|Before|After|\r\n|---|---|\r\n\r\n|![image](https://github.com/elastic/kibana/assets/12370520/4d56d2fb-af2e-46f1-a3cf-91dd4cf9aaf2)|![image](https://github.com/elastic/kibana/assets/12370520/87c8bdb7-6d0b-4685-822e-c989f0013f42)|","sha":"e9a9f0396558581f29e34479917c991e81bc49af"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161091","number":161091,"mergeCommit":{"message":"Fix
publicUrlWarning message related to server.publicBaseUrl
(#161091)\n\nFixes #160909\r\n\r\n## Summary\r\n\r\nThis PR fixes the
publicUrlWarning. Some of the URLs such as\r\n`context.alertDetailsUrl`
and `rule.url` are empty strings if\r\n`server.publicBaseUrl` is not
configured.\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/644e9a3e-8545-4b9b-84a9-1402815ac53d\"\r\nwidth=300
/>\r\n\r\nThis is where you can see the message if
`server.publicBaseUrl` is
not\r\nconfigured:\r\n\r\n|Before|After|\r\n|---|---|\r\n\r\n|![image](https://github.com/elastic/kibana/assets/12370520/4d56d2fb-af2e-46f1-a3cf-91dd4cf9aaf2)|![image](https://github.com/elastic/kibana/assets/12370520/87c8bdb7-6d0b-4685-822e-c989f0013f42)|","sha":"e9a9f0396558581f29e34479917c991e81bc49af"}}]}]
BACKPORT-->

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
maryam-saeidi added a commit that referenced this pull request Jul 5, 2023
Related to #161091

## Summary

I learned that when we update a default message, we should manually
remove outdated translations.

In this PR, I updated the ID and removed outdated translations. I will
not backport this PR since the translation for the previous version is
already started so I will keep the previous translation for v8.9. Please
let me know if there is an issue with this approach.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes v8.9.0 v8.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AO] Correct the warning related to server.publicBaseUrl for context.alertDetailsUrl

5 participants