cleans up category 2 error messages when presented "inline" in a category 3 error
creates a new format_error_context which takes a string format. prefix is the default, inline is passed in anywhere a cat3 validator calls a make_validator-created validator.
creates a new python @dataclass called ValidatorErrorArguments - this cleans up the 5 params going into every make_validator-created validator
How to Test
cd tdrs-backend && docker-compose up
cd tdrs-frontend && docker-compose up --build
Summary of Changes
Pull request closes #3016
format_error_context
which takes a stringformat
.prefix
is the default,inline
is passed in anywhere a cat3 validator calls amake_validator
-created validator.@dataclass
calledValidatorErrorArguments
- this cleans up the 5 params going into everymake_validator
-created validatorHow to Test
prefix
format, cat3 errors follow theinline
formatDeliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
lfrohlich
and/oradpennington
confirmed that ACs are met.Deliverable 2: Tested Code
CodeCov Report
comment in PR)CodeCov Report
comment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjolly
andttran-hub
using Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):