Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3596 - Bug on ministry add new SIN to student #4191

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

dheepak-aot
Copy link
Collaborator

@dheepak-aot dheepak-aot commented Dec 31, 2024

Issue

The optional checkbox to Skip the validations returns undefined (When not touched) and null (on form reset) which is considered as bad request as the API is expecting a boolean value for skipValidations.

Solution

  • Initialize the form-model with skipValidations as false.
  • On the event of model value being updated, convert the input value to boolean using the event update:model-value.

Minor Refactor

  • Removed the call to resetValidation() as it has no impact after reset() is called.

image

@dheepak-aot dheepak-aot self-assigned this Dec 31, 2024
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.2% ( 3783 / 17038 )
Methods: 10.19% ( 219 / 2150 )
Lines: 25.65% ( 3278 / 12781 )
Branches: 13.57% ( 286 / 2107 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.59% ( 589 / 898 )
Methods: 59.63% ( 65 / 109 )
Lines: 68.72% ( 468 / 681 )
Branches: 51.85% ( 56 / 108 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 86.14% ( 1249 / 1450 )
Methods: 82.42% ( 136 / 165 )
Lines: 88.51% ( 1032 / 1166 )
Branches: 68.07% ( 81 / 119 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 67.4% ( 5922 / 8787 )
Methods: 65.09% ( 729 / 1120 )
Lines: 71.33% ( 4647 / 6515 )
Branches: 47.4% ( 546 / 1152 )

Copy link
Collaborator

@bidyashish bidyashish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good!

Vscode ESlint giving error
image

Update: Resolved

@bidyashish bidyashish added the Ministry Ministry Features label Dec 31, 2024
Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work @dheepak-aot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ministry Ministry Features Web portal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants