Skip to content

Conversation

@andrewsignori-aot
Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot commented Aug 12, 2025

  • Adjusted the allowed JSON payload size to allow the updated full-time student application to be saved from the form.io editor.
  • Minor adjustment to the approval note and note category while automatically approving exceptions.
  • Changed load-assessment-consolidated-data.bpmn to allow data from outside and inside the new containers, allowing part-time to continue to work.
  • Created the new exception containers to wrap the existing exceptions.
    • The new containers are all suffixed with "ApplicationException" and are using the same API key used before by the hidden fields.
    • A new hidden field was created to have the "Exception description".
      • Parents and dependants are appending the full name to the description.
image

@andrewsignori-aot andrewsignori-aot self-assigned this Aug 12, 2025
@andrewsignori-aot andrewsignori-aot added Form.io Form IO definitions changed. Camunda Workers labels Aug 12, 2025
@andrewsignori-aot andrewsignori-aot marked this pull request as ready for review August 13, 2025 19:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR resolves issue #4941 by preventing duplicate exception approvals in the Student Application Form and implementing structural improvements to exception handling.

  • Increased JSON payload size limit from 200KB to 300KB to accommodate larger form data
  • Restructured exception fields into container components with dedicated description fields
  • Updated workflow to support data from both new container and legacy field structures
  • Enhanced exception note handling with better categorization and messaging

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sfaa2025-26-ft.json Restructured all exception fields into containers with dedicated description fields and full name context
load-assessment-consolidated-data.bpmn Added fallback logic to read data from both new container and legacy field structures
application-exception.service.ts Changed note type from General to Application and improved exception count messaging
form.dto.ts Updated JSON size validation from 200KB to 300KB limit
class-validator-constants.ts Increased JSON constant from 200KB to 300KB
app.module.ts Updated body parser limit to use new 300KB constant

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@dheepak-aot dheepak-aot self-requested a review August 13, 2025 20:36
"lockKey": true,
"customConditional": "show = data.studyEndDateBeforeSixWeeksFromToday || data.selectedStudyEndDateBeforeSixWeeksFromToday;",
"calculateServer": true
"customConditional": "show = !data.isProgramSectionReadOnly && !!data.selectedStudyEndDateBeforeSixWeeksFromToday;",
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

"type": "columns",
"columns": [
"label": "Exception Description - Dependant's income tax",
"calculateValue": "value = `Dependant's income tax - ${data.dependants[rowIndex].fullName}`;",
Copy link
Collaborator

@dheepak-aot dheepak-aot Aug 13, 2025

Choose a reason for hiding this comment

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

Will row.fullName name work instead? same in other places

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Apparently, the container adds some isolation that makes this not work.

"type": "columns",
"columns": [
"label": "Exception Description - Dependant's income tax",
"calculateValue": "value = `Dependant's income tax - ${data.dependants[rowIndex].fullName}`;",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a business consideration to include the date of birth to the description?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not so far.

Copy link
Collaborator

@sh16011993 sh16011993 left a comment

Choose a reason for hiding this comment

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

Great work @andrewsignori-aot 👍 Thanks for the doubt clarification.

@dheepak-aot
Copy link
Collaborator

Great work and great progress with the new exception framework. Please take a look at the comments.

@sonarqubecloud
Copy link

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 21.45% ( 4101 / 19120 )
Methods: 9.57% ( 234 / 2445 )
Lines: 24.81% ( 3548 / 14300 )
Branches: 13.43% ( 319 / 2375 )

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 74.3% ( 896 / 1206 )
Methods: 77.14% ( 108 / 140 )
Lines: 77.16% ( 696 / 902 )
Branches: 56.1% ( 92 / 164 )

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 86.43% ( 1548 / 1791 )
Methods: 84.62% ( 176 / 208 )
Lines: 88.75% ( 1278 / 1440 )
Branches: 65.73% ( 94 / 143 )

Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes. Looks good 👍

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 73.81% ( 7281 / 9864 )
Methods: 71.51% ( 896 / 1253 )
Lines: 77.24% ( 5632 / 7292 )
Branches: 57.09% ( 753 / 1319 )

@andrewsignori-aot andrewsignori-aot added this pull request to the merge queue Aug 14, 2025
Merged via the queue into main with commit 23a1005 Aug 14, 2025
26 of 27 checks passed
@andrewsignori-aot andrewsignori-aot deleted the feature/#4941-approved-exception-does-not-repeat-form-definition-ft branch August 14, 2025 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Camunda Workers Form.io Form IO definitions changed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants