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

[#173510346] Fixes test 2e2 #1959

Merged
merged 18 commits into from
Jun 26, 2020
Merged

[#173510346] Fixes test 2e2 #1959

merged 18 commits into from
Jun 26, 2020

Conversation

Undermaken
Copy link
Contributor

@Undermaken Undermaken commented Jun 25, 2020

Short description:
Fixes test 2e2

  • fix on eligibility response interpretation
  • fix on bonus activation responses interpretation
  • fix some bugs on cta nested inside message content
  • improve the cta nested code

@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Jun 25, 2020

Affected stories

Generated by 🚫 dangerJS

@Undermaken Undermaken marked this pull request as ready for review June 25, 2020 16:14
@Undermaken Undermaken requested a review from CrisTofani June 25, 2020 16:48
@Undermaken Undermaken requested a review from fabriziofff June 25, 2020 17:19
Comment on lines +51 to +52
case BonusActivationStatusEnum.PROCESSING:
return left(none);
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@fabriziofff fabriziofff Jun 26, 2020

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!

@Undermaken Undermaken merged commit 816b9f3 into master Jun 26, 2020
@fabriziofff fabriziofff deleted the 173510346-fixes branch January 21, 2022 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants