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

#3768 - CAS Supplier Maintenance Updates Part 1 #4002

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

dheepak-aot
Copy link
Collaborator

@dheepak-aot dheepak-aot commented Nov 27, 2024

Added New Column

  • Added new column student_profile_snapshot to sims.cas_suppliers
  • Updated the entity model.

Bug Fix

  • Fixed the bug that does not associate the latest CAS SUPPLIER created to sims.students while adding manually the CAS SUPPLIER NUMBER and SITE CODE by ministry user.

Rollback Evidence

image

@dheepak-aot dheepak-aot added Bug Something isn't working DB DB migration involved labels Nov 27, 2024
@dheepak-aot dheepak-aot self-assigned this Nov 27, 2024
@dheepak-aot dheepak-aot marked this pull request as ready for review November 27, 2024 00:42
@dheepak-aot dheepak-aot added the SIMS-Api SIMS-Api label Nov 27, 2024
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.

Nice work @dheepak-aot . LGTM 👍

manualVerifiedSupplier.creator = auditUser;

// Set manual verified CAS Supplier for the student.
student.casSupplier = manualVerifiedSupplier;
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix ❤️

ADD
COLUMN student_profile_snapshot jsonb;

COMMENT ON COLUMN sims.cas_suppliers.student_profile_snapshot IS 'Snapshot of the student profile details which is captured when the CAS supplier is set to be active.';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe it would be "to be valid", right?

@@ -148,3 +159,16 @@ export interface SupplierAddress {
siteProtected?: string;
lastUpdated: Date;
}
/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor, please add a blank line.

* Student profile snapshot information.
*/
interface StudentProfileSnapshot {
givenName: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this is the snapshot of the student profile I would recommend that it uses the "SIMS tables" conventions where givenName would be firstName. Not a blocker though.

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot 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 and thanks for the bonus fix 😉
Only minor comments but not a blocker.
Looks good 👍

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.05% ( 3733 / 16930 )
Methods: 10.16% ( 214 / 2107 )
Lines: 25.38% ( 3241 / 12768 )
Branches: 13.53% ( 278 / 2055 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.43% ( 583 / 891 )
Methods: 59.26% ( 64 / 108 )
Lines: 68.54% ( 464 / 677 )
Branches: 51.89% ( 55 / 106 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 84.39% ( 1238 / 1467 )
Methods: 84.51% ( 120 / 142 )
Lines: 85.61% ( 1053 / 1230 )
Branches: 68.42% ( 65 / 95 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 67.1% ( 5827 / 8684 )
Methods: 64.86% ( 720 / 1110 )
Lines: 71.06% ( 4578 / 6442 )
Branches: 46.73% ( 529 / 1132 )

@dheepak-aot dheepak-aot deleted the feature/#3768-cas-supplier-maintenance-updates-1 branch November 27, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working DB DB migration involved SIMS-Api SIMS-Api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants