Skip to content

Add creationTime to offline assets#2406

Merged
joeyparrish merged 4 commits intoshaka-project:masterfrom
avelad:offline-creationtime
Apr 10, 2020
Merged

Add creationTime to offline assets#2406
joeyparrish merged 4 commits intoshaka-project:masterfrom
avelad:offline-creationtime

Conversation

@avelad
Copy link
Member

@avelad avelad commented Feb 20, 2020

No description provided.

@joeyparrish
Copy link
Member

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.

@joeyparrish joeyparrish self-assigned this Feb 21, 2020
@joeyparrish joeyparrish added the type: enhancement New feature or request label Feb 21, 2020
@joeyparrish joeyparrish added this to the v2.6 milestone Feb 21, 2020
@joeyparrish
Copy link
Member

@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?

const V1StorageCell = shaka.offline.indexeddb.V1StorageCell;

return {
creationTime: old.creationTime || 0,
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed! Thanks!

@avelad
Copy link
Member Author

avelad commented Apr 10, 2020

@joeyparrish It's ready to review again!

@avelad avelad requested a review from joeyparrish April 10, 2020 12:06
Copy link
Member

@joeyparrish joeyparrish left a 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!

@shaka-bot
Copy link
Collaborator

All tests passed!

@joeyparrish joeyparrish merged commit 2807971 into shaka-project:master Apr 10, 2020
@avelad avelad deleted the offline-creationtime branch April 13, 2020 06:01
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

status: archived Archived and locked; will not be updated type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants