Getting the update
- You should receive a URL, username and password from Dinkytown, probably forwarded from either the webdev team or support team.
- Check that the update is intended for use on:
data2.profitstarscms.com. You do not want to copy over theKJE.jsorKJESiteSpecific.jsfiles if not. They will cause licensing error statements to appear on the calculators if copied. - Go to the URL and it will prompt for the username and password.
- Once you’ve entered it should present you with a terms of agreement page with an “agree” link at the bottom of the page. Click that and it’ll display a page with links for downloading the update.
- We typically only require the “Update only” zip file. It’ll be something like “Download KJEUpdate.zip”. Download that and decompress the files.
Merging the changes into banno-cms
- Copy the files into:
services/cms/public/calculatorsandservices/platform-cms/public/calculatorsin the banno-cms project. - Do a search/replace for the URL “http://www.dinkytown.net” and update it to use https protocol (some browsers will throw security complaints otherwise when our calculator pages render over https with the Dinkytown http links). Typically that’s just in the KJE.js and KJESpanish.js files.
- Run
test-only models.calculators.Calculator*locally to check that the calculator tests are still passing. - Repeat the previous two steps for both
cmsandplatform-cms
One thing to keep an eye on is that some updates are specifically tailored for a single site with the KJESiteSpecific.js file. There is a mechanism that the webdevs can use to override this file by inserting a file into the template assets (zip file). For the default version that the CMS should serve up we want the KJE.ReportHeader to contain the value data2.profitstarscms.com (check the diff or open up KJESiteSpecific.js and check). This value appears to be compared against for licensing purposes elsewhere in Dinkytown’s code. If this value is altered it will cause licensing errors to appear on the calculators that make use of the default license. So in most cases if you see this file updated you’ll want to manually inspect the changes made.
Deploying the changes
- Once merged, the changes can be run up to the staging and UAT environments.
- As soon as the deploy is complete on UAT
- IMPORTANT Restart
cms-varnishin Marathon - Message whomever requested the update and ask them to verify.
- IMPORTANT Restart
- As soon as the deploy is complete on Production
- IMPORTANT Restart
cms-varnishin theproduction-2environment using the Jenkins Marathon restart tool. Note that cached versions of the Javascript files can cause flapping with Monitor checks and generate lots of unnecessary alerts to clients. - Post an update on the ticket that the calculator updates are on Production.
- IMPORTANT Restart