-
Notifications
You must be signed in to change notification settings - Fork 20
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
Branch features disappear on project opening #325
Merged
tinevez
merged 8 commits into
mastodon-sc:dev
from
stefanhahmann:branch-features-disappear-on-project-opening
Sep 23, 2024
Merged
Branch features disappear on project opening #325
tinevez
merged 8 commits into
mastodon-sc:dev
from
stefanhahmann:branch-features-disappear-on-project-opening
Sep 23, 2024
Conversation
This file contains 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
* Includes a test, if branch features disappeared by just opening the a track scheme branch view
@tinevez I am not sure, if this PR would contradict what you had in mind earlier, when you introduced the strategy to frequently update the branch graph to have it up-to-date in as many situations as possible? |
stefanhahmann
force-pushed
the
branch-features-disappear-on-project-opening
branch
from
September 17, 2024 16:04
a715467
to
de4832d
Compare
… graph is up-to-date, when it is created * Only actually run the sync() method, if it has been informed that the branch graph is not up-to-date anymore before
* With the old 1gb setting the CI sometimes resulted in OutOfMemory Errors
tinevez
approved these changes
Sep 23, 2024
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.
Awesome!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This Pull Request changes behavior of the
BranchGraphSynchronizer
.The
BranchGraphSynchronizer
is set to optimistically assume that the branch graph isup-to-date = true
at the time the synchronizer is created. Thesync()
method evaluates theup-to-date
flag and only performs the rebuilt, if theup-to-date
flag is set tofalse
, which is usually the case, after the notifiers have informed the synchronizer that the graph had been changed.By this change, it can be achieved that, the branch features are not reset/lost after saving and re-opening a project or by just opening a track scheme branch view.
This Pull Request adds some unit tests to test the indented behavior:
testBranchFeaturesAfterSaveAndReload
inProjectLoaderTest
tests, if previously computed branch feature still exist, if the project has only been saved and reloadedtestBranchFeaturesAfterOpeningBranchView
inMamutBranchViewTrackSchemeTest
tests, if previously computed branch features still exist, after a TrackSchemeBranchView window was openedtestKeepBranchFeaturesAfterSyncWithoutChanges
inBranchGraphSynchronizerTest
tests, if previously computed branch features still exist, after thesync()
method ofBranchGraphSynchronizer
was called without any previously notified changes to the graphtestKeepBranchFeaturesAfterSyncWithChanges
inBranchGraphSynchronizerTest
tests, if previously computed branch features still exist, after thesync()
method ofBranchGraphSynchronizer
was called with previously notified changes to the graph. Since this is a current known issue, this test is ignored.Resolves #279