-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add creationTime to offline assets #2406
Add creationTime to offline assets #2406
Conversation
I'm going to put this on hold until we complete #1339, in which I am changing the offline structure in more severe ways. After that, we can add creationTime to the new format and back-fill NaN or something for existing stored content. |
@avelad, the changes I had planned in the manifest are now complete. Can you please rebase and let me know when it's ready for another review? |
@@ -73,6 +73,7 @@ shaka.offline.indexeddb.V1StorageCell = class | |||
const V1StorageCell = shaka.offline.indexeddb.V1StorageCell; | |||
|
|||
return { | |||
creationTime: old.creationTime || 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't exist in the old format, so you can just fill in 0 or NaN. After you rebase, you'll need this in v2_storage_cell as well. We've moved to a new database format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed! Thanks!
@joeyparrish It's ready to review again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!
All tests passed! |
No description provided.