[01:10:39] the problem with mw-based /64-by-default is that there are some ISPs (usually cellular carriers) that assign smaller ranges [15:38:47] DannyS712, hi there :-D [15:39:36] re config for the PRP config option: were you thinking of a wgProofreadPage... global, or something more easily set on-wiki? [15:42:02] something like $wgProofreadPageAddTags defaulting to false and the being slowly enabled on a first wiki and then a few more and then everywhere [15:42:27] ok, so a global, can do [15:43:01] the other things were kind of an attempt at being "generic" but YAGNI, I guess [16:10:31] DannyS712, have you got any idea how to test this code? [16:14:15] patchdemo - https://patchdemo.wmflabs.org/ [16:29:45] DannyS712, i meant more like "how do I write a test for this" [16:30:25] I have a local wiki install with docker working quite well [16:36:39] oh, integration test should have the feature enabled, make an edit and should trigger it, and then check that the correct tags were applied [16:37:24] do you know of a test that makes edits like that? [16:37:51] I'm struggling to find a suitable test to "be inspired by" (i.e. shamelessly steal from) [16:41:10] looking [16:41:17] ^_^ thanks [16:45:56] okay, drawing a bit based on https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/ProofreadPage/+/refs/heads/master/tests/phpunit/Page/PageContentTest.php#45 for how the content works, and using MediaWikiIntegrationTestCase::editPage [16:45:56] (https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/tests/phpunit/MediaWikiIntegrationTestCase.php#2333) [16:48:49] 1) edit a page to have a content for a specific level [16:48:49] 2) edit it again to have a content for a different level [16:48:49] 3) use the returned Status object from the second edit, the value should be an array including a key 'revision-record' for the new edit you just saved [16:48:49] 4) use RevisionStore::getRecentChange() with that revision record to get the relevant recent change [16:48:49] 5) check that the recent change has the tags [16:49:20] *completely untested and I'm not entirely familiar with this extension [16:49:52] inductiveload hope this helps [16:51:11] sounds good, I'll give it a go [16:51:33] thanks for the tip, i've been a bit stuck!