signebedi / libreforms-fastapi

FastAPI implementation of the libreForms spec
GNU Affero General Public License v3.0
1 stars 1 forks source link

[form] add form event hooks #70

Open signebedi opened 3 months ago

signebedi commented 3 months ago

In past version of libreForms, we had event hooks for onCreate, onRead, onUpdate, onApproval, onDisapproval, and onDuplication. Perhaps we add onDelete and onSign event hooks here too.

Originally posted by @signebedi in https://github.com/signebedi/libreforms-fastapi/issues/59#issuecomment-2019307589

signebedi commented 3 months ago

We should use background tasks for these, and build some assumptions into the types of params that will be passed. For example, onCreate will pass the document data, etc.