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

[arcade-services] BarViz INT is failing to load #4758

Closed
alexperovich opened this issue Feb 4, 2020 · 4 comments · Fixed by dotnet/arcade-services#945
Closed

[arcade-services] BarViz INT is failing to load #4758

alexperovich opened this issue Feb 4, 2020 · 4 comments · Fixed by dotnet/arcade-services#945
Assignees

Comments

@alexperovich
Copy link
Member

https://maestro-int.westus2.cloudapp.azure.com/ is currently failing with the following error:
Uncaught TypeError: Cannot read property 'curveLinear' of undefined
at Object.cSR1 (vendor.4440b98fef4fe902be4a.js:formatted:48556)
at f (runtime.26209474bfa8dc87a77c.js:1)
at Object.EiaH (vendor.4440b98fef4fe902be4a.js:formatted:17993)
at f (runtime.26209474bfa8dc87a77c.js:1)
at Module.zUnb (main.3ec08af1b26dffef1c7f.js:1)
at f (runtime.26209474bfa8dc87a77c.js:1)
at Object.0 (main.3ec08af1b26dffef1c7f.js:1)
at f (runtime.26209474bfa8dc87a77c.js:1)
at t (runtime.26209474bfa8dc87a77c.js:1)
at Array.r [as push] (runtime.26209474bfa8dc87a77c.js:1)

@alexperovich alexperovich changed the title [arcade-services] [arcade-services] maestro INT is failing. Feb 4, 2020
@michellemcdaniel michellemcdaniel self-assigned this Feb 5, 2020
@michellemcdaniel
Copy link
Contributor

Alex and I tracked this down to the fact that we have minification turned on for BarViz and the d3 package not meeting the coding guidelines angular-cli has set in place for functional minification. Essentially, certain getters are being optimized away. After searching around for a bit, I found that this is a known issue, see angular/angular-cli#11439. That issue lays out the fact that the angular cli folks know about this sort of thing and are not going to update angular-cli to allow greater controllability of the UglifyJS options. The community has suggested the following options:

  1. Turn off optimization (this will double the size of the bundle).
  2. Turn off buildOptimize (likely will do the same as wholesale turning off optimization.
  3. Create a patch file that modifies the angular-cli file that sets pure_getters to true, and make it default to false. People who have tried this suggest that it only increases their bundle size a small amount (I think one person said 0.7%), and allows for full functionality.

My plan is to try option 3 today and sees how that goes. If it works, great. Otherwise, we will need to discuss either using option 2, or reworking the code that uses d3 to render the graph to use angular to render this. We did it that way in mission control, so it should be doable, but will take more time.

@michellemcdaniel
Copy link
Contributor

After a little more digging, and attempting option 3 (which failed), I found this issue in d3-color: d3/d3-color#68. It suggests upgrading angular-cli to version 8. @alexperovich do you see any issue with this?

@riarenas
Copy link
Member

riarenas commented Feb 5, 2020

Reopening until rollout.

@riarenas riarenas reopened this Feb 5, 2020
@riarenas riarenas changed the title [arcade-services] maestro INT is failing. [arcade-services] BarViz INT is failing to load Feb 10, 2020
@riarenas
Copy link
Member

This is rolled out.

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 a pull request may close this issue.

3 participants