Skip to content

Allow embed callers to reset snapshots when loading data - #870

Open
Mangesh Raut (mangeshraut712) wants to merge 1 commit into
microsoft:mainfrom
mangeshraut712:fix/reset-snapshots-on-load
Open

Mangesh Raut (mangeshraut712) wants to merge 1 commit into
microsoft:mainfrom
mangeshraut712:fix/reset-snapshots-on-load

Conversation

@mangeshraut712

Copy link
Copy Markdown

Closes #604.

Adds the optional load flag suggested in the issue discussion. An embed caller switching datasets can pass options: { resetSnapshots: true } to clear the old snapshot list and selection. If the incoming data file supplies snapshots, its list wins. Reloads without either the option or incoming snapshots retain the previous selection.

I ran a local harness against the actual Explorer.load method with stubbed data and UI dependencies. The reset case failed on main. Four cases passed with the change: ordinary reload, explicit reset, incoming snapshots, and an explicitly empty incoming list. I also verified that the embed load message forwards options to Explorer.load. Browser integration and the full workspace suite were not run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sending load message to the embed control should reset the snapshot list

1 participant