-
Notifications
You must be signed in to change notification settings - Fork 76
EditCounter: fix two problems and a future problem with reblocks #495
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
Conversation
previously, they were counted as reducing of 1 second the duration of the previous block, instead of setting it to infinite. See https://phabricator.wikimedia.org/T391824#10739130
ipblocks was deprecated in MW 1.42 (WMF sites are at 1.44), and I think that this query is the cause of Xtools not counting some reblocks for "current block". see https://phabricator.wikimedia.org/T391824#10739714
else the count of "re-blocks" actually only includes blocks, which, you know, is a bit weird. I'd say it's this or changing the interface message. see https://phabricator.wikimedia.org/T391824#10739502
|
Thanks for this! I will review this soon. Looks like I need to fix CI, too. |
block and block_target, and not blocks and blocks (what was I thinking!), per mw
|
For the table switch, specifically, I just corrected some mistakes I'd made (in the actual names), but I'm not sure what should be put in the last parameter of getTableName. |
I really need to get used to PHP
forgot to do that after tests at quarry with fixed value (the number of things I managed to forget is incredible)
|
Can you rebase (or merge in I hope to everything reviewed before this Friday. Thanks for contributing! 😄 |
EOL whitespace l. 383 yoda comparison l. 387
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #495 +/- ##
============================================
- Coverage 71.30% 71.00% -0.31%
- Complexity 1275 1295 +20
============================================
Files 46 46
Lines 3792 3900 +108
============================================
+ Hits 2704 2769 +65
- Misses 1088 1131 +43 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
MusikAnimal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 Thank you!!! I'm surprised these bugs have gone unnoticed for this long!
Don't worry about the tests, since you aren't able to set up a dev environment. I can add coverage in a follow-up.
|
Also FYI, multiblocks is coming soon (hence the schema change), so we'll need to rethink how we display the data. Only two wikis have it enabled right now, so it's not urgent. |
|
Also, I was wondering: with what frequency is xtools.wmcloud.org updated? To see the effect notably if the table change had something to do with the issue with current blocks issue. |
Note:
Bug: T391824