Skip to content

#5816 - Appeals/Forms history view, data connection, and institution view - Fix Institution Notes#5893

Merged
andrewsignori-aot merged 3 commits intomainfrom
fix/#5816-notes-not-displayed-for-institutions
Mar 13, 2026
Merged

#5816 - Appeals/Forms history view, data connection, and institution view - Fix Institution Notes#5893
andrewsignori-aot merged 3 commits intomainfrom
fix/#5816-notes-not-displayed-for-institutions

Conversation

@andrewsignori-aot
Copy link
Copy Markdown
Collaborator

Fix the error introduced in the last refactor prior to merging the PR that prevents the final note decision from being displayed for institutions.

image

@andrewsignori-aot andrewsignori-aot marked this pull request as ready for review March 12, 2026 23:21
@andrewsignori-aot andrewsignori-aot self-assigned this Mar 12, 2026
@andrewsignori-aot andrewsignori-aot added Institution Institution Features SIMS-Api SIMS-Api labels Mar 12, 2026
Copy link
Copy Markdown
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

Fixes a regression in the Form Submission API mapping that prevented institutions from seeing the final decision note description after a submission was completed, while still keeping decision details hidden for pending submissions by default.

Changes:

  • Decouples includeBasicDecisionDetails from keepPendingDecisionsWhilePendingFormSubmission so institutions can receive decision note details on completed submissions.
  • Updates decision mapping to restrict both status and note details only when the submission is pending and restrictions are enabled.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Copy Markdown
Collaborator

@weskubo-cgi weskubo-cgi 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. Just two non-blocking comments.

: submissionItem.currentDecision?.decisionStatus;
// Default to Pending if no decision exists.
submissionStatus === FormSubmissionStatus.Pending;
// Defined the status.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"Define the status." might read better. Same comment applies below.

includeBasicDecisionDetails =
options?.includeBasicDecisionDetails ?? false;
}
const includeBasicDecisionDetails =
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I noticed that form-submission.aest.controller.ts passes in includedBasicDecisionDetails : false (which is the default) whereas other controllers which require false just omit it.

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 20.17% ( 4564 / 22624 )
Methods: 9.52% ( 262 / 2751 )
Lines: 24.51% ( 3916 / 15977 )
Branches: 9.91% ( 386 / 3896 )

@github-actions
Copy link
Copy Markdown

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 48.61% ( 2712 / 5579 )
Methods: 38.57% ( 285 / 739 )
Lines: 55.39% ( 2049 / 3699 )
Branches: 33.13% ( 378 / 1141 )

@github-actions
Copy link
Copy Markdown

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 79.6% ( 9155 / 11501 )
Methods: 78.79% ( 1181 / 1499 )
Lines: 82.83% ( 6881 / 8307 )
Branches: 64.48% ( 1093 / 1695 )

@github-actions
Copy link
Copy Markdown

E2E SIMS API Coverage Report

Totals Coverage
Statements: 64.4% ( 12680 / 19689 )
Methods: 60.57% ( 1473 / 2432 )
Lines: 68.2% ( 9250 / 13564 )
Branches: 52.99% ( 1957 / 3693 )

Copy link
Copy Markdown
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.

Looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Institution Institution Features SIMS-Api SIMS-Api

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants