Adds the ability to specify custom load/save functions to replace those in the LoadSaveEngine. If left unspecified, the current (Phenotips) save function is used. This enables a number of possibilities, such as using JWT authentication with OpenPedigree, or linking to different types of APIs (such as GraphQL).
Save functionality is effectively disabled in OpenPedigree, so I've added an optional 'autosave' flag to the config which fires the save function (either custom or default) .
Appreciate this expands the scope a bit more than I'd originally planned, but it was semi-necessary to test the save functionality.
Adds the ability to specify custom load/save functions to replace those in the
LoadSaveEngine
. If left unspecified, the current (Phenotips) save function is used. This enables a number of possibilities, such as using JWT authentication with OpenPedigree, or linking to different types of APIs (such as GraphQL).Save functionality is effectively disabled in OpenPedigree, so I've added an optional 'autosave' flag to the config which fires the save function (either custom or default) . Appreciate this expands the scope a bit more than I'd originally planned, but it was semi-necessary to test the save functionality.
Please let me know if any changes are required :)