Moderation queue number incorrect & posts duplicating.
Summary
If you are a moderator of a closed group, when you've approved all of the posts, you will likely see one or two still remaining, that you are unable to approve, as they are not in the queue. You will also see that some posts that you have already approved, are duplicate in the feed, one approved entity, one unapproved, with nothing in the moderation queue.
Steps to reproduce
Requires that you are a group moderator of a closed group.
Platform information
Cross-platform web
What is the current bug behavior?
Queue will show posts awaiting approval that are not
What is the expected correct behavior?
Queue should show empty if there are no posts to approve, furthermore posts should not be getting duplicated.
Relevant logs and/or screenshots
Video at this link https://www.minds.com/newsfeed/999958056778829824
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
added Priority::2 - Normal Product::Groups Type::Bug scoped labels
changed milestone to %"sprint: Kilted Koala"
changed milestone to %"(09/11) Nuanced Numbat"
added Squad::Yellow scoped label
added Sprint::09/11 - Nuanced Numbat scoped label
removed milestone
assigned to @benhayward.ben
added Status::InProgress scoped label
removed Sprint::09/11 - Nuanced Numbat label
added Sprint::09/25 - Oldfashioned Owl scoped label
removed Status::InProgress label
changed time estimate to 5h
added 1h 30m of time spent at 2019-09-25
changed weight to 2
changed milestone to %Misc. Q4 2019
added Sprint::10/09 - Pink Panther Status::Backlog scoped labels and automatically removed Sprint::09/25 - Oldfashioned Owl label
changed title from (bug): Moderation queue number incorrect & posts duplicating. to Moderation queue number incorrect & posts duplicating.
mentioned in issue front#239
added Status::InProgress scoped label and automatically removed Status::Backlog label
removed Status::InProgress label
- Developer
https://gitlab.com/minds/engine/blob/master/Core/Groups/AdminQueue.php#L86
Is the function that is counting, simply using
SELECT COUNT(*) FROM entities_by_time WHERE key = ?;
This number will return even when there are no activities send along with the number.
changed milestone to %Misc. Q4 2019
changed weight to 2
moved from minds#688 (moved)
mentioned in merge request !381
added 1h of time spent at 2019-10-21
added Status::Review scoped label