Add last changed timestamp to metadata - #2482
Open
DavidMStraub wants to merge 1 commit into
Open
Conversation
Member
Author
|
To clarify: the timestamp is set exactly in the same instances as the |
Member
|
@DavidMStraub master will become Gramps 6.2; Gramps 6.1 is maintenance/gramps61 and is only excepting bug fixes. |
Member
Author
|
Thanks for the heads up. It would be great if somebody could bring the 6.1 and 6.2 roadmaps up to date. They are still skeletons. |
DavidMStraub
force-pushed
the
last_changed_timestamp_metadata
branch
from
July 27, 2026 17:51
08067bc to
430c666
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(Feature PR against 6.2 branch.)
This PR adds a single new metadata entry, namely a last change timestamp.
Currently, the file modification date of the empty file
meta_data.dbin the database directory is used for this purpose. Gramps Web API's undo transaction log relies heavily on this timestamp.Storing the timestamp in the database instead is much more robust.
This would allow the Gramps Web Sync addon to rely on it, too, making time-based sync more reliable.
A database migration is not needed as this change is backward compatible.
Note that the timestamp is stored as float for higher accuracy, not as int as the object change column. Consequently, it is guaranteed to always be larger than the largest change timestamp in the database.