ProfessionalWiki / PageApprovals

BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Page Approvals

GitHub Workflow Status Type Coverage Psalm level Latest Stable Version Download count

MediaWiki extension for approving pages.

Professional.Wiki, the creator of this extension, provides MediaWiki Development, MediaWiki Hosting, and MediaWiki Consulting.

Table of Contents

Usage Documentation

TODO

Installation

Platform requirements:

The recommended way to install the Page Approvals extension is with Composer and MediaWiki's built-in support for Composer.

On the commandline, go to your wikis root directory. Then run these two commands:

COMPOSER=composer.local.json composer require --no-update professional-wiki/page-approvals:~1.0
composer update professional-wiki/page-approvals --no-dev -o

Then enable the extension by adding the following to the bottom of your wikis LocalSettings.php file:

wfLoadExtension( 'PageApprovals' );

You can verify the extension was enabled successfully by opening your wikis Special:Version page.

PHP Configuration

Configuration can be changed via LocalSettings.php.

TODO

Development

Run composer install in extensions/PageApprovals/ to make the code quality tools available.

Running Tests and CI Checks

You can use the Makefile by running make commands in the PageApprovals directory.

Updating Baseline Files

Sometimes Psalm and PHPStan generate errors or warnings we do not wish to fix. These can be ignored by adding them to the respective baseline file. You can update these files with make stan-baseline and make psalm-baseline.

Inserting Test Data

INSERT INTO approver_config (ac_user_id, ac_categories)
VALUES (1, 'TestCat|TestCat2');

Release Notes

Version 1.0.0 - 2024-0x-xx