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

Vfs: Add 'availability', a simplified, user-facing pin state #7132

Merged
merged 1 commit into from
Apr 9, 2019

Conversation

ckamm
Copy link
Contributor

@ckamm ckamm commented Apr 5, 2019

For #7111

The idea is that the user's question is "is this folder's data available
offline?" and not "does this folder have AlwaysLocal pin state?".
The the answers to the two questions can differ: an always-local
folder can have subitems that are not always-local and are dehydrated.

The new availability enum intends to describe the answer to the user's
actual question and can be derived from pin states. If pin states aren't
stored in the database the way of calculating availability will depend
on the vfs plugin.

Needs changes to plugins and depends on PR #7131. Also still needs tests! (EDIT: Tests are done)

@ckamm ckamm added DO NOT MERGE YET feature:vfs native virtual files and placeholder implementation labels Apr 5, 2019
@ckamm ckamm added this to the 2.6.0 milestone Apr 5, 2019
@ckamm ckamm self-assigned this Apr 5, 2019
@ckamm ckamm requested a review from ogoffart April 5, 2019 07:38
The idea is that the user's question is "is this folder's data available
offline?" and not "does this folder have AlwaysLocal pin state?".
The the answers to the two questions can differ: an always-local
folder can have subitems that are not always-local and are dehydrated.

The new availability enum intends to describe the answer to the user's
actual question and can be derived from pin states. If pin states aren't
stored in the database the way of calculating availability will depend
on the vfs plugin.
@ckamm ckamm merged commit 2b0f32c into master Apr 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the 7111-pin-vs-availability branch April 9, 2019 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:vfs native virtual files and placeholder implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants