Page MenuHomePhabricator

Create minimal example Schema in CC
Closed, ResolvedPublic

Description

To get started with T371044, we want a very simple initial example provider in CommunityConfiguration. It should consist of the following:

  • a schema with a single field of type string
  • a special page showing the string and its length

Both should ideally be clearly separated from the main extension code.

Event Timeline

Change #1060770 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/CommunityConfiguration@master] docs: Add minimal example implementation

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

Change #1060770 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] docs: Add minimal example implementation

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

For QA-ing this task: The new README.md in the example/ directory describes how try this out locally: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/CommunityConfiguration/+/refs/heads/master/example/README.md
Please let me know if that is straight forward to understand or how we could improve it :)

QA note: After feedback on how to enable this in CI (T373114), this has been reimplemented as a standalone extension CommunityConfigurationExample. It should be cloned from Gerrit and enabled as usual in LocalSettings.php: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/CommunityConfigurationExample/+/refs/heads/master/README.md

Etonkovidova subscribed.

QA note: After feedback on how to enable this in CI (T373114), this has been reimplemented as a standalone extension CommunityConfigurationExample. It should be cloned from Gerrit and enabled as usual in LocalSettings.php: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/CommunityConfigurationExample/+/refs/heads/master/README.md

Thx, @Michael! Checked locally

Special:CommunityConfiguration/CommunityConfigurationExampleSpecial:CommunityConfigurationExample
Screen Shot 2024-09-26 at 3.04.03 PM.png (1×1 px, 393 KB)
Screen Shot 2024-09-26 at 2.59.33 PM.png (1×2 px, 254 KB)