After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790819 - Change sync timestamps to integers
Change sync timestamps to integers
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Sync
3.26.x
Other Linux
: Normal normal
: ---
Assigned To: Gabriel Ivașcu
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-11-25 12:35 UTC by Gabriel Ivașcu
Modified: 2018-01-31 19:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sync: Migrate timestamps to gint64 (39.89 KB, patch)
2017-11-28 21:27 UTC, Gabriel Ivașcu
committed Details | Review

Description Gabriel Ivașcu 2017-11-25 12:35:03 UTC
Should've done this from the beginning, there is no much point to have timestamps as doubles.
Comment 1 Gabriel Ivașcu 2017-11-28 21:27:07 UTC
Created attachment 364592 [details] [review]
sync: Migrate timestamps to gint64
Comment 2 Michael Catanzaro 2017-12-11 00:32:31 UTC
Review of attachment 364592 [details] [review]:

Looks like I missed this, sorry. I haven't looked over it closely, but it looks sane.
Comment 3 Michael Catanzaro 2017-12-12 02:37:19 UTC
I trust that, before deciding to backport this, you've considered the risk of breaking something right before releasing 3.26.4 (which only you can assess), relative to the cost of having separate data types for timestamps between gnome-3-26 and master (which I suppose is probably a fairly high cost).
Comment 4 Gabriel Ivașcu 2017-12-12 19:53:31 UTC
This patch changes the format string of the GVariant used to load/save bookmarks to file. So applying it only on master, and not on gnome-3-26 too, would be problematic when you run Ephy on gnome-3-26 after you've run it on master and the migration happened, because bookmarks won't be loaded: GLib-CRITICAL **: 21:28:49.317: the GVariant format string '(x&s&sdbas)' has a type of '(xssdbas)' but the given value has a type of '(xssxbas)'. Since we switch often between running Ephy from master and from 3.26, that's why I wanted this to land in both of them at the same time.

Moreover, I don't see anything that can get broken by this change, sync and all other components should work the same, so I'd say that we're safe to do it.
Comment 5 Gabriel Ivașcu 2017-12-12 20:15:12 UTC
Attachment 364592 [details] pushed as 89a3e1e - sync: Migrate timestamps to gint64
Comment 6 Michael Catanzaro 2018-01-31 19:05:29 UTC
(In reply to Gabriel Ivașcu from comment #4)
> This patch changes the format string of the GVariant used to load/save
> bookmarks to file. So applying it only on master, and not on gnome-3-26 too,
> would be problematic when you run Ephy on gnome-3-26 after you've run it on
> master and the migration happened, because bookmarks won't be loaded:
> GLib-CRITICAL **: 21:28:49.317: the GVariant format string '(x&s&sdbas)' has
> a type of '(xssdbas)' but the given value has a type of '(xssxbas)'. Since
> we switch often between running Ephy from master and from 3.26, that's why I
> wanted this to land in both of them at the same time.
> 
> Moreover, I don't see anything that can get broken by this change, sync and
> all other components should work the same, so I'd say that we're safe to do
> it.

It caused bug #792683, which has resulted in at least two users losing all their bookmarks. Lesson learned....