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

Cmdct 4229 - pre-populate drawer with plans #11995

Merged
merged 23 commits into from
Jan 13, 2025
Merged

Cmdct 4229 - pre-populate drawer with plans #11995

merged 23 commits into from
Jan 13, 2025

Conversation

britt-mo
Copy link
Contributor

@britt-mo britt-mo commented Jan 7, 2025

Description

The main goal here is to populate the list of plans that appears when you go into a drawer in the analysis methods page in a NAAAR report. The logic to do so already existed for ILOS so this is my attempt to generalize that functionality.

Related ticket(s)

CMDCT-4229


How to test

Create a MCPAR report, add a plan, add an ILOS, go to section D -> ILOS, enter the plan, answer 'yes', see the ilos appears.

Create a NAAAR report, add a plan, go to the analysis methods page and enter one of them, answer 'yes', see the plan appears under the frequency question and radio button options. See that it is the same when adding a new analysis method.

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

Copy link
Contributor

@gmrabian gmrabian left a comment

Choose a reason for hiding this comment

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

I like how you were able to reuse the ilos logic! I have some questions:

services/ui-src/src/utils/forms/dynamicItemFields.ts Outdated Show resolved Hide resolved
@karla-vm
Copy link
Collaborator

karla-vm commented Jan 9, 2025

Other than the comment I added, I agree with all of @gmrabian's comments above! This is looking really good, we just need to clean up a couple of things 😄

@britt-mo britt-mo marked this pull request as ready for review January 10, 2025 18:19
gmrabian
gmrabian previously approved these changes Jan 10, 2025
Copy link
Contributor

@gmrabian gmrabian left a comment

Choose a reason for hiding this comment

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

it's been real
one idea for cleanup 🧹

services/ui-src/src/utils/forms/dynamicItemFields.ts Outdated Show resolved Hide resolved
Copy link

codeclimate bot commented Jan 13, 2025

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

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

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

View more on Code Climate.

@britt-mo britt-mo merged commit 544ffdb into main Jan 13, 2025
19 checks passed
@britt-mo britt-mo deleted the cmdct-4229 branch January 13, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants