Repository navigation
Description
This epic aims to align backend and frontend validation logic for enabled features to ensure a consistent and predictable user experience during API user onboarding. By unifying validation rules, we reduce the risk of mismatches between the UI and API behavior, simplify troubleshooting, and provide clearer feedback to users. This alignment is a critical step toward streamlining and scaling the onboarding process for the API users (Group 2 onboarding).
For anything involving data validation and business logic, the solution should primarily be backend/API-driven, with the front-end acting as a supportive layer (e.g. for UX).
Priority : Validation logic for the features that are enabled in Prod.
Notes:
This work started as part of Sandbox development - see tickets in https://app.zenhub.com/workspaces/entities---olga-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/27848
See Detailed analysis worksheet from Sandbox:
https://docs.google.com/spreadsheets/d/1N5zs291nvPpHbGCxJS9jmxX3yoUyG_mi-906j-_TuHo/edit?gid=377655930#gid=377655930
New spreadsheet to track Analysis by Filing:
https://docs.google.com/spreadsheets/d/1qhe_lkBQyiiNKBBdPxM5v5Ub6lGuBK1QrC33yJRnV3U/edit?usp=sharing
Tasks:
- Assess what's already aligned between Frontend and Backend from the sandbox phase.
- Identify gaps or mismatches between FE, BE, and the API for features enabled for Group 2 onboarding
- Address the difference
- Add necessary logging for BE validation (coordinate this work with https://app.zenhub.com/workspaces/entities---olga-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/29794)
Filings:
Core public facing filings and features already enabled in Production (AR, Change of Directors, Change of Address, Incorporation Application, Alteration)
Risks if not addressed/implemented:
• Data Integrity issues - Inconsistent validation rules can lead to invalid or partial data being accepted by the backend resulting in invalid filings, and impacting downstream services or reports .
• Increased support load – possible rise in IT OPS tickets
• Security risks - increases the attack surface for malicious inputs
• Integration issues for API clients – they may have to guess the correct format or write extra logic to handle edge cases
Activity
severinbeauvais commentedon Jul 30, 2025
-> Consider the UI as the "source of truth" for validations.
severinbeauvais commentedon Jul 30, 2025
Assigned to Megan per discussion with Olga.
This is an epic. Tickets will need to be created.
A hand-over from Eason and Aimee will need to be done first to see what they've already done and what's left.
43 remaining items
[-]Align backend (BE) and frontend (FE) validation for enabled features.[/-][+]Align backend (BE) and frontend (FE) validation for initially launched filings[/+]