Page MenuHomePhabricator

Undeploy Extension:Listings from Wikimedia Production
Closed, ResolvedPublic

Description

The Listings extension is used on Wikimedia on Wikivoyages only.

According to its own description at https://www.mediawiki.org/wiki/Extension:Listings#Deprecation the extension's functionality can be achieved using standard templates. Some Wikivoyages such as de.wikivoyage (T206102) and it.wikivoyage (T253096) have removed or are in the process or removing the extension. On other Wikivoyages such as es.wikivoyage, looking for insource:/\<(buy|do|drink|eat|listing|see|sleep)/ (same search @MaxSem performed back in the days (T206102#4825809) returned zero results.

The extension maintenance over the past 5 years are mostly build updates.

If this extension is deprecated and unused in our Wikivoyages we should have it undeployed from Production. Do we have a standard plan for this kind of operations?

Adding @RolandUnger as listed extension author on mediawiki.org.

Thank you.

Adenda: Results of insource:/\<(buy|do|drink|eat|listing|see|sleep)/ across the Wikivoyage editions where the extension is still installed for NS_MAIN as of 2023-12-04 21:17 (UTC).

  • pl: 0 uses
  • ro: 7 uses
  • uk: 0 uses
  • zh: 0 use

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

IMHO it could worth to clean all the other NSs, not only the main one.

nlwiki is now down to only 16 cases after a ping in their VP \o/ I'll go and hunt down other wikis so we can call this done soon.

Change 980495 had a related patch set uploaded (by Raimond Spekking; author: Raimond Spekking):

[translatewiki@master] [Listings] Move to Wikimedia Legacy

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

Change 980495 merged by jenkins-bot:

[translatewiki@master] [Listings] Move to Wikimedia Legacy

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

I've now removed all instances of the Listings extension from the Swedish Wikivoyage: please see these sv.Voy query results: (buy|do|drink|eat|listing|see|sleep|stay).

By the way, as you may have seen in the search string I linked to above, the Swedish Wikivoyage had also implemented a <stay> tag, on top of the standard <buy>, <do>, <drink>, <eat>, <listing>, <see> and <sleep> ones. I've search for <stay> in the other language versions of Wikivoyage listed above (el, fi, fr, pl, pt, ro, ru, uk, zh) and as far as I can tell it's not used there. (Slight reservation for the Chinese, Russian and Ukrainian language versions since they don't use Latin script – however I guess their code strings should still be in English?)

I've removed the tags from zhwikivoyage :)

Thank you @Frostly and @Tommy_Kronkvist! It's awesome. With this, it's basically only Polish Wikivoyage left.

I've removed the tags from zhwikivoyage :)

In the same page, there are a couple of <see> left, would you mind getting them done too so I can disable it in zhwikivoyage? Thank you!

Change 984277 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[operations/mediawiki-config@master] Disable listings extension in more wikis

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

Change 984277 merged by jenkins-bot:

[operations/mediawiki-config@master] Disable listings extension in more wikis

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

Mentioned in SAL (#wikimedia-operations) [2023-12-19T21:31:27Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:984277|Disable listings extension in more wikis (T253216)]]

Mentioned in SAL (#wikimedia-operations) [2023-12-19T21:32:53Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:984277|Disable listings extension in more wikis (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2023-12-19T21:39:10Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:984277|Disable listings extension in more wikis (T253216)]] (duration: 07m 42s)

Quiddity subscribed.

Removing User-notice as that is only for Tech News, and we try to avoid global announcements for things that only affect a handful of wikis. Please contact the those wikis directly, instead. Thanks!

Change 988460 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[operations/mediawiki-config@master] Disable Listings extension everywhere except rowikivoyage

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

Change 988460 merged by jenkins-bot:

[operations/mediawiki-config@master] Disable Listings extension everywhere except rowikivoyage

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

Mentioned in SAL (#wikimedia-operations) [2024-01-08T11:48:14Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:988460|Disable Listings extension everywhere except rowikivoyage (T253216)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-08T11:50:01Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:988460|Disable Listings extension everywhere except rowikivoyage (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T11:56:58Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:988460|Disable Listings extension everywhere except rowikivoyage (T253216)]] (duration: 08m 43s)

Over the past couple of days I migrated zh, uk, and pl via this script:

from bs4 import BeautifulSoup
soup = BeautifulSoup(aaa)
attr_to_arg_mapping = {
    'name': 'name',
    'alt': 'alt',
    'address': 'address',
    'directions': 'directions',
    'phone': 'phone',
    'email': 'email',
    'fax': 'fax',
    'url': 'url',
    'checkin': 'checkin',
    'checkout': 'checkout',
    'lat': 'lat',
    'long': 'long',
    'tags': 'tags',
    'tollfree': 'tollfree',
    'hours': 'hours',
    'price': 'price'
}
tag_names = [
    'buy', 'do', 'drink', 'eat', 'listing', 'see', 'sleep'
]
for tag_name in tag_names:
    for case in soup.find_all(tag_name):
        text = '{{Listing|type=' + tag_name
        for attr_name in attr_to_arg_mapping:
            if case.attrs.get(attr_name):
                if '=' in case[attr_name] or '|' in case[attr_name]:
                    continue
                text += '|' + attr_to_arg_mapping[attr_name] + ' = ' +  case[attr_name]
        if ' '.join(case.find_all(text=True)):
            text += '|description = ' + ' '.join(case.find_all(text=True))
        text += '}}'
        case.replace_with(text)
print(soup)

Now only rowikivoyage left with seven pages but the wiki doesn't even have a listing template to migrate too. I tried raw wikitext but it's quite a mess.

Okay, I managed to fix Romanian as well, via a fun trick: Copy it to google docs and then copy it back to VE. It strips out links but it's much easier to clean up and fix than doing it one by one. This is done. About to undeploy the extension now.

Change 988654 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[operations/mediawiki-config@master] Undeploy Listings extension, part I

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

Change 988654 merged by jenkins-bot:

[operations/mediawiki-config@master] Undeploy Listings extension, part I

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

Mentioned in SAL (#wikimedia-operations) [2024-01-08T15:38:53Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:988654|Undeploy Listings extension, part I (T253216)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-08T15:40:18Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:988654|Undeploy Listings extension, part I (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T15:47:15Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:988654|Undeploy Listings extension, part I (T253216)]] (duration: 08m 22s)

Change 988655 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[operations/mediawiki-config@master] Undeploy listing extension part II

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

Change 988655 merged by jenkins-bot:

[operations/mediawiki-config@master] Undeploy listing extension part II

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

Mentioned in SAL (#wikimedia-operations) [2024-01-08T15:49:41Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:988655|Undeploy listing extension part II (T253216)]]

Change 988658 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[operations/mediawiki-config@master] Undeploy Listings extension part III

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

Mentioned in SAL (#wikimedia-operations) [2024-01-08T15:51:18Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:988655|Undeploy listing extension part II (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T15:58:21Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:988655|Undeploy listing extension part II (T253216)]] (duration: 08m 40s)

Change 988658 merged by jenkins-bot:

[operations/mediawiki-config@master] Undeploy Listings extension part III

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

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:01:00Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:14:40Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:25:07Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] (duration: 24m 06s)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:41:06Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:42:47Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:49:53Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] (duration: 08m 47s)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:51:44Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-08T16:53:16Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T17:04:08Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] (duration: 12m 24s)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T17:04:39Z] <ladsgroup@deploy2002> Started scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-08T17:06:08Z] <ladsgroup@deploy2002> ladsgroup: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-08T17:12:40Z] <ladsgroup@deploy2002> Finished scap: Backport for [[gerrit:988658|Undeploy Listings extension part III (T253216)]] (duration: 08m 01s)

Ladsgroup claimed this task.

One more extension without even one line of test is now gone.