Last modified: 2014-09-30 01:23:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44246, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42246 - After switching patrolling off, impossible to effectively hide patrol log entries in Special:Log
After switching patrolling off, impossible to effectively hide patrol log ent...
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Logging (Other open bugs)
1.23.0
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Bawolff (Brian Wolff)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-18 19:39 UTC by Isarra
Modified: 2014-09-30 01:23 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Isarra 2012-11-18 19:39:17 UTC
Sometimes a wiki has patrolling on and then decides it's not useful for their purposes and turns it off. This results in a whole lot of patrol log entries that most nobody wants to see suddenly becoming visible in the log with no way to effectively hide them. (Because apparently the filtering thing $wgFilterLogTypes doesn't apply to it anymore, or something, though you can still select it in the dropdown as a type to only show.)

It's kind of annoying, although obviously not something that would come up often.

But when it does it's kind of annoying.
Comment 1 Bawolff (Brian Wolff) 2013-01-04 18:04:38 UTC
Hmm, I guess its some sort of performance optimization

 if( $type !== 'patrol' || $this->getUser()->useNPPatrol() )

So it does disable filtering out patrol logs if patrolling is disabled.

Even more concerning, it stops the filtering if the user doesn't have patrol rights. For example, anons (in some configs) will have the filtering disabled. This can be verified by looking at [[w:Special:log]] as an anon vs as a logged in user (not too many entries as WP only uses new page patrol).
Comment 2 Bawolff (Brian Wolff) 2013-01-04 18:20:25 UTC
Gerrit change #42279


This isn't perfect though. Ideally we wouldn't have the "show patrol" link there if patrolling is disabled since that's mostly useless, but I think that's better then having the logs flooded with patrol entries when a wiki disables that feature.
Comment 3 Nemo 2013-01-04 19:19:31 UTC
(In reply to comment #2)
> This isn't perfect though. Ideally we wouldn't have the "show patrol" link
> there if patrolling is disabled since that's mostly useless, but I think
> that's
> better then having the logs flooded with patrol entries when a wiki disables
> that feature.

It definitely is not better, in my opinion. Rather than ruining most wikis for the sake of a handful of volatile ones, this should be governed by a configuration variable which can be turned on in those rare cases, shouldn't it?
Comment 4 Bawolff (Brian Wolff) 2013-01-04 19:26:31 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This isn't perfect though. Ideally we wouldn't have the "show patrol" link
> > there if patrolling is disabled since that's mostly useless, but I think
> > that's
> > better then having the logs flooded with patrol entries when a wiki disables
> > that feature.
> 
> It definitely is not better, in my opinion. Rather than ruining most wikis
> for
> the sake of a handful of volatile ones, this should be governed by a
> configuration variable which can be turned on in those rare cases, shouldn't
> it?

It already is. People can always remove patrol from $wgFilterLogTypes. However, patrol is in there by default.

I don't think its a big issue, because having a very small link doesn't exactly ruin things for other wikis.
Comment 5 Nemo 2013-01-04 19:30:20 UTC
(In reply to comment #4)
> I don't think its a big issue, because having a very small link doesn't
> exactly
> ruin things for other wikis.

It does. Confusing meaningless clutter is definitely something we shouldn't add on purpose, while all the MediaWiki development efforts are (hopefully) in the opposite direction.
Comment 6 Bawolff (Brian Wolff) 2013-01-04 19:30:59 UTC
We could instead have 'patrol-if-enabled' added to $wgFilterLogTypes in DefaultSettings.php, and then have Setup.php change that value to patrol if it is present and patrolling is enabled, and remove that value otherwise. However that seems hacky...
Comment 7 Nemo 2013-01-04 19:36:49 UTC
Or $wgFilterLogTypes could just be manually set as appropriate by the wiki in need of it...
Comment 8 Nemo 2013-01-06 11:04:09 UTC
(In reply to comment #7)
> Or $wgFilterLogTypes could just be manually set as appropriate by the wiki in
> need of it...

Brian, if you agree with the above you could change the summary of this report so that it covers only the actual bug you found:

(In reply to comment #1)
> Even more concerning, it stops the filtering if the user doesn't have patrol
> rights. For example, anons (in some configs) will have the filtering
> disabled.

And I could file a bug for $wgFilterLogTypes to be set on our wikis where relevant, update docs to say this is the right thing to do etc.
Comment 9 Bawolff (Brian Wolff) 2013-01-08 20:59:50 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Or $wgFilterLogTypes could just be manually set as appropriate by the wiki in
> > need of it...
> 
> Brian, if you agree with the above you could change the summary of this
> report
> so that it covers only the actual bug you found:
> 
> (In reply to comment #1)
> > Even more concerning, it stops the filtering if the user doesn't have patrol
> > rights. For example, anons (in some configs) will have the filtering
> > disabled.
> 
> And I could file a bug for $wgFilterLogTypes to be set on our wikis where
> relevant, update docs to say this is the right thing to do etc.

I changed my patch. After thinking about this for a day - I think it does make sense to have the automatic behaviour match the current, but users should be able to override in LocalSettings.php (basically did what I said in comment 6).

So now the patch keeps the exact same behaviour as before, except if you set $wgFilterLogTypes['patrol'] = true in LocalSettings.php it will enable the filtering even if patrol is disabled. And anons can now filter special:log to remove patrol
Comment 10 Gerrit Notification Bot 2013-09-12 19:04:10 UTC
Change 42279 had a related patch set uploaded by Nemo bis:
(bug 42246) allow hiding patrol entries from main Special:log

https://gerrit.wikimedia.org/r/42279

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links