Closed Bug 878303 Opened 12 years ago Closed 12 years ago

Implement and use DISCRETE_COUNTED type

Categories

(Firefox Health Report Graveyard :: Client: Android, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox23 fixed)

RESOLVED FIXED
Firefox 24
Tracking Status
firefox23 --- fixed

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

Attachments

(2 files)

We currently record searches as discrete strings within named fields: "bartext": [ "google", "google", "amazon" ] I intended to roll these up into counts: "bartext": { "google": 2, "amazon": 1 } This bug will do exactly that. And I might morph it to include any data type I need for sessions, too.
Attachment #756835 - Flags: review?(nalexander)
Attached patch Part 2. v1Splinter Review
Attachment #756836 - Flags: review?(nalexander)
Blocks: 868442
Depends on: 873496
Nick and I discussed that we likely also want to implement DAILY_LAST_DISCRETE, which operates as a combination of DAILY_LAST (one value per day, updated if a new one arrives) and DISCRETE (multiple values per day) -- like a DAILY_LAST with dynamic field names. This would allow a provider to record multiple values in a day, updating individual values if they change -- for example, to record that a session completed.
Comment on attachment 756836 [details] [diff] [review] Part 2. v1 Review of attachment 756836 [details] [diff] [review]: ----------------------------------------------------------------- wfm. ::: mobile/android/base/health/BrowserHealthRecorder.java @@ +583,5 @@ > // We're not using a counter, because the set of engine > // identifiers is potentially unbounded, and thus our > // measurement version would have to keep growing as > + // fields changed. Instead we store discrete values, and > + // accrete them into a counting map during processing. Again, I feel like this should be "accumulate". But you've been consistent with "accrete" which suggests a reason. Enlighten me.
Attachment #756836 - Flags: review?(nalexander) → review+
Comment on attachment 756835 [details] [diff] [review] Part 1 (from Git) v1 Review of attachment 756835 [details] [diff] [review]: ----------------------------------------------------------------- Reviewed on github at https://github.com/mozilla-services/android-sync/pull/314.
Attachment #756835 - Flags: review?(nalexander) → review+
(In reply to Nick Alexander :nalexander from comment #5) > Again, I feel like this should be "accumulate". But you've been consistent > with "accrete" which suggests a reason. Enlighten me. I just like words! In the util lib I used "accrue", and here I used "accrete". Changed to be more boring ;)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services]
Comment on attachment 756835 [details] [diff] [review] Part 1 (from Git) v1 [Approval Request Comment] Bug caused by (feature/regressing bug #): New work. User impact if declined: Incorrect search reporting => no FHR. Testing completed (on m-c, etc.): Baking for a while on m-c. Extensive manual testing. Risk to taking this patch (and alternatives if risky): Slim (no DB upgrade if everything lands at once). String or IDL/UUID changes made by this patch: None.
Attachment #756835 - Flags: approval-mozilla-aurora?
Attachment #756836 - Flags: approval-mozilla-aurora?
Comment on attachment 756835 [details] [diff] [review] Part 1 (from Git) v1 Approving as part of the body of work needed for FHR on FF23 Android.
Attachment #756835 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment on attachment 756836 [details] [diff] [review] Part 2. v1 Approving as part of the body of work needed for FHR on FF23 Android.
Attachment #756836 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: