6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12175] Add modification sequence support to Horde_History
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__.._.. .. . _/ [__] | |\/||\ | ./__.| |_|_| || \|
Comment
> First draft of needed changes: > ----------------------------------- > - Add sequence (=monotonic counter) support to Horde_DB. > > sqlite and MySQL don't support sequences, an example for > race-free emulation can be found in pear's DB package. > > If this is too much effort, we can implement it in Horde_History > using one extra table with a primary key and use the last insert id > as sequence number. The added row is immediately deleted again > after the insert. > That's how the emulation works anyway. Probably go this route. > > - Add a new unsigned integer row "history_seq" to 'horde_histories' table. > Every manipulation of a history entry increases this value. > > - Horde_History > - New API call: function getbySequenceId($cmp, $seq, array > $filters = array(), $parent = null) > - Each Horde_History_Log entry has a new field 'seq' > - Adapt getActionTimestamp() to check the sequence number > if the multiple entries for a guid have the same timestamp > > - Extend the API of the following applications: > - mnemo > - nag > - kronolith > - turba > > API::getChanges($start, $end) > --> API::getChanges($start, $end, $ts_is_sequence=false) > > API::listBy($action, $timestamp, $notepad = NULL, $end = NULL) > --> API::listBy($action, $timestamp, $notepad = NULL, $end = > NULL, $ts_is_sequence=false) > > - Adapt ActiveSync code > - Store last seen sequence number for each device > - Use new API::getChanges($last_seen_seq, null, true) API > to collect the changes on the server > > - Provide db update scripts > - Unit tests for new Horde_History sequence code > ----------------------------------- > > Let me know what you think. I'll be gone now till Monday. >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers