Skip to content

[Infra] Refactor useSearchSession hook #203412

@crespocarlos

Description

@crespocarlos

Summary

As per #203150 (comment), the useSearchSession shouldn't rely on search.session. The UI needs to have a context that can be used to control when requests will be made and to force requests. Similar to APM's use_time_range_id_context, but using timestamp instead.

AC

  • useSearchSession is renamed
  • updateSearchSessionId is renamed
  • useSearchSession doesn't use search.session nor creates a dependency on the UI with searchSessionId
  • searchSessionId is replaced with lastReloadRequestTime on usages of lens embeddable
  • useFetcher no longer uses searchSessionId but the new variable.

Metadata

Metadata

Assignees

Labels

Feature:ObsHostsHosts feature within ObservabilityTeam:obs-ux-infra_services - DEPRECATEDDEPRECATED - Use Team:obs-presentation.technical debtImprovement of the software architecture and operational architecture

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions