Releases: valentineus/moodle-webhooks
Releases · valentineus/moodle-webhooks
v3.0.3 (Build: 2019021700)
Changes:
- Fixed display of the event list.
v3.0.2 (Build: 2018061910)
Changes:
- #11 - Escaping event name;
v3.0.1 (Build: 2018061900)
- Fixed bug when initializing the table.
v4.0.0-rc.2 (Build: 2018022500)
Features:
General changes:
- All data operations require
sesskey
. - When testing, PHP versions 5.6 and 7.2 are used, and Moodle, starting with version 3.2+.
Cache:
- Cache integrated into the event handler.
- Added functions for working with the cache.
local_webhooks_cache_get
- Get data from the cache by key.local_webhooks_cache_set
- Update the data in the cache by key.local_webhooks_cache_delete
- Delete the data in the cache by key.local_webhooks_cache_reset
- Clear the cache of the plugin.
Main functions:
- Added a new function
local_webhooks_search_services_by_event
for finding services by event. - Functions
local_webhooks_serialization_data
andlocal_webhooks_deserialization_data
and moved to the internal library. - The function
local_webhooks_create_record
has been updated. Now, the function returns the execution status.
External functions:
- Great refactoring of the code was done, the documentation was rewritten.
- A new function
local_webhooks_search_services_by_event
for the web service has been added. - The function
local_webhooks_update_record
has been updated. The foreign keyid
became part of theservice
array. - The private functions in the class were added:
structure_record_parameters
- Single service template.formation_list
- Forms a list of services by template.formation_events
- Forms a list of events by template.
v4.0.0-rc.1 (Build: 2017122900)
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 functionslocal_webhooks_create_record
andlocal_webhooks_update_record
for creating and updating the record, respectively. - The functions
local_webhooks_archiving_data
andlocal_webhooks_unarchive_data
are deleted.
Instead of remote functions, functionslocal_webhooks_serialization_data
andlocal_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.
v3.0.0 (Build: 2017112600)
- Code refactoring.
- Creating an API.
- Processing the architecture of the plug-in.
- Many small improvements.
v2.1.0 (Build: 2017111810)
- Added a logging system.
- Added a host address in the request.
v2.0.0 (Build: 2017111800)
- Bug fixes;
- Added backup function;
- Plug-in settings are available from the "Server" section;
v1.1.1
1.1.1 (Build: 2017102910)
v1.1.0
Features:
- Added field for additional information;