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

#3710 - Stop part time BC funding - Implement new restriction effect #3956

Merged
merged 13 commits into from
Nov 20, 2024

Conversation

bidyashish
Copy link
Collaborator

@bidyashish bidyashish commented Nov 18, 2024

Technical

@bidyashish bidyashish self-assigned this Nov 18, 2024
@bidyashish bidyashish marked this pull request as draft November 18, 2024 19:11
@bidyashish bidyashish force-pushed the feature/#3710-Stop-part-BC-funding-restriction-effect branch from 763a558 to 04257ba Compare November 18, 2024 23:19
@bidyashish bidyashish marked this pull request as ready for review November 20, 2024 00:19
@bidyashish bidyashish changed the title #3710 - Stop part time BC funding - Implement new restriction effect #3710 - Stop part time BC funding - Implement new restriction effect Part -1 Nov 20, 2024
@bidyashish bidyashish changed the title #3710 - Stop part time BC funding - Implement new restriction effect Part -1 #3710 - Stop part time BC funding - Implement new restriction effect Nov 20, 2024
Comment on lines 1355 to 1357
const b6aRestriction = await db.restriction.findOneBy({
restrictionCode: RestrictionCode.B6A,
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to be specific with the restriction if we find it as below (code from the same file).
No a blocker but it would prevent dealing with the restriction code directly since the E2E test is about the StopPartTimeBCFunding and not about a specific restriction.

const restriction = await db.restriction.findOne({
  where: {
    actionType: ArrayContains([
      RestrictionActionType.StopPartTimeBCFunding,
    ]),
  },
});

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a blocker, but the above code is used in the test case


and can be used at beforeAll part of the test case and passed in both the implementations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you suggestion,
Updated the E2E to get restriction instead of B6A.

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot Nov 20, 2024

Choose a reason for hiding this comment

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

Thanks for making the change.
@guru-aot I am approving the PR since this entire comment was just a suggestion even though I saw value in your suggested change.

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.

@guru-aot guru-aot self-requested a review November 20, 2024 17:50
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.

Nice Work @bidyashish , please have a look on the comments.

Copy link

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.09% ( 3718 / 16831 )
Methods: 10.19% ( 214 / 2101 )
Lines: 25.43% ( 3226 / 12687 )
Branches: 13.61% ( 278 / 2043 )

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: 86.93% ( 1244 / 1431 )
Methods: 88.57% ( 124 / 140 )
Lines: 87.78% ( 1056 / 1203 )
Branches: 72.73% ( 64 / 88 )

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, looks good 👍

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 66.96% ( 5773 / 8622 )
Methods: 64.8% ( 718 / 1108 )
Lines: 70.88% ( 4530 / 6391 )
Branches: 46.75% ( 525 / 1123 )

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

@bidyashish bidyashish added this pull request to the merge queue Nov 20, 2024
Merged via the queue into main with commit fb662da Nov 20, 2024
20 checks passed
@bidyashish bidyashish deleted the feature/#3710-Stop-part-BC-funding-restriction-effect branch November 20, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants