Merge lp:~gary-lasker/software-center/recommender-feedback-viewed into lp:software-center
Proposed by
Gary Lasker
Status: | Merged |
---|---|
Merged at revision: | 3165 |
Proposed branch: | lp:~gary-lasker/software-center/recommender-feedback-viewed |
Merge into: | lp:software-center |
Diff against target: |
84 lines (+40/-2) 3 files modified
softwarecenter/enums.py (+1/-0) softwarecenter/ui/gtk3/widgets/recommendations.py (+13/-2) tests/gtk3/test_catview.py (+26/-0) |
To merge this branch: | bzr merge lp:~gary-lasker/software-center/recommender-feedback-viewed |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
software-store-developers | Pending | ||
Review via email: mp+123670@code.launchpad.net |
Commit message
* lp:~gary-lasker/software-center/recommender-feedback-viewed:
- augment the recommendations feedback to indicate when a
recommended item has been selected (LP: #1044107)
Description of the change
This branch augments the implicit recommender feature (bug 1044107) by making a call to the recommender service when a recommended item is viewed, rather than only after a successful install. This was added in response to a request from the server team. A unit test for the new call is included.
Many thanks for your review!
To post a comment you must log in.
Thanks, that looks good and its great that this could get added quickly (and I like the test!).
Unfortunately the test fails for me with: test_catview. py Recommendations TestCase ======= ======= ======= ======= ======= ======= ======= ======= ======= recommender_ feedback_ on_item_ viewed (__main_ _.Recommendatio nsTestCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- gtk3/test_ catview. py", line 276, in test_implicit_ recommender_ feedback_ on_item_ viewed _populate_ recommended_ for_you_ panel() sTestCase' object has no attribute '_populate_ recommended_ for_you_ panel'
$ PYTHONPATH=. python tests/gtk3/
...
=======
ERROR: test_implicit_
-------
Traceback (most recent call last):
File "tests/
self.
AttributeError: 'Recommendation
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= d_for_you_ spinner_ display (__main_ _.Recommendatio nsTestCase) ------- ------- ------- ------- ------- ------- ------- ------- ------- gtk3/test_ catview. py", line 162, in test_recommende d_for_you_ spinner_ display rec_panel. recommended_ for_you_ content. get_property( "visible" ))
FAIL: test_recommende
-------
Traceback (most recent call last):
File "tests/
self.
AssertionError: False is not true
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 10 tests in 20.199s
One of the failures is probably releated to the lp:~gary-lasker/software-center/recommender-test-fix that I merged earlier and trivial to update. I have no idea about the other one, but it could be something that
is simply a side effect of the first.
When this branch needs to get touched anyway it would be nice to add a small comment to "on_application _activated" like "# send viewed items to the recommender in addition to installed ones" or similar. For a moment I was confused when looking at the code as it looks similar to the part in _on_transaction _finished (i.e. the difference of the two blocks is only visible when looking at the last part that has either "RecommenderFee dbackActions. INSTALLED" or RecommenderFeed backActions. VIEWED) . Or maybe extracting it into a common function?