MWStake MediaWiki Manager: Difference between revisions

From MWStake
Jump to navigation Jump to search
(MWMSafeMode)
Line 20: Line 20:
# [https://github.com/dataspects/mwmui mwmui] (User Interface)
# [https://github.com/dataspects/mwmui mwmui] (User Interface)
# [https://github.com/dataspects/mediawiki-manager/blob/main/mwmapi/test.php Integration Testing]
# [https://github.com/dataspects/mediawiki-manager/blob/main/mwmapi/test.php Integration Testing]
=== MediaWiki Manager ===
==== Usecase: safe mode ====
Commenting <code>- ./mediawiki_root/w:/var/www/html/w</code> in [https://github.com/dataspects/mediawiki-manager/blob/main/docker-compose.yml docker-compose.yml] allows for a ''MWMSafeMode'' due to <code>COPY w /var/www/html/w</code> in [https://github.com/dataspects/dataspectsSystemBuilder/blob/master/docker-images/php-apache/Dockerfile Apache PHP Dockerfile].


=== MediaWiki Manager API ===
=== MediaWiki Manager API ===

Revision as of 03:31, 3 March 2021

Manage (settings), upgrades, extensions, snapshots and content through an independent UI/API

Resources

https://github.com/dataspects/mediawiki-manager
https://github.com/dataspects/mwmui
  1. docker-compose.yml (Apache PHP Dockerfile)
  2. extensions.json
  3. upgrades.json
  4. mediawiki-apps.json
  5. systemSettings.json
  6. mwmapi.php (MediaWiki Manager API)
  7. mwmui (User Interface)
  8. Integration Testing

MediaWiki Manager

Usecase: safe mode

Commenting - ./mediawiki_root/w:/var/www/html/w in docker-compose.yml allows for a MWMSafeMode due to COPY w /var/www/html/w in Apache PHP Dockerfile.

MediaWiki Manager API

  • PHP right now (preferably Go)
  • Security review (e.g. exec commands)

Usecase: edit system settings

Experimental, see https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/systemSettings.json

Usecase: enable (install) and disable extension

See

Usecase: upgrade MediaWiki "package"

See https://github.com/dataspects/mediawiki-manager/blob/ca621f9dab7ba784c6d16f6fa71f0d500e9544d8/mwmapi/system.php#L12

Usecase: take snapshot

See https://github.com/dataspects/mediawiki-manager/blob/ca621f9dab7ba784c6d16f6fa71f0d500e9544d8/mwmapi/snapshots.php#L19

Usecase: inject dataspects ontology

See https://github.com/dataspects/mediawiki-manager/blob/ca621f9dab7ba784c6d16f6fa71f0d500e9544d8/mwmapi/app.php#L27

MediaWiki Manager UI

  • Gatsby/React/MaterialUI
  • Security review
  • Protection: .htaccess or own user management?

MediaWiki Stakeholders Group Certified Extensions Catalogue

Integration Testing

  1. https://github.com/dataspects/mediawiki-manager/blob/main/mwmapi/test.php