[KNL-1519] cdn.mathjax.org is ending service in April 2017 Created: 13-Apr-2017  Updated: 22-May-2017  Resolved: 19-Apr-2017

Status: Closed
Project: Kernel
Component/s: Component Manager
Affects Version/s: 11.2
Fix Version/s: 11.4, 12.0 [Tentative]

Type: Bug Priority: Blocker
Reporter: Sam Ottenhoff Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: mathjax, qaready
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depend
depends on SAK-22384 Support MathJax Rendering Across Sakai Resolved
Relate
relates to SAK-25979 MathJax can not be rendered in Home s... Resolved
is related to SAK-32528 Polls formatting is misaligned when u... Open
11 status: Verified
Previous Issue Keys: SAK-32449
Test Plan:

Verify mathjax stlil works, by enabling it and embedding some LaTeX.


 Description   

End of life announcement for April 30 2017:

https://www.mathjax.org/cdn-shutting-down/



 Comments   
Comment by Brian Jones [ 17-Apr-2017 ]

Personally I wouldn't consider this a blocker, given that there is a workaround already in place: host the source files locally. We have been doing so at Western since the inception of this feature, prior to ever contributing it back to the community.

Certainly it would be nice to have these files stored in a reliable/stable CDN, but the option to self host has always been there and will never go away.

As a side note, I think the recommendation should be to host the files locally. You can never fully trust that a CDN is going to be online and stable 24/7.

Comment by Matthew Jones [ 17-Apr-2017 ]

Yeah, I think the issue is that it's a decently large package (~70MB) that we don't really want to bundle with Sakai and force downloading. Relying on people to actually install it locally unless it's automated is just another step and having something testable without any configuration is pretty nice. I think mentioning that you could install it locally is nice, but I still like the always working option, and you should be able to trust a distributed CDN. (Unless they actually shut down the CDN like in this case)

This is the property they recommend:
portal.mathjax.src.path=https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=default,Safe

Comment by Matthew Jones [ 17-Apr-2017 ]

Only marking as a blocker because unless the temporary workaround is 100% everyone using this will have to do SOMETHING (whether it's pick up this fix, or just change the property).

And the simplest fix is just changing the property to a different CDN, so about as easy as it gets.

Comment by Brian Jones [ 17-Apr-2017 ]

Yeah, I'm not suggesting that we package it as part of the Sakai source tree as that would be an extra 30,000+ files. Rather that instructions for enabling MathJax could reflect that local hosting of the files is possible. Maybe it's just me, but I never trust the "cloud"; I would much rather host the files locally and be confident that those files will be accessible 100% of the time while the server(s) hosting Sakai are up. Cloud services do go down from time to time. Just my two cents.

Comment by Neal Caidin [ 27-Apr-2017 ]

I verified the fix.

I did a quick test on nightly mysql master qa server. I pasted in $$x = {-b \pm \sqrt

{b^2-4ac}

\over 2a}$$ for different tools. Mac/Firefox.

  • Announcements
  • Assignments
  • Forums
  • Lessons
  • Polls
  • Syllabus
  • Test and Quizzes
  • Wiki

It only failed in Wiki, which I expected since wiki has it's own wiki language, including for Latex.

I also went back to nightly mysql 11.x QA server and it doesn't seem to be working at all. Is that expected behavior now because of the end of life issue?

In that case this is the very definition of a blocker!

Thanks

Comment by Neal Caidin [ 28-Apr-2017 ]

Latex works on Sakai 11 nightly mysql. I had forgotten to turn it on for the site. Not sure how I forgot that given that I had to turn Mathjax for the site on master (albeit many less clicks).

Comment by Neal Caidin [ 12-May-2017 ]

Hi, I was going to verify this on the 11 branch when I noticed that using MathJax in Polls, as one of the answers, throws off the formatting. I checked on other environments.

11.3 - formatting is fine. Answers aligned with radio buttons
11.x - formatting is off. Answers are not aligned properly with radio buttons
Master - formatting is off. Answers are not aligned properly with radio buttons.

I don't think we can go back? So maybe I should just set 11 status to verified and open a new Jira with screenshots?

Everything else looked fine, EXCEPT synoptic Announcements don't work on any environment as far as I can tell.

Comment by Brian Jones [ 12-May-2017 ]

Yeah, I would open a new JIRA for that Neal Caidin. Sounds like some CSS/SASS just needs to be tweaked for master.

Comment by Neal Caidin [ 12-May-2017 ]

I found the Jira relating to synoptic tools - SAK-25979

Comment by Neal Caidin [ 12-May-2017 ]

I've added a new Jira SAK-32528 for the Polls issue. Is this a blocker for 11.4 ? It is a regression compared to 11.3. Thanks!

Comment by Brian Jones [ 12-May-2017 ]

My opinion is not a blocker. It doesn't stop people from using a certain feature; it's just a styling issue. Also less of an issue if there are labels on those options that correspond to their respective radio button (ie, you can click the text/math to select the radio button).

Generated at Mon Dec 18 01:08:47 CST 2017 using JIRA 7.5.0#75005-sha1:fd8c849d4e278dd8bbaccc61e707a716ad697024.