Skip to content

Fix two bugs regarding selected features#741

Merged
pakb merged 1 commit intodevelopfrom
bug_fix_geom_vuex_and_feature_no_layer
Mar 27, 2024
Merged

Fix two bugs regarding selected features#741
pakb merged 1 commit intodevelopfrom
bug_fix_geom_vuex_and_feature_no_layer

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Mar 27, 2024

The new @features param wasn't checking that it was looping over features with layer, creating error when selecting drawing features

The geometry of a feature came sometimes directly from the store, and was shallow-cloned only by reproject utils. Vuex was then raising an error because reproject attempted to modify something coming from the store. We now deep-clone the geometry before passing it to reproject

Test link

@pakb pakb requested review from LukasJoss, ltkum and ltshb March 27, 2024 10:18
@github-actions github-actions bot added the bug label Mar 27, 2024
The new @features param wasn't checking that it was looping over features with layer, creating error when selecting drawing features
The geometry of a feature came sometimes directly from the store, and was shallow-cloned only by reproject utils. Vuex was then raising an error because reproject attempted to modify something coming from the store. We now deep-clone the geometry before passing it to reproject
@pakb pakb force-pushed the bug_fix_geom_vuex_and_feature_no_layer branch from af70330 to 4614a3b Compare March 27, 2024 10:18
Copy link
Contributor

@LukasJoss LukasJoss left a comment

Choose a reason for hiding this comment

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

Thanks!

@cypress
Copy link

cypress bot commented Mar 27, 2024

Passing run #1343 ↗︎

0 166 22 0 Flakiness 0

Details:

Fix two bugs regarding selected features
Project: web-mapviewer Commit: 4614a3bbc2
Status: Passed Duration: 03:55 💡
Started: Mar 27, 2024 10:23 AM Ended: Mar 27, 2024 10:27 AM

Review all test suite changes for PR #741 ↗︎

@pakb pakb merged commit d6f447d into develop Mar 27, 2024
@pakb pakb deleted the bug_fix_geom_vuex_and_feature_no_layer branch March 27, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants