Skip to content

Selective sync: Respect big folder threshold #5421 - #5426

Closed
ckamm wants to merge 3 commits into
masterfrom
selective-sync-big-folder
Closed

ckamm wants to merge 3 commits into
masterfrom
selective-sync-big-folder

Conversation

@ckamm

@ckamm ckamm commented Jan 3, 2017

Copy link
Copy Markdown
Contributor

When creating a folder sync connection through the account or folder
wizard we didn't take the big folder threshold into account when
presenting the user the selective sync folder list.

Now big folders are deselected by default. And if that happens a label
is displayed that notifies the user of that fact.

@ckamm
ckamm requested a review from guruz January 3, 2017 14:51
@mention-bot

Copy link
Copy Markdown

@ckamm, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ogoffart, @danimo and @dragotin to be potential reviewers.

Comment thread src/gui/folderwizard.cpp
{
QVBoxLayout *layout = new QVBoxLayout(this);
_treeView = new SelectiveSyncTreeView(account, this);
layout->addWidget(new QLabel(tr("Choose What to Sync: You can optionally deselect remote subfolders you do not wish to synchronize.")));

@guruz guruz Jan 3, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SelectiveSyncWidget has an equivalent text?

EDIT: Ah i guess it is "Folders whose size exceeds the download confirmation threshold have been deselected. You may select them if you wish to download them."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new widget is (header label, tree view, big folder notice (if necessary)). The new header text is going to be slightly less specific than before since it always says the same thing. But I think it's okay and nicely unifies some more aspects of selective sync setup.

@guruz

guruz commented Jan 3, 2017

Copy link
Copy Markdown
Contributor

Code looks ok, let's have @SamuAlfageme take a look before merging

@SamuAlfageme

SamuAlfageme commented Jan 10, 2017 •

Copy link
Copy Markdown
Contributor

From #5421 (comment) & #4581 (comment) -> 👍

@ckamm

ckamm commented Jan 13, 2017

Copy link
Copy Markdown
Contributor Author

@ogoffart Pointed out an issue with the text (phrasing it as a double negative was intentional to highlight the blacklist character of this list) and a problem where, when one expands an explicitly selected large folder, large subfolders can start out as deselected.

@ckamm

ckamm commented Jan 13, 2017 •

Copy link
Copy Markdown
Contributor Author

@ogoffart I wonder whether we make our lives unnecessarily complicated this way. What if we just considered the selective sync dialog during setup a way for users to create an explicit blacklist. Nothing would be whitelisted: So the first sync would ask users about large folders and possible 'M' permissions.

That has the advantage that only exactly one place has to deal with that logic (namely discovery).

It also makes sense from the point of view of the account/folder setup wizards not having all the data we need: If, for instance, it was allowed that a deeply nested folder needs confirmation (say, because it has 'M' permissions) the wizards currently couldn't highlight that because they don't query all folder data. The sync really is the correct place for making these decisions.

ckamm and others added 3 commits January 13, 2017 10:52
Previous the Theme option only applied to the account setup wizard.
It should be parented to the treeview to be sure that is shows inside of it.
@ckamm
ckamm force-pushed the selective-sync-big-folder branch from f5a91ba to 0249a68 Compare January 13, 2017 09:58
@ckamm

ckamm commented Jan 13, 2017

Copy link
Copy Markdown
Contributor Author

@SamuAlfageme: @ogoffart and me discussed this for quite a while. We think the previous behavior was pretty much what we wanted:

  • In setup wizards, the user gets presented a list of folders along with their sizes and is free to make decisions about what to sync. (the default-nothing theme fix still makes sense) There's no need to explicitly warn the user about big folders here, since they see them along with the sizes.
  • For the first sync, we should treat these choices as given and not pop up warnings about folders the user has just looked at in the wizard.

We could start marking folders that would usually need confirmation in this dialog, but think it's optional and may not be worth the complications.

@ogoffart Do you agree with this summary?

@SamuAlfageme

Copy link
Copy Markdown
Contributor

@ckamm @ogoffart hm, I see your point here.

In the checklist though, I'd offer some kind of shortcut/button to check/uncheck all these folders that exceed the threshold without having to go one-by-one as the reinstall scenario could be tedious in this sense.

dialog

@guruz

guruz commented Jan 25, 2017

Copy link
Copy Markdown
Contributor

I'm merging this as @SamuAlfageme has tested this.

We need to get 2.3 out of the door so ideally your suggestion #5426 (comment) would go into a new issue so we can do it another time.

@guruz

guruz commented Jan 25, 2017

Copy link
Copy Markdown
Contributor

This was merged as c8cfb31 manually to 2.3 instead of master

@guruz guruz closed this Jan 25, 2017
@ogoffart
ogoffart deleted the selective-sync-big-folder branch January 25, 2018 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ReadyToTest QA, please validate the fix/enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants