common-hosted-form-service
common-hosted-form-service copied to clipboard
FORMS-1412 Allow designers to add custom metadata to the form.
Description
To support Row level security/filtering and decoupling CHEFS and external systems, allow form designers to add custom metadata for the form. For example, add an external id.
For flexibility, the form metadata is a JSON blob.
Calls to External APIs will add this JSON as a utf8/base64 encoded string with the header: X-FORM-METADATA. Future revisions will support them specifyin their own header name, but keeping simple for now.
Type of Change
feat (a new feature)
Checklist
- [x] I have read the CONTRIBUTING doc
- [x] I have checked that unit tests pass locally with my changes
- [x] I have run the npm script lint on the frontend and backend
- [x] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)
- [x] I have approval from the product owner for the contribution in this pull request
Further comments
Documentation will be in the tech docs repository.
Release 969cd935f082b32826d704b591833791d9fffa44 deployed at https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-1509
Release 969cd935f082b32826d704b591833791d9fffa44 deployed at https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-1509