Details
-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Deferred
-
Affects Version/s: 3.9
-
Fix Version/s: None
-
Component/s: Other
-
Labels:
-
Story Points:5
-
Sprint:Activity Sprint 8
Description
This issue is a foundation for several others as it creates the admin tool plugin (tool_moodlenet) and the basic communication flow between MoodleNet and Moodle. More specifically, it provides the endpoint which MoodleNet can POST information about the file (as JSON) to.
This issue will help us to complete the following user story (it won't fully complete it because it only deals with the endpoint, not the processing + decision code):
User Story | Approach |
---|---|
As a teacher, after selecting a resource in MoodleNet, I am redirected to my Moodle site where I can decide what to do with the imported resource. |
MoodleNet will POST information about the resource, as JSON, to the Moodle endpoint. The endpoint will process the data and present the user with options for import. |
Acceptance criteria:
- There is a new admin tool 'tool_moodlenet' created in core.
- The plugin provides an endpoint for MoodleNet to POST to
- MoodleNet should be able to POST to this endpoint (we need to simulate this in in testing in the first instance as it isn't built yet), regardless of whether a user is logged in or not and the POST data should be retained after login for use by the tool.
- The referring MoodleNet page should be captured and present as a param in the wantsurl.
We require a plugin (admin tool) to handle receiving requests to include MoodleNet content into a course.
It has been suggested that the workflow could be similar to how plugins are installed from the plugin database (moodle.org).
Plugin workflow - The button to install a plugin is a base64 encoded string which contains information (name, component, version) related to the plugin to make a request back to fetch it later. - End plugin workflow.
Checks need to be done as to whether accepting files from MoodleNet is allowed by the system.The user needs to be logged in with an authenticated account.After getting the file it then has to be decided what to do with itBackup files to ultimately be restored.Other file types to be handled with a call back to activity plugins.An option to just put the file into the private files area of the user.
User story | Approach |
---|---|
|
Attachments
Issue Links
- blocks
-
MDL-68131 Add 'enablemoodlenet' setting to tool_moodlenet (tool_moodlenet 3.7 and 3.8)
-
- Closed
-
-
MDL-68132 Add class for handling download of MoodleNet resources (tool_moodlenet all versions)
-
- Closed
-
-
MDL-68141 Add page for selecting a course (tool_moodlenet all versions)
-
- Closed
-
-
MDL-68142 Code to migrate the feature toggle from the plugin settings to core (tool_moodlenet master only)
-
- Closed
-
- is blocked by
-
MDL-68111 Core setting to toggle MoodleNet features globally (master)
-
- Closed
-