Merge lp://qastaging/~stolowski/unity-scope-home/preview-click-events into lp://qastaging/unity-scope-home

Proposed by Paweł Stołowski
Status: Merged
Approved by: Michal Hruby
Approved revision: 181
Merged at revision: 177
Proposed branch: lp://qastaging/~stolowski/unity-scope-home/preview-click-events
Merge into: lp://qastaging/unity-scope-home
Diff against target: 294 lines (+137/-9)
9 files modified
configure.ac (+2/-2)
debian/control (+1/-1)
src/scope.vala (+14/-3)
src/smart-scopes-interface.vala (+2/-0)
src/smart-scopes-metrics.vala (+3/-0)
src/smart-scopes-preview-parser.vala (+6/-1)
src/smart-scopes-search.vala (+3/-0)
tests/unit/test-home-scope.vala (+63/-2)
tests/unit/test-utils.vala (+43/-0)
To merge this branch: bzr merge lp://qastaging/~stolowski/unity-scope-home/preview-click-events
Reviewer Review Type Date Requested Status
Michal Hruby (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+192668@code.qastaging.launchpad.net

Commit message

Collect click metrics for preview actions.

Description of the change

Collect click metrics for preview actions. Requires latest libunity 7.1.3.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michal Hruby (mhr3) wrote :

Looks alright, but...

183 + // FIXME: I wish there was a better way of doing this... small delay to give fake server a chance to write metrics
184 + Posix.sleep (2);
190 + var stream = FileStream.open (FEEDBACK_FILE, "r");

... relying on a different process to write a file, sleeping and reading the file later is a recipe for testing disaster. Let's get rid of that and instead check that the metrics event was submitted - that way it'll be kept local to the process. After all we're not testing the fake server's capability to write files.

review: Needs Fixing
180. By Paweł Stołowski

Don't parse feedback.dump, added an event_signal instead and monitor it in the test.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
181. By Paweł Stołowski

Renamed event_added to metrics_event_added in the SmartScopeClientInterface to improve readability.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michal Hruby (mhr3) wrote :

Looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: