Closed
Bug 1856019
Opened 3 years ago
Closed 3 years ago
Incorrect request counts displayed in the main header and also in the profiles table
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1386950
People
(Reporter: dkl, Assigned: dkl)
Details
In the past users have complained about negative values in the header and the rebuild script seems to help with that. But I have noticed recently (and probably been going on for a while) that the total count displayed when non-negative is also incorrect. I currently show a count of 1 but when I go to requests.cgi it shows that I have 39 total requests. Here is the data from the database currently for my profile:
SELECT flags.requestee_id AS user_id,
flagtypes.name AS flagtype,
COUNT(*) as count
FROM flags
INNER JOIN profiles ON profiles.userid = flags.requestee_id
INNER JOIN flagtypes ON flagtypes.id = flags.type_id
WHERE flags.status = '?'
AND flagtypes.name IN ('review', 'data-review', 'feedback', 'needinfo')
AND flags.requestee_id = 5898
GROUP BY flags.requestee_id, flagtypes.name LIMIT 1000
user_id flagtype count
5898 review 13
5898 needinfo 25
5898 feedback 1
select review_request_count, feedback_request_count, needinfo_request_count from profiles where userid = 5898 LIMIT 1000
review_request_count feedback_request_count needinfo_request_count
0 1 0
And this is after running the extensions/Review/bin/review_requests_rebuild.pl script manually. Some users have correct counts and some do not (including myself).
Need more investigation.
You need to log in
before you can comment on or make changes to this bug.
Description
•