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

Refactor layer tree updates #284

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

gjmooney
Copy link
Collaborator

@gjmooney gjmooney commented Jan 3, 2025

This modifies how layer tree updates are handled, basically it changes _addLayerTreeItem, _removeLayerTreeLayer, and _removeLayerTreeGroup to modify a working copy of the layer tree, and then syncs the changes with the y.js document so only the final version of the layer tree is used when firing relevant signals, instead of triggering the signals on intermediate changes.

This should fix the inputs to the changes made in #269.

📚 Documentation preview: https://jupytergis--284.org.readthedocs.build/en/284/
💡 JupyterLite preview: {docs-pre-index-url}/lite

Copy link
Contributor

github-actions bot commented Jan 3, 2025

Binder 👈 Launch a Binder on branch gjmooney/jupytergis/fix_layer_tree_stuff

@gjmooney gjmooney requested a review from brichet January 3, 2025 11:09
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Integration tests report: appsharing.space

@gjmooney gjmooney added the bug Something isn't working label Jan 3, 2025
@gjmooney gjmooney force-pushed the fix_layer_tree_stuff branch from 241a9e6 to 5ed6d5e Compare January 3, 2025 13:11
@Meriem-BenIsmail
Copy link
Collaborator

I confirm that this works well with #269. Nice work @gjmooney and @brichet !

@gjmooney gjmooney force-pushed the fix_layer_tree_stuff branch from ee03c6f to 0ba1ff2 Compare January 7, 2025 13:03
Copy link
Collaborator

@brichet brichet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gjmooney, LGTM.

We need to stabilize the UI tests quickly 😞

@martinRenou martinRenou merged commit fbe439d into geojupyter:main Jan 8, 2025
12 checks passed
@gjmooney gjmooney deleted the fix_layer_tree_stuff branch January 10, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants