Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-72615-master -
Hide
Setup
The following steps should be run on a Moodle site without the patch.
- Login as admin.
- Go to "Site administration > Advanced features" and "Enable portfolios".
- Access to "Site administration > Plugins > Portfolios > Manage portfolios".
- Select "Enable and visible" for "Box". You can use some silly text (such as "xxxx"), for Client ID and Secret.
- Select "Enable and visible" for "File download".
- Check the following SQL query return 1 row. Annotate the id.
SELECT * FROM mdl_portfolio_instance WHERE plugin = 'boxnet'
- Check the following SQL query return 2 (you'll need to replace the id that you've annotated previously):
SELECT count(*) FROM mdl_portfolio_instance_config WHERE instance = <PORTFOLIOID>
- Go to "Site administration > Plugins > Repositories > Manage repositories".
- Select "Enable and visible" for the "Box" repository. You'll need to add some silly text (such as "xxxx"), for Client ID and Secret.
- Check the following SQL query return 1 row. Annotate the id.
SELECT * FROM mdl_repository WHERE type = 'boxnet'
- Check the following SQL query return 1 (you'll need to replace the id that you've annotated previously):
SELECT count(*) FROM mdl_repository_instances WHERE typeid = <REPOSITORYID>
- Check the following SQL query is not empty:
SELECT * FROM mdl_config_plugins WHERE plugin = 'boxnet'
- Apply the patch and run the upgrade process.
Testing scenario 1: Portfolio
- Access to "Site administration > Plugins > Portfolios > Manage portfolios".
- Check "Box" is no longer displayed there.
- Check the following SQL query is empty:
SELECT * FROM mdl_portfolio_instance WHERE plugin = 'boxnet'
- Check the following SQL query is empty too (you'll need to replace the id that you've annotated previously):
SELECT count(*) FROM mdl_portfolio_instance_config WHERE instance = <PORTFOLIOID>
Testing scenario 2: Repository
- Access to "Site administration > Plugins > Repositories > Manage repositories".
- Check "Box" is no longer displayed there.
- Check the following SQL query is empty:
SELECT * FROM mdl_repository WHERE type = 'boxnet'
- Check the following SQL query is empty too (you'll need to replace the id that you've annotated previously):
SELECT count(*) FROM mdl_repository_instances WHERE typeid = <REPOSITORYID>
- Check the following SQL query is empty:
SELECT * FROM mdl_config_plugins WHERE plugin = 'boxnet';
SELECT * FROM mdl_config_plugins WHERE plugin = 'repository_boxnet';
ShowSetup The following steps should be run on a Moodle site without the patch. Login as admin. Go to "Site administration > Advanced features" and "Enable portfolios". Access to "Site administration > Plugins > Portfolios > Manage portfolios". Select "Enable and visible" for "Box". You can use some silly text (such as "xxxx"), for Client ID and Secret. Select "Enable and visible" for "File download". Check the following SQL query return 1 row. Annotate the id. SELECT * FROM mdl_portfolio_instance WHERE plugin = 'boxnet' Check the following SQL query return 2 (you'll need to replace the id that you've annotated previously): SELECT count(*) FROM mdl_portfolio_instance_config WHERE instance = <PORTFOLIOID> Go to "Site administration > Plugins > Repositories > Manage repositories". Select "Enable and visible" for the "Box" repository. You'll need to add some silly text (such as "xxxx"), for Client ID and Secret. Check the following SQL query return 1 row. Annotate the id. SELECT * FROM mdl_repository WHERE type = 'boxnet' Check the following SQL query return 1 (you'll need to replace the id that you've annotated previously): SELECT count(*) FROM mdl_repository_instances WHERE typeid = <REPOSITORYID> Check the following SQL query is not empty: SELECT * FROM mdl_config_plugins WHERE plugin = 'boxnet' Apply the patch and run the upgrade process. Testing scenario 1: Portfolio Access to "Site administration > Plugins > Portfolios > Manage portfolios". Check "Box" is no longer displayed there. Check the following SQL query is empty: SELECT * FROM mdl_portfolio_instance WHERE plugin = 'boxnet' Check the following SQL query is empty too (you'll need to replace the id that you've annotated previously): SELECT count(*) FROM mdl_portfolio_instance_config WHERE instance = <PORTFOLIOID> Testing scenario 2: Repository Access to "Site administration > Plugins > Repositories > Manage repositories". Check "Box" is no longer displayed there. Check the following SQL query is empty: SELECT * FROM mdl_repository WHERE type = 'boxnet' Check the following SQL query is empty too (you'll need to replace the id that you've annotated previously): SELECT count(*) FROM mdl_repository_instances WHERE typeid = <REPOSITORYID> Check the following SQL query is empty: SELECT * FROM mdl_config_plugins WHERE plugin = 'boxnet'; SELECT * FROM mdl_config_plugins WHERE plugin = 'repository_boxnet';
-
Moppies Kanban
Description
Boxnet is not widely used these days so it would make sense to remove them as standard plugins and add them to the Moodle plugins directory:
- repository_boxnet
- portfolio_boxnet