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

Move setting up of ASSISTED_DIGITAL flag in AASM machine #533

Merged
merged 2 commits into from
Oct 25, 2019

Conversation

cintamani
Copy link
Contributor

Solve: https://eaflood.atlassian.net/browse/RUBY-718

We used the RenewalCompletionService to setup the metaData route of the transient_registration to the correct application-level configuration of ASSISTED_DIGITAL vs DIGITAL.
This was causing some registration to be incorrectly flagged as ASSISTED_DIGITAL, because the same service is run in the back-office application when a conviction check or payment check have been completed.
In order to make sure that we only flag the registration at the end of the forms workflow, we have moved the setting from the Service to the workflow AASM state machine.

@cintamani cintamani added bug Something isn't working housekeeping Changes such as refactoring labels Oct 23, 2019
@cintamani cintamani self-assigned this Oct 23, 2019
Solve: https://eaflood.atlassian.net/browse/RUBY-718

We used the `RenewalCompletionService` to setup the metaData route of the transient_registration to the correct application-level configuration of `ASSISTED_DIGITAL` vs `DIGITAL`.
This was causing some registration to be incorrectly flagged as `ASSISTED_DIGITAL`, because the same service is run in the back-office application when a conviction check or payment check have been completed.
In order to make sure that we only flag the registration at the end of the forms workflow, we have moved the setting from the Service to the workflow AASM state machine.
@cintamani cintamani force-pushed the 718-assisted-digital-flagging branch from 15c843d to 317fa23 Compare October 24, 2019 12:48
@cintamani cintamani marked this pull request as ready for review October 24, 2019 12:49
@cintamani cintamani changed the title Move setting up of ASSISTED_DIGITAL flag in AASM machine [WIP] Move setting up of ASSISTED_DIGITAL flag in AASM machine Oct 24, 2019
@cintamani cintamani changed the title [WIP] Move setting up of ASSISTED_DIGITAL flag in AASM machine Move setting up of ASSISTED_DIGITAL flag in AASM machine Oct 25, 2019
Copy link
Member

@irisfaraway irisfaraway left a comment

Choose a reason for hiding this comment

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

nice

@cintamani cintamani merged commit 8e26e19 into master Oct 25, 2019
@cintamani cintamani deleted the 718-assisted-digital-flagging branch October 25, 2019 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working housekeeping Changes such as refactoring
Projects
None yet
2 participants