Skip to content

Commit fa99630

Browse files
committed
disable eager mutex acquisition and also poll for updates when allow update is true
1 parent ac6b2ab commit fa99630

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

frontend/javascripts/viewer/model/sagas/saving/save_mutex_saga.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ type MutexLogicState = {
2727
};
2828

2929
export function* acquireAnnotationMutexMaybe(): Saga<void> {
30+
// todop
31+
return;
3032
yield* call(ensureWkReady);
3133
const allowUpdate = yield* select((state) => state.annotation.restrictions.allowUpdate);
3234
if (!allowUpdate) {

frontend/javascripts/viewer/model/sagas/saving/save_saga.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ function* watchForSaveConflicts(): Saga<void> {
5151
(state) =>
5252
state.annotation.restrictions.allowSave && state.annotation.restrictions.allowUpdate,
5353
);
54-
if (allowSave) {
54+
55+
// todop
56+
if (false && allowSave) {
5557
// The active user is currently the only one that is allowed to mutate the annotation.
5658
// Since we only acquire the mutex upon page load, there shouldn't be any unseen updates
5759
// between the page load and this check here.

0 commit comments

Comments
 (0)