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

feat(Carta Giovani Nazionale): [#176870737] Implements CGN Activation Workflow by using the specific GET Status API for polling #2812

Merged
merged 118 commits into from
Mar 1, 2021

Conversation

CrisTofani
Copy link
Contributor

@CrisTofani CrisTofani commented Feb 11, 2021

THIS PR DEPENDS ON #2773

Short description

This PR changes the API for polling and receive the updated status of the CGN Activation during the onboarding funnel

Previous activation workflow and API

  1. fetch the /cgn/activation via POST request to ask for activation to start
  2. poll for a max of 10 seconds to /cgn/status via GET to know the activation status

New activation workflow and API

  1. fetch the /cgn/activation via POST to ask for activation to start
  2. poll for a max of 10 seconds on /cgn/activation via GET request to know the activation status

If status is ERROR or COMPLETED stop polling, throws an error or dispatch success action, any other case keep polling

CrisTofani and others added 30 commits January 12, 2021 17:53
@CrisTofani CrisTofani requested a review from fabriziofff March 1, 2021 09:56
@fabriziofff fabriziofff merged commit 406cb03 into master Mar 1, 2021
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.

5 participants