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

#3965 - Separate Sequencing for FT and PT eCert Numbers #4207

Merged
merged 11 commits into from
Jan 7, 2025

Conversation

bidyashish
Copy link
Collaborator

@bidyashish bidyashish commented Jan 6, 2025

Technical

  • Append the offering intensity as a prefix following the same done for MSFAA.
  • Create the DB migration to rename the current DISBURSEMENT_DOCUMENT_NUMBER to Part Time_DISBURSEMENT_DOCUMENT_NUMBER.
  • Upinsert the mentioned values for non-PROD (DEV/TEST/Staging).

Db Migrations: Run
image

Db Migrations:: Demo
image

Db Migrations: Revert
image

Up Insert: non-PROD (DEV/TEST/Staging).

-- Part Time Document Number Sequence Control
UPDATE sims.sequence_controls
SET sequence_number = 200000
WHERE sequence_name = 'Part Time_DISBURSEMENT_DOCUMENT_NUMBER';

-- Full Time Document Number Sequence Control
UPDATE sims.sequence_controls
SET sequence_number = 12000000
WHERE sequence_name = 'Full Time_DISBURSEMENT_DOCUMENT_NUMBER';

Extra E2E Test sources/packages/backend/apps/api/src/route-controllers/confirmation-of-enrollment/_tests_/e2e/confirmation-of-enrollment.institutions.confirmEnrollment.e2e-spec.ts

image

@bidyashish bidyashish self-assigned this Jan 6, 2025
@bidyashish bidyashish marked this pull request as draft January 6, 2025 20:10
@bidyashish bidyashish added the DB DB migration involved label Jan 6, 2025
@bidyashish bidyashish marked this pull request as ready for review January 6, 2025 21:41
@lewischen-aot lewischen-aot self-requested a review January 6, 2025 23:14
Comment on lines 125 to 126
);
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can also assert that the sequence control record created by the COE operation has the correct sequence name, which is "Part Time_DISBURSEMENT_DOCUMENT_NUMBER", and the sequence number is the document number for the disbursement schedule record of the application.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the sequence Control Assert test.

Comment on lines 92 to 94

it("Should allow the COE confirmation when the application is on Enrolment status and all the conditions are fulfilled for Part Time offering.", async () => {
// Arrange
Copy link
Collaborator

@lewischen-aot lewischen-aot Jan 6, 2025

Choose a reason for hiding this comment

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

Not a blocker. As a recommendation, since the PR is to separate FT and PT sequence names, it would be nice to include a test case for FT application to verify the sequence name as "Full Time_DISBURSEMENT_DOCUMENT_NUMBER".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the sequence Control Assert test for Full Time.

@lewischen-aot
Copy link
Collaborator

Nice work for getting the gist of the story in this PR 👍 Please take a look at some minor comments.

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.

Nice work, please take a look at the comments.

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.

Thanks for making the changes, only minor changes left.

Copy link

sonarqubecloud bot commented Jan 7, 2025

Copy link

github-actions bot commented Jan 7, 2025

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.22% ( 3781 / 17020 )
Methods: 10.19% ( 219 / 2150 )
Lines: 25.65% ( 3276 / 12770 )
Branches: 13.62% ( 286 / 2100 )

Copy link

github-actions bot commented Jan 7, 2025

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

github-actions bot commented Jan 7, 2025

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

github-actions bot commented Jan 7, 2025

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

@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.

Thanks for making the changes, nice work, looks good 👍

Copy link
Collaborator

@lewischen-aot lewischen-aot left a comment

Choose a reason for hiding this comment

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

PR looks great. Nice work 👍

@bidyashish bidyashish added this pull request to the merge queue Jan 7, 2025
Merged via the queue into main with commit 810b096 Jan 7, 2025
21 checks passed
@bidyashish bidyashish deleted the feature/#3965-sepearte-ft-pt-ecert-numbers branch January 7, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DB DB migration involved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants