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)
Tracking
(firefox23 fixed)
RESOLVED
FIXED
Firefox 24
Tracking | Status | |
---|---|---|
firefox23 | --- | fixed |
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
Attachments
(2 files)
7.64 KB,
patch
|
nalexander
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
2.18 KB,
patch
|
nalexander
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #756835 -
Flags: review?(nalexander)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #756836 -
Flags: review?(nalexander)
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 4•12 years ago
|
||
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 5•12 years ago
|
||
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 6•12 years ago
|
||
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+
Assignee | ||
Comment 7•12 years ago
|
||
(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 ;)
Assignee | ||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/services/services-central/rev/a31f790f0681
https://hg.mozilla.org/services/services-central/rev/5ccd0592e074
Will land in inbound when the tree reopens.
Whiteboard: [fixed in services]
Assignee | ||
Comment 9•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/88b09f11a45a
https://hg.mozilla.org/integration/mozilla-inbound/rev/c6e087e836f9
Target Milestone: --- → Firefox 24
Comment 10•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/88b09f11a45a
https://hg.mozilla.org/mozilla-central/rev/c6e087e836f9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services]
Assignee | ||
Comment 11•12 years ago
|
||
Assignee | ||
Comment 12•12 years ago
|
||
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?
Assignee | ||
Updated•12 years ago
|
Attachment #756836 -
Flags: approval-mozilla-aurora?
Comment 13•12 years ago
|
||
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 14•12 years ago
|
||
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+
Assignee | ||
Comment 15•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
status-firefox23:
--- → fixed
Updated•7 years ago
|
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•