Skip to content

PB-341: Fix race condition in drawing e2e tests#693

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

PB-341: Fix race condition in drawing e2e tests#693
ltshb merged 1 commit intodevelopfrom
bug-drawing-save

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Mar 6, 2024

Apparently the debouncing of the feature title and description in drawing together
with the save drawing debouncing creates a race condition when editing the title
and/or description and closing the drawing mode. In this case the save kml
triggered by the title/description update debounced happens only when the
drawing mode is closed and when the drawing layer has removed all its
feature which result to saving an empty drawing, clearing the existing drawing.

To avoid this we speed up debouncing, this is not a perfect fix but it works
and I could not find a way of correctly cleaning up the debouncing for
the closing drawing menu event.

Test link

@github-actions github-actions bot added the bug label Mar 6, 2024
@ltshb ltshb force-pushed the bug-drawing-save branch from b9c1cc4 to 2c5cb59 Compare March 6, 2024 12:06
@cypress
Copy link

cypress bot commented Mar 6, 2024

Passing run #946 ↗︎

0 167 22 0 Flakiness 0

Details:

PB-341: Fix drawing e2e race condition
Project: web-mapviewer Commit: 6c91333055
Status: Passed Duration: 04:38 💡
Started: Mar 7, 2024 5:02 AM Ended: Mar 7, 2024 5:07 AM

Review all test suite changes for PR #693 ↗︎

@ltshb ltshb force-pushed the bug-drawing-save branch 5 times, most recently from ca736c1 to ca6857b Compare March 6, 2024 19:37
@ltshb ltshb changed the title Try solve race condition in drawing e2e tests Fix race condition in drawing e2e tests Mar 6, 2024
@ltshb ltshb marked this pull request as ready for review March 6, 2024 19:38
@ltshb ltshb requested a review from pakb March 6, 2024 19:47
Apparently the debouncing of the feature title and description in drawing together
with the save drawing debouncing creates a race condition when editing the title
and/or description and closing the drawing mode. In this case the save kml
triggered by the title/description update debounced happens only when the
drawing mode is closed and when the drawing layer has removed all its
feature which result to saving an empty drawing, clearing the existing drawing.

To avoid this we speed up debouncing, this is not a perfect fix but it works
and I could not find a way of correctly cleaning up the debouncing for
the closing drawing menu event.
@ltshb ltshb force-pushed the bug-drawing-save branch from ca6857b to 6c91333 Compare March 7, 2024 04:59
@ltshb ltshb changed the title Fix race condition in drawing e2e tests PB-341: Fix race condition in drawing e2e tests Mar 7, 2024
@ltshb ltshb merged commit f6cdb4b into develop Mar 7, 2024
@ltshb ltshb deleted the bug-drawing-save branch March 7, 2024 05:13
@cypress cypress bot mentioned this pull request Mar 7, 2024
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