Skip to content

v0.6.0

Choose a tag to compare

@fvarrui fvarrui released this 12 Oct 16:22
· 126 commits to main since this release

New

  • Images and files embedded in rich text (#52): an embed option (local paths) on createActivity, updateActivity, addSection, editSection, startDiscussion, replyToPost, editPost and updateCourse. The HTML names each file by its name (<img src="shot.png">); the driver uploads it where Moodle's editor would and rewrites the reference, so the image shows to everyone. See Embedding files in rich text.
  • activityContent (pages, labels, books) and forum posts give the images they show.
  • Forum subscriptions (#53): subscribed in forumDiscussions and discussion; startDiscussion returns the resulting pinned and subscribed, and replyToPost subscribed when asked to subscribe; new setDiscussionSubscription (also moodle set-discussion-subscription).

Fixes

  • courseStructure: availableToMe is true for a teacher on a hidden or restricted activity they can open (#50).
  • setEnrolmentMethod switches a method on or off as Moodle's methods page does, and refuses with a clear EnrolmentError what Moodle doesn't let the person change (a teacher on the manual method), instead of failing on a missing form field; a request for the state a method already has succeeds (#51).

Changes a program may notice

  • uploadToDraft (internals) returns the draft URLs of the files it uploaded.
  • readImages (internals) and the ImageItem type are new.

Checked against the Moodle 5.2 sandbox: the courses, building, forums and participants files of the regression suite pass (88 tests).