Skip to content
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

Perform history step on MultiValueVariable #1055

Closed
wants to merge 1 commit into from

Conversation

adrapereira
Copy link
Contributor

Small PR to "copy" the approach used in SceneObjectUrlSyncConfig to create history steps when the value is updated. I added the performBrowserHistoryAction function to the SceneObjectUrlSyncHandler interface and implemented it in MultiValueUrlSyncHandler. If this approach sounds good I can also do it for other classes implementing SceneObjectUrlSyncHandler like in AdHocFiltersVariable, GroupByVariable, etc.

This is needed because in traces-drilldown we make extensive use of CustomVariable and are trying to create history steps whenever a variable updates.

There should be no breaking changes.

@adrapereira adrapereira added the patch Increment the patch version when merged label Feb 13, 2025
@torkelo
Copy link
Member

torkelo commented Feb 13, 2025

@adrapereira can you take a look at #882 ? It adds browser history to variables (that extend MultiValueVariable), and only creates history steps when user initiates the change (which I think is important)

@adrapereira
Copy link
Contributor Author

Closing in favour of #882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants