Skip to content

Remove observability:logsExplorer:allowedDataViews advanced setting#209120

Merged
gbamparop merged 5 commits intoelastic:mainfrom
gbamparop:remove-allowed-data-views-setting
Feb 6, 2025
Merged

Remove observability:logsExplorer:allowedDataViews advanced setting#209120
gbamparop merged 5 commits intoelastic:mainfrom
gbamparop:remove-allowed-data-views-setting

Conversation

@gbamparop
Copy link
Copy Markdown
Contributor

@gbamparop gbamparop commented Jan 31, 2025

📓 Summary

Removes the observability:logsExplorer:allowedDataViews advanced setting that was introduced by #178602 as Logs Explorer is no longer available in Serverless and 9.0.

Closes #209092

@gbamparop gbamparop added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.0.0 labels Jan 31, 2025
@gbamparop
Copy link
Copy Markdown
Contributor Author

/ci

@gbamparop
Copy link
Copy Markdown
Contributor Author

/ci

core.uiSettings.get(OBSERVABILITY_LOGS_EXPLORER_ALLOWED_DATA_VIEWS_ID)
),
[core.uiSettings]
(dataView) => dataView.testAgainstAllowedList(DEFAULT_ALLOWED_LOGS_BASE_PATTERNS),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Replaced all setting usages with this constant, the code for Logs Explorer is not used and will be removed anyways but it's outside the scope of this issue.

@gbamparop
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@gbamparop
Copy link
Copy Markdown
Contributor Author

/ci

@gbamparop gbamparop marked this pull request as ready for review February 3, 2025 18:19
@gbamparop gbamparop requested review from a team as code owners February 3, 2025 18:19
Copy link
Copy Markdown
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

codeowner changes lgtm

Copy link
Copy Markdown
Contributor

@tonyghiani tonyghiani left a comment

Choose a reason for hiding this comment

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

LGTM 👌

As a side note, shall we plan the code removal for the observability_logs_explorer and logs_explorer plugins? Their start contract + exported code still load quite a bit of code that will never be used.
Screenshot 2025-02-04 at 09 05 45

@gbamparop
Copy link
Copy Markdown
Contributor Author

shall we plan the code removal for the observability_logs_explorer and logs_explorer plugins?

@tonyghiani yes, I think we should follow up with #209261

Copy link
Copy Markdown
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

obs ux management changes LGTM

@gbamparop
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@gbamparop gbamparop enabled auto-merge (squash) February 6, 2025 13:05
@gbamparop gbamparop merged commit 3e5f55d into elastic:main Feb 6, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.0

https://github.com/elastic/kibana/actions/runs/13179867049

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
logsExplorer 576 575 -1

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/management-settings-ids 136 135 -1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
logsExplorer 222.5KB 222.4KB -171.0B

Page load bundle

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

id before after diff
logsExplorer 26.8KB 27.1KB +222.0B
Unknown metric groups

API count

id before after diff
@kbn/management-settings-ids 137 136 -1

History

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Feb 6, 2025
…lastic#209120)

## 📓 Summary
Removes the `observability:logsExplorer:allowedDataViews` advanced
setting that was introduced by
elastic#178602 as Logs Explorer is [no
longer available](elastic#203685) in
Serverless and 9.0.

Closes elastic#209092

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 3e5f55d)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
9.0

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 Feb 6, 2025
…ting (#209120) (#210005)

# Backport

This will backport the following commits from `main` to `9.0`:
- [Remove observability:logsExplorer:allowedDataViews advanced setting
(#209120)](#209120)

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

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

<!--BACKPORT [{"author":{"name":"Giorgos
Bamparopoulos","email":"georgios.bamparopoulos@elastic.co"},"sourceCommit":{"committedDate":"2025-02-06T13:28:00Z","message":"Remove
observability:logsExplorer:allowedDataViews advanced setting
(#209120)\n\n## 📓 Summary\r\nRemoves the
`observability:logsExplorer:allowedDataViews` advanced\r\nsetting that
was introduced by\r\nhttps://github.com//pull/178602 as
Logs Explorer is [no\r\nlonger
available](#203685)
in\r\nServerless and 9.0.\r\n\r\nCloses
https://github.com/elastic/kibana/issues/209092\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"3e5f55dd0258646d976d776127e39bdb04859568","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","v9.1.0"],"title":"Remove
observability:logsExplorer:allowedDataViews advanced
setting","number":209120,"url":"https://github.com/elastic/kibana/pull/209120","mergeCommit":{"message":"Remove
observability:logsExplorer:allowedDataViews advanced setting
(#209120)\n\n## 📓 Summary\r\nRemoves the
`observability:logsExplorer:allowedDataViews` advanced\r\nsetting that
was introduced by\r\nhttps://github.com//pull/178602 as
Logs Explorer is [no\r\nlonger
available](#203685)
in\r\nServerless and 9.0.\r\n\r\nCloses
https://github.com/elastic/kibana/issues/209092\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"3e5f55dd0258646d976d776127e39bdb04859568"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209120","number":209120,"mergeCommit":{"message":"Remove
observability:logsExplorer:allowedDataViews advanced setting
(#209120)\n\n## 📓 Summary\r\nRemoves the
`observability:logsExplorer:allowedDataViews` advanced\r\nsetting that
was introduced by\r\nhttps://github.com//pull/178602 as
Logs Explorer is [no\r\nlonger
available](#203685)
in\r\nServerless and 9.0.\r\n\r\nCloses
https://github.com/elastic/kibana/issues/209092\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"3e5f55dd0258646d976d776127e39bdb04859568"}}]}]
BACKPORT-->

Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
drewdaemon pushed a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
…lastic#209120)

## 📓 Summary
Removes the `observability:logsExplorer:allowedDataViews` advanced
setting that was introduced by
elastic#178602 as Logs Explorer is [no
longer available](elastic#203685) in
Serverless and 9.0.

Closes elastic#209092

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the observability:logsExplorer:allowedDataViews advanced setting

8 participants