Skip to content

[Explorer] Extract URL state persistence from the component #165255

@weltenwort

Description

@weltenwort

📓 Summary

The LogExplorer component that the log_explorer plugin exports currently inherits the URL state synchronization from Discover. In order to make it reusable in different UIs we want to prevent it from modifying the URL so the consumer has control over that.

✔️ Acceptance criteria

  • The LogExplorer component doesn't interact with the URL in any way.
  • It exposes its state such that it can be initialized and reacted-to by the consuming app.
  • There is a new Observability Log Explorer state machine that handles initialisation
  • The Observability Log Explorer app registered by observability_log_explorer synchronizes the necessary parts of the state to the URL, such that...
    • a page reload restores these parts of the state.
    • it can be migrated as the schema changes.

Please see #165255 (comment) for more specific implementation details.

💡 Implementation hints

  • Maybe versioning the url state would help in managing url schema migrations?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions