Page MenuHomePhabricator

Cleaning up after EducationProgram
Closed, InvalidPublic

Description

EducationProgram puts a lot of data into logging

There also talk pages

What are we going to do with this after we undeploy the extension? They become un-reachable...

Delete the lot after dumping?

Event Timeline

Are the plans to remove all related data from the databases? Right now, the MediaWiki API says the Education( talk) namespaces don't exist, but such pages are still in the database. This causes errors for some analytical tools like XTools. We have the page_title, but we can't display it because we don't know what the namespace is.

Delete the lot after dumping?

This is my feeling. I see from T188407 there are concerns on accessing historical data. So I would dump it somewhere so everyone can access it, then remove all data from the database. As it stands now, I consider the lingering data to be corrupt.

Are the plans to remove all related data from the databases? Right now, the MediaWiki API says the Education( talk) namespaces don't exist, but such pages are still in the database. This causes errors for some analytical tools like XTools. We have the page_title, but we can't display it because we don't know what the namespace is.

https://en.wikipedia.org/w/api.php?action=query&pageids=38654465&prop=info|revisions&rvprop=content

Can a batch fix of moving them all to Project/Project_talk just be done?

Might be best to discuss this on wiki as any mass solution will likely require a bot, needing approval at WP:BRFA

No, a bot wouldn't need approval. It's not like it's doing mass unattended changes to pages. It would be one just dumping the contents to some pre determined pages

I have created a simple sigle purpose script, allowing to publish the courses as wikipages. It's on https://gist.github.com/urbanecm/8a090da58429b121067bf491d1e9a510 , along with some docs. I can generate wikipages containing course data for any wiki wanting me to do it. If you want me to do it, maybe dedicated phab task assigned to me would be warranted, so I will surely notice it.

Can a batch fix of moving them all to Project/Project_talk just be done?

I wonder if we should just re-add the EducationProgram NS in mw-config to the Wikis that had it enabled...

https://en.wikipedia.org/w/api.php?action=query&pageids=38654465&prop=info%7Crevisions&rvprop=content confirms the content type isn't anything that depends on the extension, it's just wikitext

Can a batch fix of moving them all to Project/Project_talk just be done?

I wonder if we should just re-add the EducationProgram NS in mw-config to the Wikis that had it enabled...

https://en.wikipedia.org/w/api.php?action=query&pageids=38654465&prop=info%7Crevisions&rvprop=content confirms the content type isn't anything that depends on the extension, it's just wikitext

That would solve the problem with what to do about https://en.wikipedia.org/wiki/Category:Pages_linking_to_the_Education_Program_namespace

Otherwise a bot may be needed to edit all of the pages in that category, if a workaround can't be implemented in the template that populates that category.

Can a batch fix of moving them all to Project/Project_talk just be done?

I wonder if we should just re-add the EducationProgram NS in mw-config to the Wikis that had it enabled...

https://en.wikipedia.org/w/api.php?action=query&pageids=38654465&prop=info%7Crevisions&rvprop=content confirms the content type isn't anything that depends on the extension, it's just wikitext

That would solve the problem with what to do about https://en.wikipedia.org/wiki/Category:Pages_linking_to_the_Education_Program_namespace

Otherwise a bot may be needed to edit all of the pages in that category, if a workaround can't be implemented in the template that populates that category.

Done FWIW

Krinkle added subscribers: MBH, Krinkle, Base.

Note that the namespaces were re-created in prod in December per T211494. As such, the talk pages are now accessible again, e.g. at https://en.wikipedia.org/wiki/Education_Program_talk:Cornell_University/Online_Communities_(Fall_2013).

If this is only about talk pages and not the subject space, then I suppose they could perhaps be mass renamed to be in the project namespace? E.g. Wikipedia_talk:Education_Program/.. or some such.

Change 488720 had a related patch set uploaded (by Reedy; owner: Reedy):
[operations/mediawiki-config@master] Don't add EP NS where the wiki has no pages in that NS

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

Change 488720 merged by jenkins-bot:
[operations/mediawiki-config@master] Don't add EP NS where the wiki has no pages in that NS

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

xSavitar subscribed.

Extension has been archived, for more information, see: T214457. Please reopen in case we missed something.

@D3r1ck01 Will Educational Program namespaces be deleted in projects where EP was installed? For example, ruwiki, EP namespaces still exist (but its localization already gone).

@D3r1ck01 Will Educational Program namespaces be deleted in projects where EP was installed? For example, ruwiki, EP namespaces still exist (but its localization already gone).

Yes @MBH, we'll clean those up as well. I see related things in mediawiki-config, see links below;

@D3r1ck01 It's off-topic, but maybe you know answer. Will "Topic" namespace from cancelled Flow extension be deleted in projects, that were use it, too?

@D3r1ck01 It's off-topic, but maybe you know answer. Will "Topic" namespace from cancelled Flow extension be deleted in projects, that were use it, too?

Thanks for asking @MBH but note that "Flow" (name used previously) is now called Structured Discussion is still very valid and is highly used. See an example SD topic or discussion thread: https://www.mediawiki.org/wiki/Topic:V6hzurgtb4qe02pi

In addition, in the SD code base, see the namespace here: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Flow/+/master/extension.json#772 (which is still being used).

The extension is not dead/cancelled, it was just renamed to "StructuredDiscussions". Sorry if the rename caused any confusion and hope my response helps :)

@D3r1ck01 It "is still very valid and is highly used" not in big wikis like enwiki, commons, ruwiki, where it recognized as unusable disaster, which makes using history, reverting vandals and complex multilevel discussions impossible. As far as I know, WMF abandoned an idea to force every project use Flow, its new idea to simplify discussions (presented on last Wikimania) is JS script over normal talk pages. I'm interested, can this NS and extension be completely removed from ruwiki (local consensus exists)?

Talking about Flow is off topic, please move it to another task

In T200391#5457005, @D3r1ck01 wrote:

@D3r1ck01 Will Educational Program namespaces be deleted in projects where EP was installed? For example, ruwiki, EP namespaces still exist (but its localization already gone).

Yes @MBH, we'll clean those up as well. I see related things in mediawiki-config, see links below;

Can we get a way ahead for T188407 before this one moves forward? On some wikis this extension saw a lot of use and there is valuable material there that should not just be dumped without a method of retrieval.

And by that I mean in a more user-friendly format than a database dump (re: T186325#4615400) so that regular users can access their previous content.