Can't edit reviews
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ratings and Reviews server |
High
|
Fabián Ezequiel Gallina | ||
| | ubuntuone-credentials (Ubuntu) |
High
|
Paweł Stołowski | ||
| | unity-scope-click (Ubuntu) |
High
|
Paweł Stołowski | ||
| | Vivid |
Undecided
|
Unassigned | ||
| | unity8 (Ubuntu) |
High
|
Albert Astals Cid | ||
| | Vivid |
Undecided
|
Unassigned | ||
Bug Description
It seems impossible to edit reviews at the moment. I get the review entry even though I reviewed already and I'm allowed to send another review, which actually gets lost somewhere.
I imagine we want to limit the number of reviews to 1 per U1 account, but it should be possible to send a new/modified one. Maybe the review entry should be pre-filled with the previous review so it's obvious you can edit?
Related branches
- Natalia Bidart: Approve on 2015-03-10
-
Diff: 343 lines (+173/-15)7 files modifiedsrc/clickreviews/api/handlers.py (+17/-1)
src/clickreviews/api/urls.py (+3/-0)
src/clickreviews/forms.py (+22/-0)
src/clickreviews/models.py (+8/-2)
src/clickreviews/tests/test_forms.py (+60/-0)
src/clickreviews/tests/test_handlers.py (+45/-12)
src/clickreviews/tests/test_models.py (+18/-0)
- Matias Bordese: Approve on 2015-03-10
-
Diff: 117 lines (+48/-7)4 files modifiedsrc/clickreviews/api/handlers.py (+4/-5)
src/clickreviews/models.py (+11/-2)
src/clickreviews/tests/test_handlers.py (+11/-0)
src/clickreviews/tests/test_models.py (+22/-0)
- Matias Bordese: Approve on 2015-03-10
-
Diff: 119 lines (+69/-1)4 files modifiedsrc/clickreviews/api/handlers.py (+8/-1)
src/clickreviews/models.py (+7/-0)
src/clickreviews/tests/test_handlers.py (+38/-0)
src/clickreviews/tests/test_models.py (+16/-0)
- dobey (community): Approve on 2015-06-01
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-05-27
-
Diff: 97 lines (+34/-1)6 files modifiedCMakeLists.txt (+1/-1)
debian/changelog (+6/-0)
debian/libubuntuoneauth-2.0-0.symbols (+1/-0)
libubuntuoneauth/tests/test_token.cpp (+14/-0)
libubuntuoneauth/token.cpp (+10/-0)
libubuntuoneauth/token.h (+2/-0)
- Andrea Cimitan (community): Approve on 2015-05-12
- Paweł Stołowski: Approve on 2015-05-11
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-05-11
-
Diff: 352 lines (+246/-46)7 files modifiedqml/Dash/Previews/PreviewRatingDisplay.qml (+11/-46)
qml/Dash/Previews/PreviewRatingEdit.qml (+80/-0)
qml/Dash/Previews/PreviewRatingInput.qml (+3/-0)
qml/Dash/Previews/PreviewRatingSingleDisplay.qml (+70/-0)
qml/Dash/Previews/PreviewWidgetFactory.qml (+1/-0)
tests/qmltests/CMakeLists.txt (+1/-0)
tests/qmltests/Dash/Previews/tst_PreviewRatingEdit.qml (+80/-0)
- dobey (community): Approve on 2015-06-02
- Alejandro J. Cura (community): Approve on 2015-05-29
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-05-29
-
Diff: 447 lines (+260/-20)8 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
libclickscope/click/preview.cpp (+81/-15)
libclickscope/click/preview.h (+1/-0)
libclickscope/click/reviews.cpp (+52/-0)
libclickscope/click/reviews.h (+5/-2)
libclickscope/tests/test_reviews.cpp (+117/-0)
scope/clickapps/apps-scope.cpp (+2/-1)
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-05-18
- Alejandro J. Cura (community): Approve on 2015-05-15
-
Diff: 455 lines (+261/-20)8 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
libclickscope/click/preview.cpp (+82/-15)
libclickscope/click/preview.h (+1/-0)
libclickscope/click/reviews.cpp (+52/-0)
libclickscope/click/reviews.h (+5/-2)
libclickscope/tests/test_reviews.cpp (+117/-0)
scope/clickapps/apps-scope.cpp (+2/-1)
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-05-11
- Unity Team: Pending requested 2015-05-11
-
Diff: 374 lines (+187/-20)8 files modifiedCMakeLists.txt (+1/-1)
debian/control (+1/-1)
libclickscope/click/preview.cpp (+82/-15)
libclickscope/click/preview.h (+1/-0)
libclickscope/click/reviews.cpp (+52/-0)
libclickscope/click/reviews.h (+5/-2)
libclickscope/tests/test_reviews.cpp (+43/-0)
scope/clickapps/apps-scope.cpp (+2/-1)
- PS Jenkins bot: Approve (continuous-integration) on 2015-05-15
- dobey (community): Approve on 2015-05-11
-
Diff: 97 lines (+34/-1)6 files modifiedCMakeLists.txt (+1/-1)
debian/changelog (+6/-0)
debian/libubuntuoneauth-2.0-0.symbols (+1/-0)
libubuntuoneauth/tests/test_token.cpp (+14/-0)
libubuntuoneauth/token.cpp (+10/-0)
libubuntuoneauth/token.h (+2/-0)
| affects: | software-center-agent → rnr-server |
| Michael Nelson (michael.nelson) wrote : | #1 |
| Changed in rnr-server: | |
| status: | New → Triaged |
| importance: | Undecided → High |
| Changed in rnr-server: | |
| assignee: | nobody → Fabián Ezequiel Gallina (fgallina) |
| no longer affects: | ubuntu-ux |
| Changed in unity-scope-click (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in rnr-server: | |
| status: | Triaged → Fix Committed |
| Alejandro J. Cura (alecu) wrote : | #2 |
Here are the relevant bits in the spec: https:/
| Changed in rnr-server: | |
| status: | Fix Committed → Fix Released |
| Leo Arias (elopio) wrote : | #3 |
Alecu, I think this story needs an user acceptance test:
Install a click package [1]
Open the store scope
Search for the installed app.
Open the preview.
Select 3 stars.
Write a review: "test review"
Click send.
Select 4 stars.
Edit the review: "test review edited"
Click send.
Assert that the review was edited.
I think the other details of the story can be tested with lower level tests.
Let us know if you need a hand getting started with the high level test.
[1] This can be done behind the UI, like in https:/
| Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in unity-scope-click (Ubuntu): | |
| status: | New → Confirmed |
| Changed in unity-scope-click (Ubuntu): | |
| assignee: | nobody → Pawel Stolowski (stolowski) |
| Changed in unity-scope-click (Ubuntu): | |
| importance: | Medium → High |
| Changed in unity8 (Ubuntu): | |
| importance: | Undecided → High |
| Changed in unity-scope-click (Ubuntu): | |
| status: | Confirmed → In Progress |
| Changed in unity8 (Ubuntu): | |
| assignee: | nobody → Albert Astals Cid (aacid) |
| Changed in unity8 (Ubuntu): | |
| status: | New → In Progress |
| Changed in ubuntuone-credentials (Ubuntu): | |
| status: | New → Confirmed |
| Changed in ubuntuone-credentials (Ubuntu): | |
| assignee: | nobody → Pawel Stolowski (stolowski) |
| status: | Confirmed → In Progress |
| importance: | Undecided → High |
| Launchpad Janitor (janitor) wrote : | #6 |
This bug was fixed in the package unity8 - 8.02+15.
---------------
unity8 (8.02+15.
[ Albert Astals Cid ]
* Add overrides to override functions
* Implement "rating-edit" preview widget (LP: #1318144)
* Make the DashContent:
#1450809)
* Use art height as implicitHeight when the header is overlayed and
there's no summary
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.
[ Daniel d'Andrada ]
* Introducing FloatingFlickable
* Make Ubuntu.Gestures components install TouchRegistry by themselves
[ Michael Terry ]
* Fix a possible crash in our PAM threading code. (LP: #1425362) (LP:
#1425362)
* Fix the lockscreen becoming unresponsive after testing an app on the
device from QtCreator. (LP: #1435364)
[ Nick Dedekind ]
* Fixed desktop stage app focus.
* Fixed issue in laggy indicator autpilot tests (LP: #1446846)
-- CI Train Bot <email address hidden> Mon, 18 May 2015 23:04:39 +0000
| Changed in unity8 (Ubuntu): | |
| status: | In Progress → Fix Released |
| Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package unity-scope-click - 0.1.1+15.
---------------
unity-scope-click (0.1.1+
[ Alejandro J. Cura ]
* Show the "Refund" button and call the pay-service when clicked
[ CI Train Bot ]
* New rebuild forced.
[ Michael Terry ]
* Add a missing iostream include.
[ Pawel Stolowski ]
* Support for review editing. (LP: #1318144)
[ Rodney Dawes ]
* Finish remaining integration of refunds support in click scope.
* Remove the g++-4.9 explicit dependency to prepare for gcc5
migration. (LP: #1452343)
-- CI Train Bot <email address hidden> Wed, 17 Jun 2015 16:59:27 +0000
| Changed in unity-scope-click (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in ubuntuone-credentials (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in unity-scope-click (Ubuntu Vivid): | |
| status: | New → Fix Released |
| Changed in unity8 (Ubuntu Vivid): | |
| status: | New → Fix Released |

The reviews server doesn't (didn't last time I checked [1]) allow a second review for the same user, returning a 400 not allowed [2].
The other aspect is exactly right - the click reviews server only allows creating reviews right now. It's trivial to move the other functionality across from the older deb-reviews app, but we'd like to do that as it's needed. So checking what's there, I assume the things we'll want right now are:
* edit review (PUT to the review resource)
* delete review (DELETE to the review resource, but doesn't delete from the db, just filters out)
Things that we may need soon (and which are easy enough to do at the same time on the server):
* flag a review
* mark a review as useful
* include review 'usefulness' on the review resource uri
* Add a hal+json format for appropriate accept header (for consistency with other apis)
[1] See the example at the bottom returning a 400 with the error "A user cannot create multiple reviews for an app." https:/ /wiki.ubuntu. com/AppStore/ Interfaces/ RatingsAndRevie ws