Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[Inventory] Remove inventory dependency from observability plugin #193251
[Inventory] Remove inventory dependency from observability plugin #193251
Changes from all commits
d74c52a
9acb105
cfcbf71
ff54d98
660929c
7124e05
be72c31
a300a5f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 found that the navigation tree affecting Serverless is located in
kibana/x-pack/plugins/serverless_observability/public/navigation_tree.ts
. I still need to determine how the one under/observability/
(the one you modified) impacts the system.We can keep this in mind and I'll handle it in my issue. If we decide to leave it here, I recommend keeping it under the
pluginsStart.inventory
flag until we update it with theobservability:entityCentricExperience
advanced setting.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.
The navigation tree uses deeps links. Deeps links AFAICT used in the new stateful observability side bar and serverless.
This will update the stateful classic navigation. Instead of showing the inventory link in the observability section. it will render in a different section .
different section in side nav
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.
This shouldn’t block the PR from being merged, but I believe there may be a misunderstanding.
Removing the Inventory item from the
xpack/plugins/observability_solution/observability/public/navigation_tree.ts
doesn’t seem to impact the UI.The Inventory is still visible in the side navigation simply by registering the plugin the way you’ve done.
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.
Oh, wait—if the new stateful observability sidebar requires some configuration to be activated, I might be missing that. Is it the one you get when configuring a space (in that case I checked it), or is it something different?
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.
xpack/plugins/observability_solution/observability/public/navigation_tree.ts
This file is not used for the stateful classic view that you're shared the screenshot .
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.
As I mentioned earlier, Serverless seems to be impacted by
kibana/x-pack/plugins/serverless_observability/public/navigation_tree.ts
, notkibana/x-pack/plugins/observability/public/navigation_tree.ts
.Regarding the stateful observability sidebar, I’ll reach out to you privately since it seems like I’m missing some context on that.
Thanks!
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.
@iblancof Since this PR is already merged, I guess the confusion is already clarified. Feel free to ping me in case something is not clear, since I am working on a o11y navigation related issue. We have a well documented issue, where the three different types of navigation are explained.
@iblancof To your question, yep the new stateful observability sidebar is the one you get when configuring a space. You can check our issue with the flags you need to add to your kibana.dev.yml as well and the change you need to do under
Stack Management > Spaces
to activate this view. This new o11y navigation is controlled by the file you listedxpack/plugins/observability_solution/observability/public/navigation_tree.ts
@kpatticha I confirm that serverless nav is controlled by
x-pack/plugins/serverless_observability/public/navigation_tree.ts
as @iblancof mentioned aboveThere 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.
Hi @mgiota,
Thank you for providing all the context!
As you mentioned, after experimenting with the code a bit, we were able to fully understand how everything works. It all makes sense to us now. Thanks again for your help!