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

Resend pingback after successfull and wait for the most recent auth request to resolve analytics values #2417

Merged
merged 1 commit into from Mar 4, 2016

Conversation

dvoytenko
Copy link
Contributor

Two important changes in spec:

  1. Pingback will be resend after successful login to signify a new view with the new access profile.
  2. The analytics values and pingback wait for the most recent authorization call to complete, but do tolerate some failures.

Closes #2340

/cc @ashwinlimaye @rudygalfi @sebastianbenz @andreban @adaybujeda @georgecrawford

@@ -394,6 +401,10 @@ export class AccessService {
this.toggleTopClass_('amp-access-loading', false);
this.toggleTopClass_('amp-access-error', true);
});
// At least one promise should succeed.
Copy link
Member

Choose a reason for hiding this comment

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

The comment indicates you want .race?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated comment. The right wording "first promise is always required to complete".

@dvoytenko
Copy link
Contributor Author

@cramforce PTAL

@cramforce
Copy link
Member

LGTM

dvoytenko added a commit that referenced this pull request Mar 4, 2016
Resend pingback after successfull and wait for the most recent auth request to resolve analytics values
@dvoytenko dvoytenko merged commit 163ced1 into ampproject:master Mar 4, 2016
@dvoytenko dvoytenko deleted the access55 branch March 4, 2016 21:12
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.

None yet

2 participants