cds-snc / cds-snc/platform-forms-client
Run validation check "on save" for templates going into database
- Dominant language
- TypeScript
- Stars
- 46
- Forks
- 16
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 85
Description
## Context
Make sure template keeps into the "right" shape when save to database.
## Description
When we save to the DB, we should be doing a validation check on the template.
“Is this template in the right shape?” -> if not, it throws an error
We can do a lot of validation on the template before they get saved.
## Link
https://docs.google.com/document/d/1OHxpBlBb19wy_4lVtqY7aGi6kRNquvI8uINoM53riNg/edit?tab=t.0
## Related
https://github.com/cds-snc/platform-forms-client/pull/7256
Contributor guide
Research direction
No implementation files or tests are named. Start by reviewing the linked design document and related PR #7256, then trace where templates are saved to the database. Done means malformed templates are rejected during save with an error, with validation coverage for the agreed checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, typescript
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100