Closed Bug 540647 Opened 15 years ago Closed 15 years ago

User can submit empty Jetpack reviews

Categories

(Websites Graveyard :: jetpackgallery.mozillalabs.com, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: ryansnyder)

References

()

Details

steps to reproduce: 1.log into your Jetpack account 2.Navigate to the detail page for any Jetpack which has no reviews. 3.Click on Review this Jetpack 4.Click Submit button without entering any value in any field. 5.Notice the success message observed behavior: There is a success message for adding a review,but the <number_of_reviews> link at the bottom still says-"This jetpack has not yet been reviewed. Be the first to add a review." User should not be able to enter empty reviews.At least we should consider Summary and rating compulsory for all Jetpack reviews. Screencast:http://screencast.com/t/Njk5ZGUx
Changed the message to say that the user successfully voted for the Jetpack. == Sending application/controllers/jetpacks.php Sending application/i18n/en_US/jetpacks.php Transmitting file data .. Committed revision r61019.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
user can submit empty(without review/rating) and the user message says "you have voted..." reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Oops. Didn't catch that possibility. Fixed. == Sending application/controllers/jetpacks.php Transmitting file data . Committed revision r61040.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
I still don't see this fixed.Am I missing something? screencast:http://screencast.com/t/NmUxNWUzO
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
In this scenario, the user has already voted for the Jetpack once. When the user visits the Review page, the Thumbs Up / Thumbs Down button is selected automatically for the user once they visit that screen. If the user does not touch any of the fields, the submit form acts as if the Thumbs Up / Thumbs Down button was selected and records that vote (which in this case overrides the user's previous vote). If we change this, to only declare that the user has successfully voted after selecting that button, then it screws up the Thumbs Up / Thumbs down vote on the Jetpack page itself. If the user has already voted once, when they click the Thumb icon, it would tell the user that they must fill in a field on the jetpack review page... I'll look into separating the 2 voting processes to fix this error.
Ok. I think we're golden now. Crossing fingers. == Sending application/config/routes.php Sending application/controllers/jetpacks.php Sending application/views/jetpacks/jetpacks_browse.php Sending application/views/jetpacks/jetpacks_view.php Transmitting file data .... Committed revision r61113.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
yep..works fine now.Verified.
Status: RESOLVED → VERIFIED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.