Skip to content

Commit

Permalink
Fix race condition which could disable saving (#6914)
Browse files Browse the repository at this point in the history
* provocate bug with sleep

* never terminate save saga (to avoid that a temporary allowUpdate=false could mean that changes were never saved)

* update changelog

* Update CHANGELOG.unreleased.md

Co-authored-by: Daniel <[email protected]>

* Revert "provocate bug with sleep"

This reverts commit 37692e7.

---------

Co-authored-by: Daniel <[email protected]>
  • Loading branch information
philippotto and daniel-wer authored Mar 13, 2023
1 parent 0f6233f commit 78466ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Fixed a bug where merging multiple volume annotations would result in inconsistent segment lists. [#6882](https://github.com/scalableminds/webknossos/pull/6882)
- Fixed a bug where uploading multiple annotations with volume layers at once would fail. [#6882](https://github.com/scalableminds/webknossos/pull/6882)
- Fixed a bug where dates were formatted incorrectly in Voxelytics reports. [#6908](https://github.com/scalableminds/webknossos/pull/6908)
- Fixed a rare bug which could cause an incorrectly initialized annotation so that changes were not saved in the current session. [#6914](https://github.com/scalableminds/webknossos/pull/6914)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion frontend/javascripts/oxalis/model/sagas/save_saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ export function* setupSavingForTracingType(
const allowUpdate = yield* select(
(state) => state.tracing.restrictions.allowUpdate && state.tracing.restrictions.allowSave,
);
if (!allowUpdate) return;
if (!allowUpdate) continue;
const tracing = (yield* select((state) => selectTracing(state, saveQueueType, tracingId))) as
| VolumeTracing
| SkeletonTracing;
Expand Down

0 comments on commit 78466ee

Please sign in to comment.