-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adminops: Add "recent activity by all users" tool #1284
base: main
Are you sure you want to change the base?
Conversation
… reiew helpfulness votes partly working
I experimented with anonymous poll votes, creating a test poll with anonymous voting to test it. The recent activity code is now set up so that if the poll is anonymous, the user id is shown instead of the voter name (but mods can click through to see the name). @dfabulich I was guessing that when the flags column in the vote table says I see this in util.php
and I see this in poll:
|
Fixes #834
This PR adds a tool to the admin panel that shows recent activity for all users in five categories: ratings/reviews, poll votes, page edits, tags, and 'helpful' review votes.
Activity that is anonymous on the live site (adding tags, and voting on how helpful reviews are) is shown with a userid instead of a user name on the activity page (but mods can click on the link to the user page if they need to look up the username).
When testing, please adjust the
days
parameter in the URL based on how old the available data is. E.g. if the newest available data is 80 days old, and you want to show three days of data, set it to 83.Known issues:
Before merging, $recent_days should be changed to 3, since that's how many days of recent activity the mods requested.I've now made this a parameter instead, so it shouldn't be necessary to change the code.There's supposed to be a "no [type of activity] was found" message that displays when there is no activity of that type to show, and it doesn't always display, even if you reduce $days to the point that there's no activity to show. I don't know why.This seems to work now.The review helpfulness votes sectiondoesn't work,doesn't show the voter, and I don't know how to test it (that voter data is not public).I haven't tried to tackle or test anonymous poll votes.