Skip to content
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

lib: Skip deleted, locally changed on recv-enc folders (fixes #7153) #7154

Merged
merged 1 commit into from Nov 27, 2020

Conversation

imsodin
Copy link
Member

@imsodin imsodin commented Nov 25, 2020

Deleted items in a receive-encrypted folder must be tagged as a local change, as we mustn't send them to remotes. However those are not a problem, they are meant to be deleted, and thus shouldn't show up as locally changed. To filter those files out, we need to know the folder type. That information is not available in the db package. Thus in the api, instead of getting a db-snapshot from the model and getting locally changed items from that snapshot, this information is now directly obtained from the model (thus having all of these file list methods (need, remote-need, locally-changed) in the model. instead of spread between model and db).

@calmh calmh merged commit a9764fc into syncthing:main Nov 27, 2020
@imsodin imsodin deleted the lib/recvEncChanged branch November 27, 2020 10:30
@calmh calmh added this to the v1.12.1 milestone Nov 27, 2020
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Nov 28, 2021
@syncthing syncthing locked and limited conversation to collaborators Nov 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants