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

analytics: bail out for detached targets #32637

Merged
merged 5 commits into from
Feb 12, 2021
Merged

Conversation

samouri
Copy link
Member

@samouri samouri commented Feb 12, 2021

summary
Followup to #32578.

When a node is detached, we can't perform our standard analytics flow for it (which includes finding its window + ampdoc).
While I'm sure each individual instance where this could occur needs its own handling, we can at least throw a more specific error so that we can identify the issue correctly (as well as not spiral into other unrelated errors due to unexpected throws - like missing AMP_TOP etc.).

Example error:
Screen Shot 2021-02-10 at 11 04 33 AM

@amp-owners-bot amp-owners-bot bot requested a review from zhouyx February 12, 2021 17:26
@samouri samouri requested review from micajuine-ho and removed request for zhouyx February 12, 2021 18:51
@lgtm-com
Copy link

lgtm-com bot commented Feb 12, 2021

This pull request introduces 3 alerts when merging edef13a into deba5a4 - view on LGTM.com

new alerts:

  • 3 for Syntax error

@samouri samouri merged commit ae4a276 into ampproject:master Feb 12, 2021
@samouri samouri deleted the analytics branch February 12, 2021 21:33
samouri added a commit that referenced this pull request Feb 25, 2021
samouri added a commit that referenced this pull request Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants