Closed Bug 679133 Opened 13 years ago Closed 13 years ago

Initial history is not correctly synced

Categories

(Pancake Graveyard :: Add-On, defect)

x86
macOS
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: st3fan, Assigned: mzhilyaev)

Details

(Whiteboard: [qa^])

Attachments

(2 files)

The problem was that instead of guids and visititemids, an array index was pushed on the changedGuids dictionary. The attached patch queries for the last history items for the last 2 months and pushes guid/visititemid on the changedGuids dict. The result of the query is grouped by guid so that multiple visits for the same item are correctly merged into one.
Looks good, except that we should use a pref for the number of months we can go back in history.
Attachment #553497 - Flags: review?(fabrice)
Comment on attachment 553497 [details] [diff] [review]
Better patch that actually works correctly

Review of attachment 553497 [details] [diff] [review]:
-----------------------------------------------------------------

Looks fine, but we must not hard code the number of months we go back.
Attachment #553497 - Flags: review?(fabrice) → review-
Severity: normal → blocker
Assignee: fabrice → maksik
Assignee: maksik → mzhilyaev
I believe the current version of addon behaves correctly.  If the user data is lost the BE server sends "reset-request" in which case addon a) sends reset request to the server, and b) moves last-get-data-date to 0 which re-starts sending data to the server from the beginning of time.

I suggest marking this bug as designed (WONTFIX)

IFF there's a specific feature request to allow user to specify how much data (or how far back in history) addon may collect, this should be tracked under a separate bug filed as enhancement request.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: