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

[New arch] Av. Offline #3246

Closed
9 tasks
abelgardep opened this issue May 19, 2021 · 1 comment · Fixed by #3715
Closed
9 tasks

[New arch] Av. Offline #3246

abelgardep opened this issue May 19, 2021 · 1 comment · Fixed by #3715

Comments

@abelgardep
Copy link
Contributor

abelgardep commented May 19, 2021

Synchronization epic: #2818

AC (To discuss):

  • Av. offline means downloaded & synced
  • Av. offline items will be marked to distinguish form the others
  • Av. offline items will be filtered in the proper shortcut
  • Items marked as Av. Offline will be synced automatically to keep them updated and available without network connection.
  • All the content of a folder (files/subfolders) that is available offline will be available offline as well. In case of subfolders, all the content will be av. offline in a recursive way.
  • The content of an av. offline folder will be av. offline till the folder loses the av. offline condition. That means, anything inside an av. offline folder will NOT have the option "unavailable offline"
  • If an av. offline item is copied/moved, it keeps the av. offline condition in the new location unless it is av. offline because its parents are av. offline.
  • If an item is copied/moved inside an av. offline folder, it becomes av. offline
  • If an item inside an av. offline folder is copied/moved to any other location (not. av. offline), it loses the av. offline condition
  • If an av. offline file is edited externally, in max 15 mins will be pushed to the server without opening the app (Scoped Storage makes this one?, what happens with "open with")
  • If any item is set as av.offline with no connection, it gets the av. offline condition and will be downloaded/synced when connection is recovered
  • It is not posible to delete locally an av.offline item.

REPLACE SERVICE BY WORKMANAGER

TASKS

  • Research (if needed)
  • Create branch feature/feature_name
  • Development tasks
    • Implement whatever
    • ...
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into master

PR

@abelgardep
Copy link
Contributor Author

Periodic worker.

⏲️ Interval: 15 Minutes
🛑 Constraints: NetworkType.CONNECTED and BatteryNotLow

Enqueued the first time the user skips settings. Probably should be done on installment or when setting a file as av. offline, not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants