WEB-718 Show required error message for days till field in delinquency range form#3147
Conversation
|
Note
|
| Cohort / File(s) | Summary |
|---|---|
Delinquency range create form src/app/products/manage-delinquency-buckets/delinquency-range/create-range/create-range.component.html, src/app/products/manage-delinquency-buckets/delinquency-range/create-range/create-range.component.ts |
Removed client-side required enforcement for maximumAgeDays: deleted the required attribute in the template and removed Validators.required from the form control. Pattern and max validators remain unchanged. No other fields or submission flow modified. |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
- WEB-683 Fix validation messages in workflow jobs and create delinquency range shows default value 0 #3113: Modifies
minimumAgeDayshandling in the same create-range component (related validation changes). - WEB-630 Days till field allows negative values in create delinquency range form #3051: Alters
maximumAgeDaysvalidation in the same component (conflicting/overlapping validation changes).
Suggested reviewers
- alberto-art3ch
- gkbishnoi07
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Title check | The PR title claims to 'Show required error message' but the actual changes remove the required validator and make the field optional, which is the opposite of what the title describes. | Update the title to accurately reflect the changes, such as 'WEB-718 Make Days Till field optional in delinquency range form' or similar phrasing that matches the actual implementation. |
✅ Passed checks (2 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
alberto-art3ch
left a comment
There was a problem hiding this comment.
Please see my comments
...oducts/manage-delinquency-buckets/delinquency-range/create-range/create-range.component.html
Outdated
Show resolved
Hide resolved
|
@JaySoni1 please check alberto comment |
|
@gkbishnoi07 @alberto-art3ch before I have made changes earlier the Days Till field was marked with a star, which indicated that it was mandatory and the form could not be submitted without filling it. Based on that, I added the validation message. However, since you mentioned that this field can be left empty so now have to remove the star mark and make the field optional ?
|
54a3c77 to
41909f7
Compare

Changed Made :-
WEB-718
Before :-
After :-
Summary by CodeRabbit