Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Don't double-load raven-js #4275

Merged
merged 2 commits into from Nov 20, 2018
Merged

Don't double-load raven-js #4275

merged 2 commits into from Nov 20, 2018

Conversation

mxstbr
Copy link
Contributor

@mxstbr mxstbr commented Nov 20, 2018

We were already loading raven via a script tag in the SSR template, but then still including the raven-js package in the frontend.

This fixes it by only using the global raven from the script tag.

Should definitely be tested on alpha first.

Status

  • WIP
  • Ready for review
  • Needs testing

Deploy after merge (delete what needn't be deployed)

  • hyperion (frontend)

We were already loading raven via a script tag in the SSR template, but
then still including the `raven-js` package in the frontend.

This fixes it by only using the global raven from the script tag.
@spectrum-bot
Copy link

spectrum-bot bot commented Nov 20, 2018

Fails
🚫

5 console statement(s) left in src/actions/authentication.js.

Warnings
⚠️

These modified files do not have Flow enabled:

  • src/actions/authentication.js
  • src/helpers/sentry-redux-middleware.js

Generated by 🚫 dangerJS

brianlovin
brianlovin previously approved these changes Nov 20, 2018
Copy link
Contributor

@brianlovin brianlovin left a comment

Choose a reason for hiding this comment

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

LGTM, will do an alpha cut this morning

@brianlovin
Copy link
Contributor

Happy to ignore peril and remove console logs before prod cut

@brianlovin
Copy link
Contributor

Actually @mxstbr want to just throw this up on alpha quickly to see that the context setting works, and then remove the consoles in a new commit?

@mxstbr
Copy link
Contributor Author

mxstbr commented Nov 20, 2018

Deploying to alpha now!

@brianlovin brianlovin merged commit 422c864 into alpha Nov 20, 2018
@brianlovin brianlovin deleted the dont-double-load-raven branch November 20, 2018 19:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants