-
Notifications
You must be signed in to change notification settings - Fork 29
[WIP] Live Collab M3 - Proofreading (without segments list) #8723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
philippotto
wants to merge
142
commits into
master
Choose a base branch
from
live-m3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+9,689
−2,253
Open
Changes from 14 commits
Commits
Show all changes
142 commits
Select commit
Hold shift + click to select a range
b0e9c1d
add explicit release mutex functionality
philippotto e02d4ce
remove superfluous didShowFailedSimultaneousTracingError logic (unnec…
philippotto 1154a74
acquire mutex in proofreading and release after saving
philippotto 2e8d41a
retry even 409 errors
philippotto 0865908
Revert "retry even 409 errors" because saving should only be done when a
philippotto fef8705
extract save mutex saga into own module
philippotto 1ed33f1
refactor further
philippotto b3865fc
disable eager mutex acquisition and also poll for updates when allow …
philippotto 3ecc502
add DISABLE_EAGER_MUTEX_ACQUISITION bool
philippotto 5e96e38
add todo comment
philippotto 0f41c4b
move isMutexAcquired to store
philippotto 33de8ec
refactor mutex acquisition to use less state
philippotto 527f1db
make mutex-acquisition ad-hoc when trying to save
philippotto 9aa961b
in backend, make agglomerateIds and mag optional in proofreading upda…
fm3 f845a69
implement has newest version mechanism
philippotto c3cd37c
don't put unused properties into update actions for split and merge a…
philippotto 29a1608
better debugging
philippotto aa82211
maintain proofreading marker separately from segment position to avoi…
philippotto 4434111
type fixes
philippotto 9acb66e
try to fix 'Duplicate edge in agglomerate graph' error
philippotto a65323d
repeat local update after merge because the mapping might have been c…
philippotto 824d660
implement BackendMock class to prepare for new test that deals with p…
philippotto ef785c4
implement agglomerate helper + tests
philippotto 0ec2347
iterate on backend mock that manages versioned agglomerate mapping
philippotto c0865d3
fix rebase-merge test
philippotto 96d8706
implement rebase-merge-split test
philippotto 7a11456
refactor test
philippotto af75fb9
fix most old proofreading tests
philippotto 66bf44e
clean up
philippotto b22737e
fix one test in save saga spec (but the generator style tests are ann…
philippotto 1822d23
split proofreading spec into multiple modules
philippotto be1bcca
split proofreading specs into three modules
philippotto 81f9497
add some colored logs
philippotto 0370e9e
WIP refactor mutex acquiring
MichaelBuessemeyer 3f66d4e
clean up backend for mutex release
fm3 4393fad
fix getting annotation mutex
MichaelBuessemeyer 793c15a
refactor allow update, always keep restrictions set by the server
MichaelBuessemeyer 74cdc79
fix EnsureMaySaveNow not getting resolved
MichaelBuessemeyer 75cfde2
WIP add more mutex tests
MichaelBuessemeyer 64f30e2
wip fix on demand mutex fetching test
MichaelBuessemeyer 9336e7e
fix tests
MichaelBuessemeyer 63d9da6
fix tests
MichaelBuessemeyer fa855ee
test injecting foreign split action
MichaelBuessemeyer fe491f9
add segment not loaded in tests
MichaelBuessemeyer 26ca604
added tests where the injected actions include not loaded segments in…
MichaelBuessemeyer a0fad85
WIP: properly fetch mutex on demand
MichaelBuessemeyer fb79238
fix on demand mutex releasing and acquiring
MichaelBuessemeyer 0c6d932
mark mutex as released in client state after successful release call …
MichaelBuessemeyer bfefbc6
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer 85cc963
WIP: implement rebase mechanism
MichaelBuessemeyer c1b71f9
WIP: fix rebase mechanism
MichaelBuessemeyer 5135fe9
Fix multi user proofreading tests
MichaelBuessemeyer f0f5e0c
WIP: incoporate merge without hard refresh
MichaelBuessemeyer 990e940
load missing info for merge loaded from server
MichaelBuessemeyer c596863
WIP: do not hard refresh when incoporating split edges actions
MichaelBuessemeyer 8f7f327
save mapping refresh if not necessary
MichaelBuessemeyer 3642423
add wkdev flag enabling new live collab for proofreading
MichaelBuessemeyer 44debba
fix proofreading not allowed after initially activating a mapping in …
MichaelBuessemeyer c4e9f88
fix rebasing again
MichaelBuessemeyer 9b0f5bd
fix tests
MichaelBuessemeyer 55e7472
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer ed696ff
fix update action order applied by polling mechanism
MichaelBuessemeyer 36c7815
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer 172b7a2
fix: do not incorporate missing updates if liveCollab flag is turned off
MichaelBuessemeyer a1803cf
dont show "not having mutex" toast in liveCollab scenario
MichaelBuessemeyer 92b9184
fix some FE tests
MichaelBuessemeyer 7c6c20f
fix missing tests
MichaelBuessemeyer 76209ed
fix linting and formatting
MichaelBuessemeyer 104a248
add test testing split of segments not loaded by client
MichaelBuessemeyer 70124e4
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer 9ab5e79
more tests & moe fixes
MichaelBuessemeyer b976997
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer f368cf3
WIP make code resilient against more edge cases
MichaelBuessemeyer 30f1f6e
make rebasing update mapping with missing mapping info when applying …
MichaelBuessemeyer 6fe3913
add tests simulating split & merge via mesh interaction where unmappe…
MichaelBuessemeyer 578356c
remove scm boy occurrences
MichaelBuessemeyer d846ca2
wip add agglomerate skeleton interaction tests
MichaelBuessemeyer 6b0c703
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer 94cb969
WIP add first agglomerate skeleton test
MichaelBuessemeyer 41787f7
fix backend mock (only bump version once per update action batch)
MichaelBuessemeyer 35e937c
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer 28ff196
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer 6820868
apply user specific update actions if apply own actions during rebasing
MichaelBuessemeyer a60ad8b
make diffable map printable
MichaelBuessemeyer 36c286d
fix self directing edge in agglomerate skeleton generating mocking code
MichaelBuessemeyer 353fe30
WIP: fix unnecessary diff of trees due to rebasing & remove server sp…
MichaelBuessemeyer 0d9ca97
only perform rebasing on demand
MichaelBuessemeyer 9d9add9
fix single user proofreading tests
MichaelBuessemeyer 8f4e8fd
do not enforce busy bloking during rebasing in case of proofreading a…
MichaelBuessemeyer f5388b9
reload agglomerateIds after syncing with backend & saving in all proo…
MichaelBuessemeyer ce480fa
fix first agglomerate skeleton test
MichaelBuessemeyer 75f3868
Clean up PR a little
MichaelBuessemeyer 06b5847
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer a1fa9ce
add skeleton merge test with interfered update action after loading a…
MichaelBuessemeyer 1865159
add split agglomerate skeleton tests
MichaelBuessemeyer 2c9b00f
add tests testing split via node context menu via skeleton nodes
MichaelBuessemeyer 912754b
WIP: apply feedback
MichaelBuessemeyer c88fa69
WIP apply pr feedback
MichaelBuessemeyer 39fff92
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer c157cbb
WIP: apply feedback
MichaelBuessemeyer 403b061
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer 617fc01
apply various feedback
MichaelBuessemeyer b1f5918
add first partitioned mincut test
MichaelBuessemeyer a46dc69
make tryAcquireMutexForSaving saga more resilient against error durin…
MichaelBuessemeyer 8295a12
add test where partitioned min cut is interfered by merge and thus mi…
MichaelBuessemeyer e1bcaed
run collab tests in enforced liveCollab = true flag env
MichaelBuessemeyer 34b0aa3
fix clearing receivedDataPerSaveRequest in tests
MichaelBuessemeyer b88f01f
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer e7f78a4
fix volume update action spec
MichaelBuessemeyer e9eb6d2
add tests checking for avoiding doing a rebase if not needed
MichaelBuessemeyer 83130ff
fix missing poll only tests
MichaelBuessemeyer 1c9808e
fix a lot of tests
MichaelBuessemeyer 93e86a4
fix imports
MichaelBuessemeyer f42e5db
fix left over broken tests
MichaelBuessemeyer 51f60d7
make biome ignore snapshot files
MichaelBuessemeyer 777f39f
fix typing
MichaelBuessemeyer 368965a
add comment about introduced updateActiveTree frontend only action
MichaelBuessemeyer 2aa2de6
fix cyclic dependencies
MichaelBuessemeyer 8d2161f
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer f6e4b71
fix backend linting
MichaelBuessemeyer cba1273
fix frontend import sorting
MichaelBuessemeyer e35c367
fix skeleton tracing proto mocking in skeleton proofreading tests
MichaelBuessemeyer 39c6949
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer d52852b
do not acquire mutex when switching tools or active volume annotation…
MichaelBuessemeyer e383ba3
load agglomerate skeleton in version matching the current local annot…
MichaelBuessemeyer 108ba2f
fix syntax
MichaelBuessemeyer 632016c
adjust naming of tests related to save mutex acquisition
MichaelBuessemeyer d52a1a0
fix tests & add test that mutex is not tried to be acquired when swit…
MichaelBuessemeyer 79523ac
add tests that mutex fetching is done appropriately upon active volum…
MichaelBuessemeyer d6883fc
Merge branch 'master' of github.com:scalableminds/webknossos into liv…
MichaelBuessemeyer b55f365
choose correct mutex fetching strategy upon volume layer switching & …
MichaelBuessemeyer 5965020
fix tests by setting editRotation of skeletontracing fixture to 0,0,0
MichaelBuessemeyer a7455da
fix imports
MichaelBuessemeyer f5b9532
make test more resilient
MichaelBuessemeyer b51ab0d
merge origin master into this branch
MichaelBuessemeyer 7a966d3
fix merge
MichaelBuessemeyer 68ad88d
fix problems with latest merge
MichaelBuessemeyer 05ac8b2
remove debug logging
MichaelBuessemeyer 142bb9d
fix typo
MichaelBuessemeyer 2f48fc1
remove todo comment, did the checking and no changes noticed
MichaelBuessemeyer e5b9e05
fi infinite brain loading spinner
MichaelBuessemeyer 89f0dcf
apply feedback; incl. remove accidentally added file & improve comment
MichaelBuessemeyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we’re not using any info from the findOne other than whether to delete, we could merge the two into one query and just DELETE WHERE annotationId = a AND userId = u
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed that now in 3f66d4e – note that I could not test end-to-end since the frontend isn’t ready. Let me know if this doesn’t work as expected :)