Repository navigation
lib: Revert needing invalid files (fixes #7608, ref #7476) - #7609
Merged
Merged
Conversation
imsodin
force-pushed
the
lib/revert-need-invalid
branch
2 times, most recently
from
April 29, 2021 08:44
6e066b6 to
effc5c8
Compare
imsodin
force-pushed
the
lib/revert-need-invalid
branch
from
April 29, 2021 08:51
effc5c8 to
7449c59
Compare
Member
|
That is unfortunate… Is #7474 going to be reopened then? Maybe something or someone will come up later and make it possible to fix it. I can live with the cosmetic issue, but at the same time it makes the affected devices appear permanently out of sync, which is less than ideal… |
calmh
approved these changes
Apr 29, 2021
tomasz1986
pushed a commit
to tomasz1986/syncthing
that referenced
this pull request
May 21, 2021
…g#7476) (syncthing#7609) Signed-off-by: Tomasz Wilczyński <[email protected]>
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Unfortunately the solution for #7474 implemented in #7476 created a new, more severe problem: Files that should be synced, aren't: #7608. I couldn't come up with a way to fix #7474 without introducing this regression that doesn't add a lot of complexity. Thus I reverted that change and thus re-introduce #7474. As that is only a "presentation issue" that's clearly the more desirable issue to have.
Most of the diff here is due to the migration needed to resolve issues for users already affected by #7608. As I needed a file info batch in this migration, I moved the
fileInfoBatchfrom model to db.Testing
I introduced a new unit test reproducing #7608 and removed the test for #7474.