GNOME Bugzilla – Bug 686175
"last-played-time" declared as string, instead of date-time
Last modified: 2015-08-25 16:33:27 UTC
The "last-played-time" metadata key describes the "last time the media was played". Therefore it should by of type GDateTime, instead of a string. How can we fix without breaking apps?
As I don't want to break the API at this moment, this is my proposal: - Keep the key as it is: we deal it as a string. - Write a patch for moving from string to GDateTime and commit it in a branch (like 0.3.x). - As soon as we release a new version that breaks our current API (new 0.3.0 release), we merge all the commits in 0.3.x branch. This way we track a list of patches that will be applied in new API version without breaking our current API.
Or add a new "last-played-date" property, make the old one be a proxy to the real one, and add deprecation notice to "last-played-time".
Created attachment 291650 [details] [review] core: Change "last-played-time" type to GDateTime Instead of a string.
Created attachment 291652 [details] [review] metadata-store: Update for last-played type change
Created attachment 291653 [details] [review] tracker: Update for last-played type change
Created attachment 309976 [details] [review] core: Change "last-played-time" type to GDateTime Instead of a string.
Attachment 291652 [details] pushed as 3ae4ffd - metadata-store: Update for last-played type change Attachment 291653 [details] pushed as 59d8033 - tracker: Update for last-played type change
Attachment 309976 [details] pushed as 444b2d9 - core: Change "last-played-time" type to GDateTime