Page MenuHomePhabricator

Replace usages of Whitelist/Blacklist in UrlShortener
Closed, ResolvedPublic

Description

Some few usages in method name and documentation, and then config variable

  • Method name and documentation
  • Config variable

Event Timeline

Change 605667 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/UrlShortener@master] Use 'AllowedDomains' instead of 'whitelist'

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

Change 605667 merged by jenkins-bot:
[mediawiki/extensions/UrlShortener@master] Use 'AllowedDomains' instead of 'whitelist'

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

Ammarpad triaged this task as Medium priority.Jun 15 2020, 11:27 PM
Ammarpad updated the task description. (Show Details)

Change 609572 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/UrlShortener@master] Add wgUrlShortenerAllowedDomains config variable.

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

Change 609572 merged by jenkins-bot:
[mediawiki/extensions/UrlShortener@master] Add wgUrlShortenerAllowedDomains config variable.

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

Change 613682 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[operations/mediawiki-config@master] Switch $wgUrlShortenerDomainsWhitelist -> $wgUrlShortenerAllowedDomains

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

The config is merged. Shall we drop the code?

Change 614735 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[operations/mediawiki-config@master] Switch $wgUrlShortenerDomainsWhitelist --> $wgUrlShortenerAllowedDomains

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

The config is merged. Shall we drop the code?

Yes, but that's a kind of intermediary step. (See code review comments). We need to wait for the final switch (above patch).

The config is merged. Shall we drop the code?

Yes, but that's a kind of intermediary step. (See code review comments). We need to wait for the final switch (above patch).

I understand but my point is to avoid having another incident, let's remove the intermediary code and then flip the switch in production. If you're confident such incident doesn't happen again, it's fine the other way around.

Change 614748 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/UrlShortener@master] UrlShortener: Remove config renaming hack

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

Change 614757 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[operations/mediawiki-config@master] labs: Rename $wgUrlShortenerDomainsWhitelist to $wgUrlShortenerAllowedDomains

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

Change 614757 merged by jenkins-bot:
[operations/mediawiki-config@master] labs: Rename $wgUrlShortenerDomainsWhitelist to $wgUrlShortenerAllowedDomains

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

Change 614748 merged by jenkins-bot:
[mediawiki/extensions/UrlShortener@master] UrlShortener: Remove config renaming hack

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

Tested it on beta cluster and it seems it works fine https://en.wikipedia.beta.wmflabs.org/wiki/Special:UrlShortener

It works for me too. I believe we can close this. Thanks for fixing the Beta that I missed.

Change 614772 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/UrlShortener@wmf/1.35.0-wmf.41] UrlShortener: Remove config renaming hack

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

Change 614735 merged by jenkins-bot:
[operations/mediawiki-config@master] Switch $wgUrlShortenerDomainsWhitelist --> $wgUrlShortenerAllowedDomains

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

Change 614825 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[operations/mediawiki-config@master] Labs: Switch $wgUrlShortenerDomainsWhitelist --> $wgUrlShortenerAllowedDomains

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

Change 614825 merged by jenkins-bot:
[operations/mediawiki-config@master] Labs: Switch $wgUrlShortenerDomainsWhitelist --> $wgUrlShortenerAllowedDomains

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

Mentioned in SAL (#wikimedia-operations) [2020-07-20T18:37:13Z] <urbanecm@deploy1001> Synchronized wmf-config/CommonSettings.php: df2584f181f08da0e1191f97e619e912e587b48d: Switch $wgUrlShortenerDomainsWhitelist --> $wgUrlShortenerAllowedDomains (T255491) (duration: 00m 57s)

Change 614772 abandoned by Ammarpad:
[mediawiki/extensions/UrlShortener@wmf/1.35.0-wmf.41] UrlShortener: Remove config renaming hack

Reason:

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