-
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
Make link to es deprecation logs more useful #203487
Make link to es deprecation logs more useful #203487
Conversation
/ci |
Pinging @elastic/kibana-core (Team:Core) |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
}, | ||
}); | ||
|
||
const checkAllIndicesInPatternAreDeprecationLogs = (indexPattern: string | undefined): boolean => { |
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.
@davismcphee Should this behaviour be included in the future helper you mentioned in the slack thread?
...ugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts
Outdated
Show resolved
Hide resolved
cc @bitzandeb in case you can think of other useful fields to highlight by default. |
# TODO: this deprecation_logs folder should be owned by kibana management team after 9.0 | ||
src/plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs @elastic/kibana-data-discovery @elastic/kibana-core |
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.
cc @elastic/kibana-management
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
History
cc @jesuswr |
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.
Code changes look good and it works as expected! I left some minor feedback and suggestions, but nothing blocking. Thanks for adding this, it's a great start to improving Discover support for core functionality 👍
One idea for a potential followup would be to adopt some of the functionality from the O11y logs profile to use for deprecation logs too, like log.level
cell rendering and row highlighting:
We even have the option to extend the entire O11y logs profile using the extendProfileProvider
utility if we think it makes sense to include it all (plus the deprecation specific stuff like custom columns).
...plugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/index.ts
Outdated
Show resolved
Hide resolved
...ugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts
Outdated
Show resolved
Hide resolved
...ugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts
Outdated
Show resolved
Hide resolved
}, | ||
}); | ||
|
||
const checkAllIndicesInPatternAreDeprecationLogs = (indexPattern: string | undefined): boolean => { |
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.
I originally forgot we already had a utility for extracting the index pattern, but I also think it would make sense to extract this if we find it's needed for other profiles in the future.
...ugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts
Outdated
Show resolved
Hide resolved
...ugins/discover/public/context_awareness/profile_providers/common/deprecation_logs/profile.ts
Outdated
Show resolved
Hide resolved
Thanks for the suggestions @davismcphee ! Just pushed a commit adding them 😄 |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12276562902 |
## Summary resolves elastic#201538 Added a profile to the deprecation logs so by default it shows the columns. Decided to allow this behaviour if the pattern contains multiple patterns for deprecation logs like: `.logs-deprecation.abc,.logs-deprecation.def` , this can be easily changed if we prefer not to do it this way. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit c423e3e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [Make link to es deprecation logs more useful (#203487)](#203487) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jesus Wahrman","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-11T12:40:27Z","message":"Make link to es deprecation logs more useful (#203487)\n\n## Summary\r\n\r\nresolves https://github.com/elastic/kibana/issues/201538\r\n\r\nAdded a profile to the deprecation logs so by default it shows the\r\ncolumns. Decided to allow this behaviour if the pattern contains\r\nmultiple patterns for deprecation logs like:\r\n`.logs-deprecation.abc,.logs-deprecation.def` , this can be easily\r\nchanged if we prefer not to do it this way.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"c423e3e9d3bd61041d4e10e72cef01ea663ca5bf","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor"],"title":"Make link to es deprecation logs more useful","number":203487,"url":"https://github.com/elastic/kibana/pull/203487","mergeCommit":{"message":"Make link to es deprecation logs more useful (#203487)\n\n## Summary\r\n\r\nresolves https://github.com/elastic/kibana/issues/201538\r\n\r\nAdded a profile to the deprecation logs so by default it shows the\r\ncolumns. Decided to allow this behaviour if the pattern contains\r\nmultiple patterns for deprecation logs like:\r\n`.logs-deprecation.abc,.logs-deprecation.def` , this can be easily\r\nchanged if we prefer not to do it this way.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"c423e3e9d3bd61041d4e10e72cef01ea663ca5bf"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203487","number":203487,"mergeCommit":{"message":"Make link to es deprecation logs more useful (#203487)\n\n## Summary\r\n\r\nresolves https://github.com/elastic/kibana/issues/201538\r\n\r\nAdded a profile to the deprecation logs so by default it shows the\r\ncolumns. Decided to allow this behaviour if the pattern contains\r\nmultiple patterns for deprecation logs like:\r\n`.logs-deprecation.abc,.logs-deprecation.def` , this can be easily\r\nchanged if we prefer not to do it this way.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"c423e3e9d3bd61041d4e10e72cef01ea663ca5bf"}}]}] BACKPORT--> Co-authored-by: Jesus Wahrman <[email protected]>
## Summary resolves elastic#201538 Added a profile to the deprecation logs so by default it shows the columns. Decided to allow this behaviour if the pattern contains multiple patterns for deprecation logs like: `.logs-deprecation.abc,.logs-deprecation.def` , this can be easily changed if we prefer not to do it this way. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <[email protected]>
Summary
resolves #201538
Added a profile to the deprecation logs so by default it shows the columns. Decided to allow this behaviour if the pattern contains multiple patterns for deprecation logs like:
.logs-deprecation.abc,.logs-deprecation.def
, this can be easily changed if we prefer not to do it this way.Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*
label is applied per the guidelines