Page MenuHomePhabricator

Remove Thanks for autopromote log
Closed, ResolvedPublic3 Estimated Story Points

Description

Since yesterday thanking for log entries is possible. Great. Thanks a lot :-)

But the thank function for autopromote log actions is IMHO useless: https://de.wikipedia.org/w/index.php?title=Spezial%3ALogbuch&type=rights&user=&page=&year=&month=-1&tagfilter=&subtype=autopromote

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
TBolliger set the point value for this task to 3.

This happens because the ThanksLogTypeWhitelist config only lists top-level log types, not type+action combinations (subtypes, basically). In this case, it lists the type rights, but we really only want to allow thanks for rights/rights, not for rights/autopromote. A code change would be needed to accept subtypes in this list.

So how do you want to do this; should it be set up like:

$wgThanksLogTypeWhitelist = [
	"delete",
	...
	"rights/rights"
];

Or like:

$wgThanksLogTypeWhitelist = [
	"delete",
	...
	["rights" => "rights"]
];

Change 492595 had a related patch set uploaded (by Setian; owner: Setian):
[mediawiki/extensions/Thanks@master] Allow the log type whitelist to have entries like "rights/rights"

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

Change 492595 abandoned by MaxSem:
Allow the log type whitelist to have entries like "rights/rights"

Reason:
Banned user.

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

@MaxSem This shouldn't matter, as the code is fine. I would be willing to adopt this change.

I'm not really able to find a reason why this user has been banned anyway. He's made some quite controversal suggestions, but from what I've seen he hasn't behaved that badly.

Change 593204 had a related patch set uploaded (by Majavah; owner: Majavah):
[mediawiki/extensions/Thanks@master] Allow restricting log entry thanking to subtypes

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

taavi moved this task from Triaged but Future to Inbox on the Growth-Team board.
taavi subscribed.

Requesting review from Growth-Team. Please note that the attached Gerrit revision only adds technical ability to change a configuration variable for this, I didn't modify the defaults yet but it should be as simple as changing rights to rights/rights in $wgThanksLogTypeWhitelist.

Change 593204 merged by jenkins-bot:
[mediawiki/extensions/Thanks@master] Allow restricting log entry thanking to subtypes

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

Now that this is technically possible to configure, should it be done as a default on all Thanks installations or on WMF config only?

I don't see anything Wikimedia-specific in the rationale for the change.

I don't think there's anything left for the Growth team to do here so removing from the sprint board. Please feel free to re-add if that's incorrect or it changes.

Change 825339 had a related patch set uploaded (by Majavah; author: Majavah):

[mediawiki/extensions/Thanks@master] Update defaults to allow thanking of rights/rights only

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

taavi removed taavi as the assignee of this task.Aug 22 2022, 12:39 PM
taavi claimed this task.

Change 825339 merged by jenkins-bot:

[mediawiki/extensions/Thanks@master] Update defaults to allow thanking of rights/rights only

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

Change 832738 had a related patch set uploaded (by Majavah; author: Majavah):

[mediawiki/extensions/Thanks@master] ApiCoreThank: support subtypes in AllowedLogTypes

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

Change 832738 merged by jenkins-bot:

[mediawiki/extensions/Thanks@master] ApiCoreThank: support subtypes in AllowedLogTypes

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

Change 833032 had a related patch set uploaded (by Zabe; author: Majavah):

[mediawiki/extensions/Thanks@REL1_39] ApiCoreThank: support subtypes in AllowedLogTypes

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

Change 833033 had a related patch set uploaded (by Zabe; author: Majavah):

[mediawiki/extensions/Thanks@REL1_38] ApiCoreThank: support subtypes in AllowedLogTypes

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

Change 833034 had a related patch set uploaded (by Zabe; author: Majavah):

[mediawiki/extensions/Thanks@REL1_37] ApiCoreThank: support subtypes in AllowedLogTypes

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

Change 833033 merged by jenkins-bot:

[mediawiki/extensions/Thanks@REL1_38] ApiCoreThank: support subtypes in AllowedLogTypes

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

Change 833032 merged by jenkins-bot:

[mediawiki/extensions/Thanks@REL1_39] ApiCoreThank: support subtypes in AllowedLogTypes

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

Change 833034 merged by jenkins-bot:

[mediawiki/extensions/Thanks@REL1_37] ApiCoreThank: support subtypes in AllowedLogTypes

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