-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Logs] Update logs stream links to logs explorer #190835
[Logs] Update logs stream links to logs explorer #190835
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
9d90093
to
e4faf21
Compare
/ci |
2e4531c
to
21f58f7
Compare
/ci |
21f58f7
to
8a7e511
Compare
/ci |
8a7e511
to
29c86fd
Compare
/ci |
@elasticmachine merge upstream |
Pinging @elastic/fleet (Team:Fleet) |
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -86,6 +86,9 @@ export const LogEntryTimestampColumn = dynamic( | |||
export const ScrollableLogTextStreamView = dynamic( | |||
() => import('./components/logging/log_text_stream/scrollable_log_text_stream_view') | |||
); | |||
export const OpenInLogsExplorerButton = dynamic( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
x-pack/plugins/observability_solution/infra/public/components/asset_details/tabs/logs/logs.tsx
Show resolved
Hide resolved
…0/kibana into 190782-update-open-in-logs-links
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @Kerry350 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrade assistant changes lgtm, verified locally.
We've discussed this with @LucaWintergerst and @alex-fedotyev today, it's an edge case and shouldn't be a blocker for this PR. |
## Summary Fixes #199902 (comment). This was missed in #190835 due to Stack Monitoring's lack of type checking in certain files. `infra` no longer exposes `logsLocators`. This uses `getLogsLocatorsFromUrlService`, technically we could go to Discover now knowing that Logs Explorer will be deprecated in the future. But it will make more sense to convert `getLogsLocatorsFromUrlService` over to using the Discover locators in one when that happens. This puts us on the same page as #190835. This link should now work, and have the correct filters applied.  --------- Co-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>
…0043) ## Summary Fixes elastic#199902 (comment). This was missed in elastic#190835 due to Stack Monitoring's lack of type checking in certain files. `infra` no longer exposes `logsLocators`. This uses `getLogsLocatorsFromUrlService`, technically we could go to Discover now knowing that Logs Explorer will be deprecated in the future. But it will make more sense to convert `getLogsLocatorsFromUrlService` over to using the Discover locators in one when that happens. This puts us on the same page as elastic#190835. This link should now work, and have the correct filters applied.  --------- Co-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co> (cherry picked from commit 4e852ea)
…0043) ## Summary Fixes elastic#199902 (comment). This was missed in elastic#190835 due to Stack Monitoring's lack of type checking in certain files. `infra` no longer exposes `logsLocators`. This uses `getLogsLocatorsFromUrlService`, technically we could go to Discover now knowing that Logs Explorer will be deprecated in the future. But it will make more sense to convert `getLogsLocatorsFromUrlService` over to using the Discover locators in one when that happens. This puts us on the same page as elastic#190835. This link should now work, and have the correct filters applied.  --------- Co-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co> (cherry picked from commit 4e852ea) # Conflicts: # x-pack/plugins/monitoring/kibana.jsonc
) (#200227) # Backport This will backport the following commits from `main` to `8.x`: - [[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)](#200043) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kerry Gallagher","email":"kerry.gallagher@elastic.co"},"sourceCommit":{"committedDate":"2024-11-14T17:26:24Z","message":"[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)\n\n## Summary\r\n\r\nFixes\r\nhttps://github.com//issues/199902#issuecomment-2474040264.\r\n\r\nThis was missed in #190835 due to\r\nStack Monitoring's lack of type checking in certain files. `infra` no\r\nlonger exposes `logsLocators`.\r\n\r\nThis uses `getLogsLocatorsFromUrlService`, technically we could go to\r\nDiscover now knowing that Logs Explorer will be deprecated in the\r\nfuture. But it will make more sense to convert\r\n`getLogsLocatorsFromUrlService` over to using the Discover locators in\r\none when that happens. This puts us on the same page as\r\nhttps://github.com//pull/190835.\r\n\r\nThis link should now work, and have the correct filters applied.\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>","sha":"4e852ea041b63e3e3ad918ceee1bc3861dd1e519","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:cloud-deploy","Team:obs-ux-logs","backport:version","v8.17.0","v8.16.1"],"title":"[Stack Monitoring / Logs] Fix Stack Monitoring logs links","number":200043,"url":"https://github.com/elastic/kibana/pull/200043","mergeCommit":{"message":"[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)\n\n## Summary\r\n\r\nFixes\r\nhttps://github.com//issues/199902#issuecomment-2474040264.\r\n\r\nThis was missed in #190835 due to\r\nStack Monitoring's lack of type checking in certain files. `infra` no\r\nlonger exposes `logsLocators`.\r\n\r\nThis uses `getLogsLocatorsFromUrlService`, technically we could go to\r\nDiscover now knowing that Logs Explorer will be deprecated in the\r\nfuture. But it will make more sense to convert\r\n`getLogsLocatorsFromUrlService` over to using the Discover locators in\r\none when that happens. This puts us on the same page as\r\nhttps://github.com//pull/190835.\r\n\r\nThis link should now work, and have the correct filters applied.\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>","sha":"4e852ea041b63e3e3ad918ceee1bc3861dd1e519"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200043","number":200043,"mergeCommit":{"message":"[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)\n\n## Summary\r\n\r\nFixes\r\nhttps://github.com//issues/199902#issuecomment-2474040264.\r\n\r\nThis was missed in #190835 due to\r\nStack Monitoring's lack of type checking in certain files. `infra` no\r\nlonger exposes `logsLocators`.\r\n\r\nThis uses `getLogsLocatorsFromUrlService`, technically we could go to\r\nDiscover now knowing that Logs Explorer will be deprecated in the\r\nfuture. But it will make more sense to convert\r\n`getLogsLocatorsFromUrlService` over to using the Discover locators in\r\none when that happens. This puts us on the same page as\r\nhttps://github.com//pull/190835.\r\n\r\nThis link should now work, and have the correct filters applied.\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>","sha":"4e852ea041b63e3e3ad918ceee1bc3861dd1e519"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
…0043) (#200231) # Backport This will backport the following commits from `main` to `8.16`: - [[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)](#200043) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kerry Gallagher","email":"kerry.gallagher@elastic.co"},"sourceCommit":{"committedDate":"2024-11-14T17:26:24Z","message":"[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)\n\n## Summary\r\n\r\nFixes\r\nhttps://github.com//issues/199902#issuecomment-2474040264.\r\n\r\nThis was missed in #190835 due to\r\nStack Monitoring's lack of type checking in certain files. `infra` no\r\nlonger exposes `logsLocators`.\r\n\r\nThis uses `getLogsLocatorsFromUrlService`, technically we could go to\r\nDiscover now knowing that Logs Explorer will be deprecated in the\r\nfuture. But it will make more sense to convert\r\n`getLogsLocatorsFromUrlService` over to using the Discover locators in\r\none when that happens. This puts us on the same page as\r\nhttps://github.com//pull/190835.\r\n\r\nThis link should now work, and have the correct filters applied.\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>","sha":"4e852ea041b63e3e3ad918ceee1bc3861dd1e519","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:cloud-deploy","Team:obs-ux-logs","backport:version","v8.17.0","v8.16.1"],"number":200043,"url":"https://github.com/elastic/kibana/pull/200043","mergeCommit":{"message":"[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)\n\n## Summary\r\n\r\nFixes\r\nhttps://github.com//issues/199902#issuecomment-2474040264.\r\n\r\nThis was missed in #190835 due to\r\nStack Monitoring's lack of type checking in certain files. `infra` no\r\nlonger exposes `logsLocators`.\r\n\r\nThis uses `getLogsLocatorsFromUrlService`, technically we could go to\r\nDiscover now knowing that Logs Explorer will be deprecated in the\r\nfuture. But it will make more sense to convert\r\n`getLogsLocatorsFromUrlService` over to using the Discover locators in\r\none when that happens. This puts us on the same page as\r\nhttps://github.com//pull/190835.\r\n\r\nThis link should now work, and have the correct filters applied.\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>","sha":"4e852ea041b63e3e3ad918ceee1bc3861dd1e519"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200043","number":200043,"mergeCommit":{"message":"[Stack Monitoring / Logs] Fix Stack Monitoring logs links (#200043)\n\n## Summary\r\n\r\nFixes\r\nhttps://github.com//issues/199902#issuecomment-2474040264.\r\n\r\nThis was missed in #190835 due to\r\nStack Monitoring's lack of type checking in certain files. `infra` no\r\nlonger exposes `logsLocators`.\r\n\r\nThis uses `getLogsLocatorsFromUrlService`, technically we could go to\r\nDiscover now knowing that Logs Explorer will be deprecated in the\r\nfuture. But it will make more sense to convert\r\n`getLogsLocatorsFromUrlService` over to using the Discover locators in\r\none when that happens. This puts us on the same page as\r\nhttps://github.com//pull/190835.\r\n\r\nThis link should now work, and have the correct filters applied.\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>","sha":"4e852ea041b63e3e3ad918ceee1bc3861dd1e519"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/200227","number":200227,"state":"OPEN"},{"branch":"8.16","label":"v8.16.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
…0043) ## Summary Fixes elastic#199902 (comment). This was missed in elastic#190835 due to Stack Monitoring's lack of type checking in certain files. `infra` no longer exposes `logsLocators`. This uses `getLogsLocatorsFromUrlService`, technically we could go to Discover now knowing that Logs Explorer will be deprecated in the future. But it will make more sense to convert `getLogsLocatorsFromUrlService` over to using the Discover locators in one when that happens. This puts us on the same page as elastic#190835. This link should now work, and have the correct filters applied.  --------- Co-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>
…0043) ## Summary Fixes elastic#199902 (comment). This was missed in elastic#190835 due to Stack Monitoring's lack of type checking in certain files. `infra` no longer exposes `logsLocators`. This uses `getLogsLocatorsFromUrlService`, technically we could go to Discover now knowing that Logs Explorer will be deprecated in the future. But it will make more sense to convert `getLogsLocatorsFromUrlService` over to using the Discover locators in one when that happens. This puts us on the same page as elastic#190835. This link should now work, and have the correct filters applied.  --------- Co-authored-by: mohamedhamed-ahmed <mohamed.ahmed@elastic.co>
Summary
Implements #190782, as part of the deprecate Logs UI project: https://github.com/elastic/observability-dev/issues/3242.
Overview
Previously the top level logs locators would redirect to the locators registered in Infra first (for the stream), and logs explorer second if the stream wasn't available. This fork no longer exists, with the top level locators navigating to the logs explorer only.
Infra no longer registers locators for the logs stream.
Consumer / solution uses have been updated.
Semi-breaking change
link-to
routes that would translate into an internal link. These no longer accept a log view (as this is a stream concept, and is also soon to be deprecated itself). This means bookmarked link-to routes may now ultimately point to slightly different data (depending on the users log sources advanced setting). I don't really see a full proof way around this if we are to truly deprecate all the pieces we need. Also, with thelink-to
routes always being a translation layer this might be absolutely fine — we are just translating things differently now.Reviewer notes
/app/management/stack/upgrade_assistant/es_deprecation_logs
.Change points
(Not fully exhaustive)