Skip to content

Fix save drawing race condition#690

Merged
ltshb merged 1 commit intodevelopfrom
bug-save-drawing
Mar 6, 2024
Merged

Fix save drawing race condition#690
ltshb merged 1 commit intodevelopfrom
bug-save-drawing

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Mar 6, 2024

When exiting the drawing, we could have a race condition between the closing
save and pending debounced save. Sometimes a pending debounce save, not started
was started after the closing and closing save, which saved an empty kml because
the drawing layer would have been removed.

This was making some test failing time to time and could also have been an
issue for a real user if he would close the drawing too quickly.

Test link

When exiting the drawing, we could have a race condition between the closing
save and pending debounced save. Sometimes a pending debounce save, not started
was started after the closing and closing save, which saved an empty kml because
the drawing layer would have been removed.

This was making some test failing time to time and could also have been an
issue for a real user if he would close the drawing too quickly.
@github-actions github-actions bot added the bug label Mar 6, 2024
@ltshb ltshb requested a review from pakb March 6, 2024 10:30
@cypress
Copy link

cypress bot commented Mar 6, 2024

Passing run #915 ↗︎

0 13 0 0 Flakiness 0

Details:

Fix save drawing race condition
Project: web-mapviewer Commit: 5a18140ddf
Status: Passed Duration: 02:04 💡
Started: Mar 6, 2024 10:44 AM Ended: Mar 6, 2024 10:46 AM

Review all test suite changes for PR #690 ↗︎

@ltshb ltshb merged commit 8ab7ea8 into develop Mar 6, 2024
@ltshb ltshb deleted the bug-save-drawing branch March 6, 2024 10:48
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