Skip to content

v4.0.0-rc.1 (Build: 2017122900)

Pre-release
Pre-release
Compare
Choose a tag to compare
@valentineus valentineus released this 29 Dec 10:51
· 32 commits to master since this release

Features

  • Added the ability to update seamlessly from version 3.0.0.

The interface is redesigned

  • The internal Moodle API is used to display the service table.
  • Tooltips use a conservative information style.
  • On the restore page from the backup, an element has been added to select the data deletion.

The plugin API is redesigned

  • The function local_webhooks_update_record is divided into two functions local_webhooks_create_record and local_webhooks_update_record for creating and updating the record, respectively.
  • The functions local_webhooks_archiving_data and local_webhooks_unarchive_data are deleted.
    Instead of remote functions, functions local_webhooks_serialization_data and local_webhooks_deserialization_data have been added.
    Archiving and base64 encoding are removed from functions.
  • Added feature local_webhooks_send_request for creating a request and sending the event to an external service.
  • Added feature local_webhooks_change_status for switching service status.
  • Added function local_webhooks_get_list_events to get a list of events.
  • Added function local_webhooks_delete_record to delete the selected service.
  • Added feature local_webhooks_delete_all_records for deleting saved services.
    Use with caution and use backup.
  • Redesigned function local_webhooks_restore_backup.
    Now the function accepts an additional parameter $deleterecords which is responsible for deleting existing records.

Added external web services

Documentation work with them automatically generated documentation page.

List of added web services:

  • local_webhooks_change_status to change the status of the service.
  • local_webhooks_get_record for information about the service.
  • local_webhooks_get_list_records to get a list of services.
  • local_webhooks_get_list_events to get a list of registered events.
  • local_webhooks_create_record to create a service.
  • local_webhooks_update_record to update the service.
  • local_webhooks_delete_record to delete the service.
  • local_webhooks_delete_all_records to delete all services.
  • local_webhooks_create_backup to create a backup.
  • local_webhooks_restore_backup to restore the backup.

Attention

  • Backups between versions 3.0.0 and 4.0.0-rc.1 are not compatible.