Page MenuHomePhabricator

Automate deprecation of schema on metawiki after migration to Event Platform
Closed, DeclinedPublic

Description

The EventLogging extension manages the Schema namespace on metawiki. We should use the same config wgEventLoggingSchemas config switch we use to handle backwards compatibility to add a deprecation/migration notice to schemas on metawiki.

That is, we edit EventLogging's includes/ApiJsonSchema.php, includes/JsonSchemaContent.php, and or includes/JsonSchemaContentHandler.php to render a deprecation notice at the schema's wikipage if $wgEventLoggingSchemas['SchemaName'] is a string.

This would help automate the migration process and hopefully avoid confusion when folks might attempt to edit their schemas on wiki after they have been migrated to the git repo.

Event Timeline

Change 650174 had a related patch set uploaded (by Ottomata; owner: Ottomata):
[mediawiki/extensions/EventLogging@master] Prepend an HTML warningbox if a schema has been disabled or migrated

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

Change 650174 abandoned by Ottomata:
[mediawiki/extensions/EventLogging@master] Prepend an HTML warningbox if a schema has been disabled or migrated

Reason:
I was able to edit protect a schema in metawiki. We'll do that instead of this.

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

Yes, let's decline. We are using auto-protect to edit lock migrated schemas instead.