EditCounter: Use review not patrol stats for enwiki#501
EditCounter: Use review not patrol stats for enwiki#501MusikAnimal merged 21 commits intox-tools:mainfrom
Conversation
A few things: - logs can only be partially revdeleted. - log_params is only null when revdeleted. - log_params is always null when ''any'' revdeleting was used - revdeleted values are null From that: A) in userrights.php: we here leave nulls instead of skipping for partially revdeleted logs. This includes added and removed. B) in userrightsrepository.php: we use LEFT OUTER JOIN and not JOIN actors table, for revdeleted actors. Also remove the ISNULL around comment_text because null is a good signal to twig. C) in rights_changes_table.html.twig and rights_changes_table.wikitext.twig: if users or comments are null, put a more graceful message. Bug: T391753
this only exists on, and will only be used for, ENWP.
haven't changed the message yet
review not reviewed; in the database it's reviewed but at special:log it's review
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #501 +/- ##
============================================
- Coverage 71.30% 70.95% -0.36%
- Complexity 1275 1298 +23
============================================
Files 46 46
Lines 3792 3901 +109
============================================
+ Hits 2704 2768 +64
- Misses 1088 1133 +45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Ok, so, after testing and numbers checking:
|
|
There we go. Should re ready. |
MusikAnimal
left a comment
There was a problem hiding this comment.
Looking good! I'm happy to merge as-is, but would like to discourage hard-coding database names (though I know we are guilty of doing it in other parts of XTools).
added patrol-patrol count in that, as the enwp people count it in.(Asked confirmation, just in case.)
Looks like we're not including patrol-patrol now? That's good because it would double count reviews, I think. Each initial pagetriage-curation-reviewed* I believe also produces a patrol-patrol log entry.
|
Not required but for bonus points: update |
|
On double-counting: not exactly. Some do, some don't, and anyhow after I asked they told me to split the two, so I did. So right now we've got the two next to each other and they do whatever they want to do with it. Changed the database name hardcoding. Also added tests for reviews. |
(Ignore the first five commits, it's just a commit in the wrong branch, its revert, typos in the revert, and merging the main to here. I've cleaned my main branch so this shouldn't happen again.)
Enwiki is the only wiki to use pagetriage, and they barely use patrol.
Therefore, replace the patrol stats by the pagetriage-curation reviewed stats. They have requested this a certain number of times, e.g. T366397, https://www.mediawiki.org/wiki/Topic:Xxhmzabmfwnsuwck, &c.
Which means:
NL said that "Page curation" works as a label and will probably not cause too much confusion, so replace the patrol message by that. (we've already got it translated.)
Bug: T366397