phenotips / open-pedigree

A free and open-source pedigree tool by PhenoTips®
GNU Lesser General Public License v2.1
46 stars 25 forks source link

Enable custom load/save function #27

Closed AlgyTaylor closed 3 years ago

AlgyTaylor commented 3 years ago

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 :)

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

buske commented 3 years ago

Thanks, @AlgyTaylor! This is great. If you could sign the CLA, I'll go ahead and merge this.

AlgyTaylor commented 3 years ago

@buske - thanks, signed :)