-
Notifications
You must be signed in to change notification settings - Fork 106
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
[#173510346] Fixes test 2e2 #1959
Conversation
Affected stories
Generated by 🚫 dangerJS |
case BonusActivationStatusEnum.PROCESSING: | ||
return left(none); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case the user will see the generic error page (cancel / retry). Is it right when in processing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabriziofff
The comment is misleading. In that case we should continue to polling.
Do you confirm?
update within bd8a090
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (
bonusActivationFromIdResult.isLeft() &&
bonusActivationFromIdResult.value.isSome()
) {
throw bonusActivationFromIdResult.value;
}
If I understand right when getBonusActivation
return any left
value, the polling is stopped and a activateBonusVacanze.failure(e)
is dispatched. So all the switch cases will stop the polling. It is right?
EDIT: nvm, left(none) will continue the polling, I understand now!
Short description:
Fixes test 2e2