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

GV Refactor - ComplexNoNonZeroNumOrDenom #2428

Merged
merged 5 commits into from
Sep 23, 2024
Merged

GV Refactor - ComplexNoNonZeroNumOrDenom #2428

merged 5 commits into from
Sep 23, 2024

Conversation

ailZhou
Copy link
Collaborator

@ailZhou ailZhou commented Sep 12, 2024

Description

This validation is only used in AIF-HH & IU-HH. It triggers when you manually override the rate in N/D/R and set it to 0 if numerator and denominator are not 0.

Example of AIF-HH:

When rate is zero in Performance Measure NDR:
Screenshot 2024-09-13 at 11 08 01 AM

Screenshot 2024-09-13 at 11 09 20 AM

When rate is zero in OMS NDR:
Screenshot 2024-09-13 at 11 08 10 AM

Screenshot 2024-09-13 at 11 09 24 AM

When rate is zero in Other Performance Measure - OMS NDR:
Screenshot 2024-09-13 at 11 12 46 AM

Screenshot 2024-09-13 at 11 12 39 AM

Related ticket(s)

CMDCT-3961


How to test

Deploy Link: https://dh6fso9hk982p.cloudfront.net/

  1. Sign into QMR, stateuserWA@test.com
  2. In reporting year 2024, select AIF-HH
  3. In the Data Source section, check Other Data Source

To test Performance Measure

  1. In Measure Specification section, select the first radio button
  2. Scroll down to Performance Measure, and fill out the first row
    • change the values of the fields in the red square box to 0
      Screenshot 2024-09-13 at 11 08 01 AM
  3. Scroll down to the Optional Measure Stratification section and fill out a Total N/D/R, make the same changes as above.
  4. Validate and you should see these 2 error messages.
    Screenshot 2024-09-13 at 11 21 27 AM

Notes


Pre-review checklist

  • I have added thorough tests, if necessary
  • I have updated relevant documentation, if necessary
  • I have performed a self-review of my code
  • I have manually tested this PR in the deployed cloud environment

Pre-merge checklist

Review

  • Design: This work has been reviewed and approved by design, if necessary
  • Product: This work has been reviewed and approved by product owner, if necessary

Security

If either of the following are true, notify the team's ISSO (Information System Security Officer).

  • These changes are significant enough to require an update to the SIA.
  • These changes are significant enough to require a penetration test.

convert to a different template: test → val | val → prod

@ailZhou ailZhou added the ready for review Ready for all the reviews! label Sep 13, 2024
Copy link

codeclimate bot commented Sep 23, 2024

Code Climate has analyzed commit bf3f1ba and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 85.0% (0.7% change).

View more on Code Climate.

Copy link
Contributor

@angelaco11 angelaco11 left a comment

Choose a reason for hiding this comment

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

I am very excited about this refactor after having to work in this code before said refactor. This cleanup significantly improves the readability and flow of the code so great work.

tested on cloudfront and everything is working as expected!

@ailZhou ailZhou merged commit 6d1fa5c into master Sep 23, 2024
23 checks passed
@ailZhou ailZhou deleted the cmdct-3961-nonzero branch September 23, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Ready for all the reviews!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants