department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

Form526Submission Improvements #75526

Closed tblackwe closed 7 months ago

tblackwe commented 9 months ago

Rational

We currently have multiple means by which a submission may succeed or fail. E.g.

Even when we successfully complete one of these paths, we still often are in a limbo state where we require polling to finalize success of this submission avenue.

Having a bare minimum state machine would allow us to track

Abstract

Proposed states

Proposed Database changes

form526Submission Table

Proposed Code Changes

Ommissions

Polling

Eventually we will be adding a solution for tracking the final status of a successful submission to LH. This will most likely be automated polling. However, for MVP just having a way to track our manual weekly polling will be a massive leap forward.

Granular sub-state

There is a lot to be discovered about how we handle the sub-processes of a submission, e.g. ancillary doc delivery. That is out of scope for MVP.

SamStuckey commented 8 months ago

Update: During implementations, these were the states that ended up making the most sense were a little different. Documented here

SamStuckey commented 8 months ago

Pending PR review and possible discussion with team 1 about how we can use this for their polling

SamStuckey commented 8 months ago

BLOCKED: splitting into 3 PRs to satisfy platform DB migration requirements. First PR here is blocked by an unrelated dependency issue.

Opened a platform ticket to get it resolved

SamStuckey commented 8 months ago

UNBLOCKED: dependancy issue was a flicker, rebasing solved it

SamStuckey commented 8 months ago

PR 1 waiting for review https://github.com/department-of-veterans-affairs/vets-api/pull/15736

SamStuckey commented 8 months ago

For reference, the initial PR, or "PR 0" where the subsequent 3 PR structure was requested

SamStuckey commented 8 months ago

Second (2 of 3) PR

freeheeling commented 8 months ago

Approved third (3 of 3) PR