If the user clears their video cache before uploading to the server, they will lose their pending upload status for all of those videos, so when they load up the app again, it will appear that all of their videos are uploaded.
I imagine the best thing to do is add code in VideoCacheRecord.loadFromDb and VideoCacheRecord.saveToDB that looks for isSlttAppContext() and if so, requests the backend to retrieve or store the VideoCacheRecord information, especially for uploadeds, which is what is used for determining pending uploads.
The sltt-pwa currently puts those records under IndexedDB > VideoCache > cachedVideos
Whereas, our sltt-app stores all the blobs under persistentStorage > VideoCache > {Project folders / blobs}
So either we could store an sltt-vcr file under the same directory and location with its blobs,
persitentStorage > VideoCache > TESTnm/210629_180535/230323_110551/240621_050000-7.sltt-vcr
or we could save that under a separate parent directory under persitentStorage > VideoCacheRecords
Since the blobs storage structure under VideoCache closely match what's in s3, one could argue that having a separate parent directory could help us more easily compare/sync with s3 if needed. But it may be more convenient otherwise to store it with the blobs
If the user clears their video cache before uploading to the server, they will lose their pending upload status for all of those videos, so when they load up the app again, it will appear that all of their videos are uploaded.
See https://signlanguaget-nfl9249.slack.com/archives/C060KJK697C/p1719517967401299
I imagine the best thing to do is add code in VideoCacheRecord.loadFromDb and VideoCacheRecord.saveToDB that looks for isSlttAppContext() and if so, requests the backend to retrieve or store the VideoCacheRecord information, especially for uploadeds, which is what is used for determining pending uploads.
The sltt-pwa currently puts those records under IndexedDB > VideoCache > cachedVideos
Whereas, our sltt-app stores all the blobs under persistentStorage > VideoCache > {Project folders / blobs}
So either we could store an sltt-vcr file under the same directory and location with its blobs, persitentStorage > VideoCache >
TESTnm/210629_180535/230323_110551/240621_050000-7.sltt-vcr
or we could save that under a separate parent directory under persitentStorage >VideoCacheRecords
Since the blobs storage structure under VideoCache closely match what's in s3, one could argue that having a separate parent directory could help us more easily compare/sync with s3 if needed. But it may be more convenient otherwise to store it with the blobs