Mass approval using a script
The script extensions/BlueSpiceFlaggedRevsConnector/maintenance/BSBatchReview.php
can be used to approve all drafts in the wiki. This affects both first drafts, drafts of pages with already approved versions and drafts for embedded resources.
Options
Option | Description |
---|---|
--username
|
Required. The user name of the existing user to use as the "reviewer" |
--pageids
|
Flat file containing page ids seperated by line break |
--pages
|
Flat file containing page names seperated by line break |
--namespace
|
Id of namespace to flag entirely |
--flag
|
Which flags to apply? Possible values: "quality", "pristine", "checked". Default is "quality". |
Examples
Whole namespace
php extensions/BlueSpiceflaggedRevsConnector/maintenance/BSBatchReview.php --username WikiSysop --namespace 3000
List of page ids
Such a list can be created from a database query.
File /tmp/page-ids-to-review.txt
:
23 42 1337
Command line:
php extensions/BlueSpiceflaggedRevsConnector/maintenance/BSBatchReview.php --username WikiSysop --pageids /tmp/page-ids-to-review.txt
List of page names
Such a list can be created using a SMW query.
File /tmp/page-titles-to-review.txt
:
Some/Page Other_page Help:Some_help_page
Command line:
php extensions/BlueSpiceflaggedRevsConnector/maintenance/BSBatchReview.php --username WikiSysop --pages /tmp/page-titles-to-review.txt