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
282 stars 200 forks source link

[0781 Redirect] Limit the new feature to only new claims #92199

Open lisacapaccioli opened 2 weeks ago

lisacapaccioli commented 2 weeks ago

Waiting on DEV to provide what element they will use to determine in progress vs. new claim.

The system must limit the 781 redirect feature to only new claims from the time of release. Claims that were in progress before the release should not be impacted by any changes.

Example as a way to explain the expectations:

We can tell if the user has an inprogress form as part of the inProgressForms attribute that is returned from the user api endpoint. If they have not started a form yet it will be an empty array.


For an in-progress form we will have the following data, and can determine from it which path to take at the onset of them resuming, if needed, but I thought I recalled us only enabling the flow for new users, meaning we would only check if they had an in progress on or not, if so, take new path (and set a flag, such as version, in it to know it is the new path).

     {
            "form": "21-526EZ",
            "metadata": {
                "version": 9,
                "returnUrl": "/review-veteran-details/military-service-history",
                "savedAt": 1713811317420,
                "submission": {
                    "status": false,
                    "errorMessage": false,
                    "id": false,
                    "timestamp": false,
                    "hasAttemptedSubmit": false
                },
                "cfiMetric": {
                    "initLogged": true,
                    "cfiLogged": false
                },
                "createdAt": 1713811314,
                "expiresAt": 1745347317,
                "lastUpdated": 1713811317,
                "inProgressFormId": 31659
            },
            "lastUpdated": 1713811317
        },
lisacapaccioli commented 5 days ago

@kylesoskin I copied what you wrote from the spike into here. If you could confirm any requirements that need to be tracked for coding, testing, delivering (whatever) that would be appreciated. Thanks