-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INV-3630] cache download stops in progress, start emancipating from …
…Redux State (#3782) * Correct type mismatch for cached Geojson that didn't throw error * re-introduce Cache metadata in [localForage] Database * Add cancel prompt for when Downloads in Progress * Unhook deleteCache from Redux State idLists to Db stored cachedIds * set 'cachedSet' in top level download function * more tightly assign types in RecordSet.requestCaching * Modify getBoundingBoxFromRecordsetFilters to work when filters is null * Do not fire Error alert if we terminated early * remove Destructuring of recordset, add cache abort flow (else condition) * consume errors in deleteCachedRecordsFromId function, add boolean return to download functions * make function names 'repository' centric for consistency, add delete method * Modify downloads to handle early exits * add status check on last recordSet + intervals * Reduce logic in deleteCache thunk, move into relevant class method * Handle Orphan records when downloaded stopped early * Add SQLite commands, cause repo clear if downloading and user selects delete * Move business logic out of 'requestCaching' thunk and into Class * Remove unused import
- Loading branch information
1 parent
7c9f80c
commit be1e340
Showing
13 changed files
with
449 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.