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

Sentry errors #606

Merged
merged 4 commits into from
Sep 30, 2022
Merged

Sentry errors #606

merged 4 commits into from
Sep 30, 2022

Conversation

annehaley
Copy link
Contributor

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 29, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3419074
Status: ✅  Deploy successful!
Preview URL: https://36aabb9c.miqa.pages.dev
Branch Preview URL: https://sentry-errors.miqa.pages.dev

View logs

Comment on lines 415 to 416
currentViewData?.scanDecisions === undefined
|| currentViewData?.scanDecisions?.length === 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
currentViewData?.scanDecisions === undefined
|| currentViewData?.scanDecisions?.length === 0
!currentViewData?.scanDecisions?.length

Is this equivalent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks for the short version!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I'm discovering that neither works; we cannot use the ? operator like this within the template. vuejs/vue#11088.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If we did want to use that syntax, we could throw it into a computed property and use that in the template.

@codecov-commenter
Copy link

Codecov Report

Base: 72.77% // Head: 72.77% // No change to project coverage 👍

Coverage data is based on head (3419074) compared to base (3a23825).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #606   +/-   ##
=======================================
  Coverage   72.77%   72.77%           
=======================================
  Files          38       38           
  Lines        1627     1627           
=======================================
  Hits         1184     1184           
  Misses        443      443           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@annehaley annehaley marked this pull request as ready for review September 29, 2022 20:24
@zachmullen
Copy link
Collaborator

LGTM. I think moving a lot of this to typescript would catch a lot of these errors at build time.

@annehaley annehaley merged commit 41d0027 into master Sep 30, 2022
@annehaley annehaley deleted the sentry-errors branch September 30, 2022 15:36
zachmullen pushed a commit that referenced this pull request Dec 19, 2022
* Enforce consistent api response destructuring (Sentry error dfc24eeb686f4f2288baec1c541ce36d)

* Avoid sending requests with undefined references (Sentry error 873d87beddb0406ba50ffa2a56a27f66)

* Avoid accessing properties of undefined objects (various Sentry errors)

* No optional chaining in template
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.

3 participants