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/model: Refactor CheckFolderHealth into separate methods #3343

Closed
wants to merge 2 commits into from
Closed

lib/model: Refactor CheckFolderHealth into separate methods #3343

wants to merge 2 commits into from

Conversation

calmh
Copy link
Member

@calmh calmh commented Jun 26, 2016

While attempting to fix #2782 I thought the problem was the CheckFolderHealth method, so I cleaned it up. That turned out not to be the case, but I think this is better anyhow.

It also moves the "create folder and marker if the folder was empty in the index" code to StartFolder where I think it makes better sense.

This is covered by a number of existing tests.

While attempting to fix #2782 I thought the problem was the
CheckFolderHealth method, so I cleaned it up. That turned out not to be
the case, but I think this is better anyhow.

It also moves the "create folder and marker if the folder was empty in
the index" code to StartFolder where I think it makes better sense.

This is covered by a number of existing tests.
@calmh
Copy link
Member Author

calmh commented Jun 26, 2016

The testing in main_test is broken, it depended on CheckFolderHealth actually creating the folder and stuff despite comments stating the opposite. It also shouldn't even test that stuff from there, we should test the various methods from inside the model package if anything. Will refactor the testing as well a bit, so this is failed in the meantime.

@AudriusButkevicius
Copy link
Member

@st-review merge

@st-review
Copy link

👌 Merged as 9323f0f. Thanks, @calmh!

@st-review st-review closed this Jun 26, 2016
st-review pushed a commit that referenced this pull request Jun 26, 2016
While attempting to fix #2782 I thought the problem was the
CheckFolderHealth method, so I cleaned it up. That turned out not to be
the case, but I think this is better anyhow.

It also moves the "create folder and marker if the folder was empty in
the index" code to StartFolder where I think it makes better sense.

This is covered by a number of existing tests.

GitHub-Pull-Request: #3343
@calmh calmh deleted the folderhealth branch June 26, 2016 10:55
@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 Jun 26, 2017
@syncthing syncthing locked and limited conversation to collaborators Jun 26, 2017
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.

Error handling root synced folder symbolic link when ~ used for path on Linux
3 participants