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
Tech debt: New Relic filtering: move up check for JS error filtering #14759
Conversation
|
||
//Included early to prevent JS Errors from being sent to New Relic | ||
%script{src: minifiable_asset_path('js/layouts/application.js')} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason this shouldnt also be before essential/code-studio-common?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or alternatively, could we even just make it so that this ends up IN essential I wonder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some errors (e.g. UncaughtException: duplicate formal argument e
in very old versions of Firefox) appear to be coming from files we've imported but haven't run yet. Maybe there's a better workaround?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1829e67
to
9ef891b
Compare
@Bjvanminnen and @joshlory This now adds the new relic check to the build essential.js by creating an essential.js entry point that will be contanated with what gets build here: https://github.com/code-dot-org/code-dot-org/blob/staging/apps/Gruntfile.js#L510 |
It looks like |
The unsupportedBrowser check won't work before essential.js because my upstanding is essential loads what makes the rest of our JS work. |
Ah, I see — |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be tempted to put essential.js
before application.js
unless there's an order dependency there. Otherwise LGTM 👍 thanks for fixing!
@joshlory |
I moved the New Relic filtering outside of code-studio and into a separate entry point that happens earlier. I was hoping to add it earlier, but got some errors at each level earlier so I figured this was at least a good start.