feature(FS-388): Update dissolution controller to return draft or pending transaction model dissolutions - #796
Open
gsraich wants to merge 3 commits into
Open
Conversation
…ions in DRAFT or PENDING state. Used by clients to get the transaction_id for existing dissolution requests.
|
|
CI: Security warnings found! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




JIRA Ticket ID: FS-388
Context
As part of the Dissolution Transaction Model migration, all the new routes will include a
transaction_idpath parameter, which the client (dissolution-web) provides after it has created a transaction and a newDRAFTdissolution for a new application.However, there isn't a mechanism in place to handle the scenarios where you need to get a dissolution without a
transaction_id, particularly when:We need a way to handle these cases and return a
transaction_idin theGetDissolutionResponsepayload.Description
This PR adds the
transaction_idand a top levelDissolutionStatusto the dissolution model, returning these in theGETendpoint defined in theDissolutionController.These changes will enable the
redirect.controllerindissolution-webto fetch a draft or pending dissolution and resume the transaction model journey for an application.There are important considerations with the approach taken here, which I will outline:
activeflagactivedissolutions for the companyThese changes assume / require that a new dissolution db document is created with:
transaction_idDissolutionStatusactiveflag set tofalseFAQ
No, there isn't a mechanism to create dissolutions with a
transaction_id, it should be set as null/undefined/empty string in the db.