HHS / Head-Start-TTADP

OHS TTA Hub data system. ACF SO, Dana Jones-Quartey. Tech lead: Krys Wisnaskas
Main: https://ttahub.ohs.acf.hhs.gov/
21 stars 7 forks source link

[TTAHUB-3611] Fix goal source validation #2464

Closed thewatermethod closed 2 weeks ago

thewatermethod commented 2 weeks ago

Description of change

Prevent submitting a goal via the RTR with no goal source. Mark section invalid on AR if goal is missing source

How to test

Confirm that you can't create a goal with no source on RTR or submit an AR with a goal that has no source Multi-grant/recipient reports do not show the source field in the UI. Confirm you can submit a multi-grant/recipient report

Issue(s)

Checklists

Every PR

Before merge to main

Production Deploy

After merge/deploy

thewatermethod commented 2 weeks ago

Overall looks good. However one thing I noticed but not sure if its part of this ticket.

  • Create an AR

  • Add two recipients

  • Create a goal without setting a source (as its not required for multi recip reports), then save the goal

  • fill out the rest of the AR and save

  • Now go back to the summary remove one of the recipients

  • You are still able to submit the report with the goal now missing a source (also approve it)

If this is outside the scope of this ticket let me know and I can approve.

@AdamAdHocTeam You shouldn't be able to submit the report... were you able to?

AdamAdHocTeam commented 2 weeks ago

Overall looks good. However one thing I noticed but not sure if its part of this ticket.

  • Create an AR
  • Add two recipients
  • Create a goal without setting a source (as its not required for multi recip reports), then save the goal
  • fill out the rest of the AR and save
  • Now go back to the summary remove one of the recipients
  • You are still able to submit the report with the goal now missing a source (also approve it)

If this is outside the scope of this ticket let me know and I can approve.

@AdamAdHocTeam You shouldn't be able to submit the report... were you able to?

@thewatermethod yes and approve.