Skip to content

Commit

Permalink
finish scped storage migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jesmrec committed Nov 3, 2021
1 parent 97909e7 commit b82b9fd
Showing 1 changed file with 24 additions and 35 deletions.
59 changes: 24 additions & 35 deletions Mobile/Android/Release_2.19/Scoped Storage Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,37 @@
| :---- | :-------- | :-------------- | :----: | :------- |
| **Wizard navigation** |   |
| Displayed | Upgrade from previous version | Wizard is displayed | P m11 m7 | |
| 1st slide - Presentation | 1. Upgrade from previous version | Wizard is displayed, 1st slide is a presentation with a correct link to "Learn more". Correct in both orientations | F m11 m7 | Learn more does nothing |
| 1st slide - Remind me later | 1. Upgrade from previous version<br>2. Select "Remind me later" in the 1st slide | Wizard is gone.<br>In `Settings`, wizard could be re-triggered<br>Files keep in the legacy storage<br>New downloads are done inside the scoped storage | NA | Option discarded|
| 1st slide - Next | 1. Upgrade from previous version<br>2. Select "Next" in the 1st slide | Jump to the 2nd slide | P m11 m7 | |
| 2nd slide - Decision | 1. Upgrade from previous version | Wizard is displayed, 2nd slide prompts user to take a decision: migrate & clear or migrate & keep files. Correct displayed in both orientations | P m11 m7 | |
| 2nd slide - Migrate & clean | 1. Upgrade from previous version<br>2. In 1st slide select Next<br>2. In 2nd slide select "Migrate & clean" | Jump to the 3rd slide | P m11 m7 | |
| 2nd slide - Migrate & Keep | 1. Upgrade from previous version<br>2. In 1st slide select "Next"<br>2. In 2nd slide select "Migrate & Keep" | Jump to the 3rd slide | P m11 m7 | |
| 3nd slide - Migration | 1. Upgrade from previous version<br>2. In 1st slide select "Next"<br>2. In 2nd slide select any option | Migration is being done. Correctly displayed in both orientations| P m11 m7| |
| 4th slide - End | 1. Upgrade from previous version<br>2. In 1st slide select "Next"<br>2. In 2nd slide select any option<br>3. Wait till migration finishes | Migration done slice. Correctly displayed in both orientations | P m11 m7 | |
| 4th slide - Close | 1. Upgrade from previous version<br>2. In 1st slide select "Next"<br>2. In 2nd slide select any option<br>3. Wait till migration finishes<br>4. Select "Close" | Wizard is gone, app is displayed | P m11 m7| |
| 1st slide - Presentation | 1. Upgrade from previous version | Wizard is displayed, 1st slide is a presentation. Correct in both orientations | P m7 m11 | |
| 2nd slide - Files to migrate | 1. Upgrade from previous version | Wizard is displayed, 2nd slide shows the ampount of files to migrate and a short explanation | P m11 m7 | |
| 3nd slide - Migration | 1. Upgrade from previous version<br>2. In 1st slide select "Next"<br>2. In 2nd slide select "Migrate" | Migration is being done. Progress bar displayed. Correctly displayed in both orientations| P m11 m7| |
| 4th slide - End | 1. Upgrade from previous version<br>2. In 1st slide select "Next"<br>2. In 2nd slide select "Migrate"<br>3. Wait till migration finishes | Migration done and close. Correctly displayed in both orientations | P m11 m7 | |
| **Wizard navigation errors** |   |
| 1st slide - Kill | 1. Upgrade from previous version<br>2. When 1st slide is displayed, kill the app<br>2. Open the app | Wizard is displayed again | P m11 m7 | |
| 2nd slide - Kill | 1. Upgrade from previous version<br>2. When 2nd slide is displayed, kill the app<br>2. Open the app | Wizard is displayed again | P m11 m7 | |
| 3rd slide - Kill | 1. Upgrade from previous version<br>2. When 3nd slide is displayed, kill the app<br>2. Open the app | Wizard is displayed again? App is opened without complete migration, to be done later? | P m11 m7 | |
| 3rd slide - Kill | 1. Upgrade from previous version<br>2. When 3nd slide is displayed, kill the app<br>3. Open the app | Wizard is displayed again. App is opened without complete migration, to be done later? | P m11 m7 | |
| 4th slide - Kill | 1. Upgrade from previous version<br>2. When 4th slide is displayed, kill the app<br>2. Open the app | Wizard is not displayed.<br> App is opened with completed migration | P m11 m7 | |
| Low battery | 1. Upgrade from previous version with low battery (check with emulator ow switch the device off) | It should warn user? | F m11 | When device is switched on, no migration happens |
| Low battery | 1. Upgrade from previous version with low battery (check with emulator or switch the device off) | It should warn user? | F m11 P m7 m9 | Weird in Pixel2 (Andorid11). When device is switched on, no migration happens. Only in that device. |
| **Data migration** | 4 devices, different capabilities and versions  |
| No downloaded data | 1. Upgrade from previous version<br>2. After migration, download a file and a folder | 1. No wizard. Legacy storage is cleaned up. Nothing downloaded in Scoped Storage<br>3. File and folder downloaded in Scoped Storage | P m11 m7 m6 | |
| Little data - Clean | 1. Download <100MB of files (including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and clean"<br>4. After migration, download a file and a folder | 3. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff| F m11 m6 m7 | Av. offline queued |
| Little data - Keep | 1. Download <100MB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and keep"<br>4. After migration, download a file and a folder | 3. Legacy storage with all the files downloaded before<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff<br>File and folder not downloaded in legacy storage| F m11 m6 m7 | Av. offline queued |
| 1GB - Clean | 1. Download 1GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and clean"<br>4. After migration, download a file and a folder | 3. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff| P m11 m6 m7 | |
| 1GB - Keep | 1. Download 1GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and keep"<br>4. After migration, download a file and a folder | 3. Legacy storage with all the files downloaded before<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff<br>File and folder not downloaded in legacy storage| P m11 m6 m7 | |
| 5GB - Clean | 1. Download 5GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and clean"<br>4. After migration, download a file and a folder | 3. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff| P m11 m7 | |
| 5GB - Keep | 1. Download 5GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and keep"<br>4. After migration, download a file and a folder | 3. Legacy storage with all the files downloaded before<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff<br>File and folder not downloaded in legacy storage| P m11 m7 | |
| 10GB - Clean | 1. Download 10GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and clean"<br>4. After migration, download a file and a folder | 3. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff| P m11 | |
| 50GB - Clean | 1. Download 50GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and clean"<br>4. After migration, download a file and a folder | 3. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff| | |
| 50GB - Keep | 1. Download 50GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. In 2nd slide, select "Migrate and keep"<br>4. After migration, download a file and a folder | 3. Legacy storage with all the files downloaded before<br>Dowloaded files moved to Scoped Storage<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff<br>File and folder not downloaded in legacy storage | | |
| Multiaccount | 1. Attach 4 accounts<br>2. Download and set av. offline files and folders in all of them<br>3. Upgrade from previous version<br>3. Run wizard till it ends.<br>4. After migration, download a file and a folder | 3. Dowloaded files moved to Scoped Storage from all accounts<br>4. File and folder downloaded in Scoped Storage together with the migrated stuff<br>File and folder not downloaded in legacy storage | P m11 m7 | |
| Security | Perform any migration with security (pattern, passcode or biometric) enabled | Migration is triggered after unlocking the app | P m7 | |
| Logs | Perform any migration after generating some logs (enable them in Settings > Logging)| Logs are moved to Scoped Storage | F m11 | Old location not removed |
| Deep structure | Perform any migration in an account that contains a deep folder structure with downloaded files inside | Dowloaded files moved to Scoped Storage, preserving the deep structure | P m7 | |
| Little data | 1. Download <100MB of files (including av. offline files and folders)<br>2. Upgrade from previous version<br>3. After migration, download a file and a folder | 2. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>3. File and folder downloaded in Scoped Storage together with the migrated stuff| P m11 m6 m7 | FIXED: Av. offline queued |
| 1GB | 1. Download 1GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. After migration, download a file and a folder | 2. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>3. File and folder downloaded in Scoped Storage together with the migrated stuff| P m11 m6 m7 | |
| 5GB | 1. Download 5GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. After migration, download a file and a folder | 2. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>3. File and folder downloaded in Scoped Storage together with the migrated stuff| P m11 m7 | |
| 10GB | 1. Download 10GB of files(including av. offline files and folders)<br>2. Upgrade from previous version<br>3. After migration, download a file and a folder | 2. Legacy storage is cleaned up<br>Dowloaded files moved to Scoped Storage<br>3. File and folder downloaded in Scoped Storage together with the migrated stuff| P m11 | |
| Multiaccount | 1. Attach 4 accounts<br>2. Download and set av. offline files and folders in all of them<br>3. Upgrade from previous version<br>4. Run wizard till it ends.<br>5. After migration, download a file and a folder | 3. Dowloaded files moved to Scoped Storage from all accounts<br>5. File and folder downloaded in Scoped Storage together with the migrated stuff.<br>File and folder not downloaded in legacy storage | P m11 m7 | FIXED: Files repeated in list |
| Security | Perform any migration with security (pattern, passcode or biometric) enabled | Migration is triggered after unlocking the app | P m7 m11| |
| Logs | Perform any migration after generating some logs (enable them in Settings > Logging)| Logs are moved to Scoped Storage | P m11 m7 | FIXED: Old location not removed |
| Deep structure | Perform any migration in an account that contains a deep folder structure with downloaded files inside | Dowloaded files moved to Scoped Storage, preserving the deep structure | F m7 m11 | REPETITIONS |
| **Data migration errors** |
| Not enough space - Clean | 1. In a device with limited storage, download files in legacy storage that needs more than the half of the available space<br>2. Upgrade from previous version<br>3. Run wizard till it ends, selecting "Clean" | Not enough space to keep legacy and scoped storage together. Error message? | F m7 | App crashes |
| Not enough space - Keep | 1. In a device with limited storage, download files in legacy storage that needs more than the half of the available space<br>2. Upgrade from previous version<br>3. Run wizard till it ends, selecting "Keep" | Not enough space to keep legacy and scoped storage together. Error message? | F m7 | App crashes |
| Warning | 1. In a device with limited storage, download a big file which size exceeds the device available space<br>2. Upgrade from previous version<br>3. Run wizard till it ends | A warning is displayed about limited storage. Both orientations | P m7 m11 | |
| Not enough space for a big file| 1. In a device with limited storage, download many little files in legacy storage and a very big file (5GB) that needs more than the half of the available space<br>2. Upgrade from previous version<br>3. Run wizard till it ends |Big file is not migrated, but the other small files are migrated | P m7 m11 | FIXED: App crashes |
| Not enough space | 1. In a device with limited storage, download many little files in legacy storage that all together needs more than the available spacem but individually they have space<br>2. Upgrade from previous version<br>3. Run wizard till it ends |All files are migrated with no errors | P m7 m11 | FIXED: App crashes |
| **Uploads migration** | 4 devices, different capabilities and versions  |
| Pending & running | 1. Upload a big file and some other small files<br>2. Upgrade from previous version<br>3. Run the wizard till it ends | Uploading and pending files finish to upload to the correct path<br>No debris in legacy storage<br>Correct paths in uploads view | P m7 | |
| Finished | 1. Upload some files and wait till they end<br>2. Upgrade from previous version<br>3. Run the wizard till it ends | Clean uploads view | F m7 | Finished not migrated |
| Failed | 1. Upload some files with error (by removing connection, f.ex)<br>2. Upgrade from previous version<br>3. Run the wizard till it ends | Failed uploads migrated | P m7 | |
| Pending & running | 1. Upload a big file and some other small files<br>2. Upgrade from previous version<br>3. Run the wizard till it ends | Uploading and pending files finish to upload to the correct path<br>No debris in legacy storage<br>Correct paths in uploads view | P m7 m11| Need manual trigger |
| Failed | 1. Upload some files with error (by removing connection, f.ex)<br>2. Upgrade from previous version<br>3. Run the wizard till it ends<br>4. Retry failed uplads | 3. Failed uploads are in the list<br>4. Files uploaded, and locally stored in Scoped Storage. Nothing in logacy storage | P m7 m11 | |


| | < 100MB | 1GB | 5GB | 10GB | 50GB |
|:-------------:| :----- | :-------: | :-------------: | :------: | :-------:|
| Pixel5 (12) |
| Pixel2 (11) | ~1sec (clean & keep) | ~10secs (clean)<br>~8secs (keep) | ~50secs (clean)<br> ~45secs (keep) | ~2min (clean)
| Nexus6P (7) | ~2secs (clean & keep) | ~30secs (clean)<br>~25secs (keep) | 3GB<br> ~1min30secs(clean)<br>~1min15secs(keep)
| Huawei P8 (6) | ~3sec (clean)<br>~2sec (keep) | ~50secs (clean)<br>~1min (keep)
| | < 100MB | 1GB | 5GB | 10GB |
|:-------------:| :----- | :-------: | :-------------: | :------: |
| Pixel2 (11) | ~1sec | ~15secs | ~50secs | ~1min40secs
| Nexus6P (7) | ~2secs | ~30secs | 3GB<br> ~1min15secs
| Huawei P8 (6) | ~3sec | ~1min

0 comments on commit b82b9fd

Please sign in to comment.