Opened 4 years ago
Closed 4 years ago
#5752 closed defect (bug) (fixed)
Zero star rating on plugins details page (in WP, not web)
Reported by: | zodiac1978 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | needs-patch |
Cc: |
Description
After clicking on the details link from the Yoast plugin in the plugin list table I get a strange behavior. Below the know 1 to 5 star rating there is an additional line with "0 stars", linking to https://wordpress.org/support/plugin/wordpress-seo/reviews/?filter=0
The link just shows all reviews.
On the web page it does not show this behavior:
https://de.wordpress.org/plugins/wordpress-seo/
Attachments (1)
Change History (3)
#1
@
4 years ago
@clorith already had some ideas how this happens:
That's very likely that weirdness where stars disappeared when something got flagged, so it has 0 as Metadata, I think it was fixed, but might have been a cache in validation kicked up some dust there
Might be worth a meta ticket, since that's on the api side, and not the direct functions dotorg uses to look up ratings (dotorg got better at handling separations and missing data, and I have a suspicion the same enhancements never made it to the api)
#2
@
4 years ago
- Resolution set to fixed
- Status changed from new to closed
In this case, the issue is that a review from 2012 quite literally had 0 stars recorded against it.
I've fixed up that review and the UI should show correctly within a few hours.
To protect against this for other plugins (The ratings table has some bad data for 2012-2015 it seems, I can't correct it all retroactively) I've made a change to the library we use to exclude ratings that fall outside of the 1..5 range:
r17382-dotorg Ratings: Exclude any ratings counts that are not expected. See https://meta.trac.wordpress.org/ticket/5752
Details page showing non typical 0 star line (here in German website, therefore "0 Sterne")