Closed PeterYurkovich closed 4 weeks ago
@PeterYurkovich: This pull request references OU-537 which is a valid jira issue.
Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.18.0" version, but no target version was set.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: alanconway, PeterYurkovich
The full list of commands accepted by this bot can be found here.
The pull request process is described here
@PeterYurkovich: all tests passed!
Full PR test history. Your PR dashboard.
This PR looks to persist the korrel8r query information in the store to allow users to close and open the panel without losing track of where their old query was.
Of note, because the store is reinstantiated each time a tab is opened, this won't persist the query when refreshing or opening the console at a later time. I think this is a fine tradeoff which clears away the issue of stale queries. If we want persistence through new tabs and refreshing, we will need to store in the browser storage instead.
The swap of query to an object does lead to a decent amount of spreading the old object out then overriding only one of the fields, but it feels to the point and expressive so I think its fine.