-
Notifications
You must be signed in to change notification settings - Fork 972
Conversation
repeats of a location/tabId pair should result in a `revisitP=true` call to `synopsis.addPublisher` so the `visits` counter is not incremented. auditor: @diracdeltas
@@ -470,7 +470,8 @@ var updatePublisherInfo = () => { | |||
var entries = [] | |||
|
|||
underscore.keys(publishers[publisher]).forEach((location) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can just do underscore.each(publishers, ...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, no... because in the function i need access to both the key and value, not just the value...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both key and value are accessible http://underscorejs.org/#each
please include a test plan in the commit message |
i will add a test plan. i had a brief conversation with @bridiver about this... |
the eventStore changes look good to me. Discussed the definition of a visit with @mrose17 and that sounds ok too. @diracdeltas I think you are in a better position than I am to review the ledger code. |
Fixes #3830
test plan:
open two windows. in one window, put the payments pane; in the other two tabs on the same publisher but different URLs. observer the visits and duration counts in the first window and then switch back and forth between tabs (waiting one or two minutes between each switch). the visits should stay constant and the duration should increase.