Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For performance reasons, certain areas have had key date sets hard coded in to the content. This reduces the load on Squiz checking and generating JSON objects representing the matrix of key date sets. Where there has been 20+ subjects we've seen up to 50% increase in load speeds (from 140 seconds on stage to ~70). On areas where there are less than 20 subjects there have been smaller yet notable performance gains.

...

This has been applied to:

Bachelor of Commerce with Honours

http://cms.victoria.ac.nz/postgradprogrammes/programmes/bachelor-of-commerce-with-honours  Status

subtletrue
colourGreen
titleDone

  • Update 444275 and 354999 paint layouts to include parent_qual_name for correct card display when subject is selected

Nov 13th benchmark (Squiz cloud): 28.90 seconds 

Status
subtletrue
colourGreen
titleBETTER

Bachelor of Arts with Honours

http://cms.victoria.ac.nz/postgradprogrammes/programmes/bachelor-of-arts-with-honours  

~120sec to 48sec~ on stage

Nov 13th benchmark (Squiz cloud): 20.15 seconds 

Status
subtletrue
colourGreen
titleDone
~120sec to 48sec~ on stage
BETTER

https://www.victoria.ac.nz/api/postgrad?q=bachelor-of-commerce-with-honours

Master of Science by coursework and thesis

http://cms.victoria.ac.nz/postgradprogrammes/programmes/master-of-science-by-coursework-and-thesis 

Status

subtletrue
colourGreen
titleDone
170sec~ to 44sec~ on stage

Nov 13th benchmark (Squiz cloud): 

Master of Fine Arts Creative Practice

http://cms.victoria.ac.nz/postgradprogrammes/programmes/master-of-fine-arts-creative-practice 

Status

subtletrue
colourGreen
titleDone
28sec to ~8.96sec on stage28sec to ~8.96sec on stage

Nov 13th benchmark (Squiz cloud): 

Master of Arts 120

http://cms.victoria.ac.nz/postgradprogrammes/programmes/master-of-arts-120-points 

Nathan Irwin there's not a heap that can be done here for keydates as there's no Keydates but for on the Creative Writing Subject. It loads relatively slowly on stage with the timeout increased ~40 seconds. Requirements are static already. 

Master of Arts 180

http://cms.victoria.ac.nz/postgradprogrammes/programmes/master-of-arts-180-points

Sample

For example, take a look at the Bachelor of Commerce with Honours (363406). Look at it's web paths, then open the CMS webpath - i.e. 

32sec~ to 11~ seconds on stage. Keydate static content added.

Nov 13th benchmark (Squiz cloud): 

Graduate Diploma in Arts

http://cmsstage.victoria.ac.nz/postgradprogrammesexplore/programmesgraduate-quals/bachelordiploma-of-commerce-with-honours

When this page loads, it assembles a large JSON blob that the app eventually turns in to a page. Within this JSON Blob you can see the constructed key date sets for each subject. In squiz, Accounting is a subject under the Bachelor of Commerce with Honours and it has an Apply page (on which the key date sets are generated). The asset ID for this page is 363795 - look for this in the JSON output - it will look like this the below.

Copy the content between the keydate set square brackets, starting at "keyDatesSet" [ {  and ending at {}]

...

languagejs

...

in-arts/overview?international=true 

Would not load with dynamic blocks. Loads on stage ~120 seconds (not ideal, but the lesser or two evils!)

Nov 13th benchmark (Squiz cloud): Hits 30's time out. 

Status
subtletrue
colourRed
titleBAD

Graduate Diploma in Science

http://stage.victoria.ac.nz/explore/graduate-quals/diploma-in-science/overview?international=true 

Would not load with dynamic blocks. Loads on stage ~40 seconds

Nov 13th benchmark (Squiz cloud): 

Sample

For example, take a look at the Bachelor of Commerce with Honours (363406). Look at it's web paths, then open the CMS webpath - i.e.

http://cms.victoria.ac.nz/postgradprogrammes/programmes/bachelor-of-commerce-with-honours

When this page loads, it assembles a large JSON blob that the app eventually turns in to a page. Within this JSON Blob you can see the constructed key date sets for each subject. In squiz, Accounting is a subject under the Bachelor of Commerce with Honours and it has an Apply page (on which the key date sets are generated). The asset ID for this page is 363795 - look for this in the JSON output - it will look like this the below.

Copy the content between the keydate set square brackets, starting at "keyDatesSet" [ {  and ending at {}]


Code Block
languagejs
},

  {}],
    "asset_metadata_keyInfoSet"               : "VI00Z5",
	"asset_assetid":"363799",_metadata_summaryCardOverrides"     : {}

,
	"asset_name":insidePages"start studying",  : {"Apply" : {
   	"asset_contentsassetid":    :     {
    "contentType"363795",
	"asset_short_name" : "postgrad-applyApply",
    "content"  	"asset_contents"   : {[
        "startStudying" : {
        "asset_assetid":"363799",
   "type"     "asset_name":"start "keyDatesSetstudying",
            "heading"  : "Start Studying","asset_contents":
        {
    "appendixcontentType" : "postgrad-apply",
    "content"        
   : {
        "keyDatesSetstartStudying" :  {
        : [ {  "startDate": {"datetype"     : :"2018-03-05T12:45:24+13:00"keyDatesSet",
              "typeheading"     : :"dStart MMM yStudying",
 
            "trimesterappendix" : "1"},
"applyDate": { "date"     :"2018-01-20T00:00:00+13:00",     
          "type"      :"d MMM y","keyDatesSet"            : [ { 
"trimester" :"1"},
"international": false,
"domestic": true
},{ 
"startDate": {"date"      :"2018-03-05T12:45:24+13:00",
              "type"      :"d MMM y",
              "trimester" :"1"},
"applyDate": { "date"     :"20172018-1201-01T0020T00:00:00+13:00",
               "type"      :"d MMM y",
               "trimester" :"1"},
"international": truefalse,
"domestic": falsetrue
},{ 
"startDate": {"date"      :"20192018-03-04T1205T12:45:24+13:00",
              "type"      :"d MMM y",
              "trimester" :"1"},
"applyDate": { "date"     :"20192017-0112-20T0001T00:00:00+13:00",
               "type"      :"d MMM y",
               "trimester" :"1"},
"international": falsetrue,
"domestic": truefalse
},{ 
"startDate": {"date"      :"2019-03-04T12:45:24+13:00",
              "type"      :"d MMM y",
              "trimester" :"1"},
"applyDate": { "date"     :"20182019-1201-01T0020T00:00:00+13:00",
               "type"      :"d MMM y",
               "trimester" :"1"},
"international": truefalse,
"domestic": falsetrue
},{ 
"startDate": {}]"date"         }:"2019-03-04T12:45:24+13:00",
        "fees" : {    "type"      :"d MMM  y"contentType",
: "fees",             "headingtrimester"     : "1"},
"applyDate": { "date"     :"2018-12-01T00:00:00+13:00",
               "contenttype"      :"d MMM y"",
          }     }
},

Paste this content in, in place of all content between the (and including the) square brackets in the JSON object on the 'Apply' page for this subject (highlighted):

Code Block
languagejs
titleApply Content COntainer

{
    "contentType" : "postgrad-apply",
    "content"     : {"trimester" :"1"},
"international": true,
"domestic": false
},

 {}]
        },
        "startStudyingfees" : {
            "typecontentType"     : "keyDatesSetfees",
            "heading"  : "Start Studying",
            "appendix" : "",
            "content"     : ""
      "keyDatesSet"  }
      }
},


Paste this content in, in place of all content between the (and including the) square brackets in the JSON object on the 'Apply' page for this subject (highlighted):

Code Block
languagejs
titleApply Content COntainer

{
   : [ %asset_parent^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents^replace_keywords:empty:{asset_parent^as_asset:asset_metadata_parentProgramme^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents}% {}]
  "contentType" : "postgrad-apply",
    "content"     : },{
        "feesstartStudying" : {
            "contentTypetype"     : "feeskeyDatesSet",
            "heading"     : "Start Studying",
            "contentappendix"     : "",
        }    
} }

Results in

Code Block
languagejs
{
    "contentType" : "postgrad-apply",     "contentkeyDatesSet"     : {         "startStudying" : {
  [ %asset_parent^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents^replace_keywords:empty:{asset_parent^as_asset:asset_metadata_parentProgramme^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents}% {}]
        },
  "type"     : "keyDatesSetfees", : {
            "headingcontentType"  : "Start Studyingfees",
            "appendixheading"     : "",
            "content"     : ""
      "keyDatesSet"  }
    }
}

Results in

Code Block
languagejs
{
    "contentType" : [ {"postgrad-apply",
   "startDate": {"datecontent"      :"2018-03-05T12:45:24+13:00",
 : {
        "startStudying" : {
            "type"     : :"d MMM ykeyDatesSet",
 
            "trimesterheading"  : "1Start Studying"},
"applyDate": { "date"
            "appendix" :"2018-01-20T00:00:00+13:00",
   "",
            "type"
     :"d MMM y",     "keyDatesSet"           "trimester" :"1"},
"international": false,
"domestic": true
}, [ { 
"startDate": {"date"      :"2018-03-05T12:45:24+13:00",
              "type"      :"d MMM y",
              "trimester" :"1"},
"applyDate": { "date"     :"20172018-1201-01T0020T00:00:00+13:00",
               "type"      :"d MMM y",
               "trimester" :"1"},
"international": truefalse,
"domestic": falsetrue
},{ 
"startDate": {"date"      :"20192018-03-04T1205T12:45:24+13:00",
              "type"      :"d MMM y",
              "trimester" :"1"},
"applyDate": { "date"     :"20192017-0112-20T0001T00:00:00+13:00",
               "type"      :"d MMM y",
               "trimester" :"1"},
"international": true,
"domestic": false
},{ 
"startDate": {"date"      :"2019-03-04T12:45:24+13:00",
              "type"      :"d MMM y",
              "trimester" :"1"},
"applyDate": { "date"     :"2019-01-20T00:00:00+13:00",
               "type"      :"d MMM y",
               "trimester" :"1"},
"international": false,
"domestic": true
},{ 
"startDate": {"date"      :"2019-03-04T12:45:24+13:00",
              "type"      :"d MMM y",
              "trimester" :"1"},
"applyDate": { "date"     :"2018-12-01T00:00:00+13:00",
               "type"      :"d MMM y",
               "trimester" :"1"},
"international": true,
"domestic": false
},

 {}]
        },
        "fees" : {
            "contentType" : "fees",
            "heading"     : "",
            "content"     : ""
        }
    }
}

Repeat this for all Apply pages within the programme or qual subjects.

Note

Application of static key date set content implies that keydatesets have been applied and the keydateset JSON block has been applied also.

Maintaining / Updating Keydate static content

When Keydates need to be updated you need to do the following:

1) Add the below code block to the parent about page, then preview in squiz to get the keydateset output (i.e. add to About under Bachelor of Arts, then preview the Bachelor of Arts folder in squiz)

2) Copy this keydateset block in to subjects / majors where needed

3) Where there is a unique start / apply date set for the subject or major that differs from the parent qual / degree, you need to add the same block of code below to the Apply page of the subject / major, preview the parent qual and copy and paste the output in.

4) Remove 3) if used

5) Remove 1 if used

6) Test


Code Block
{
    "contentType"   : "postgrad-apply",
    "trimestercontent"  :"1"}, "international": false, "domestic": true },{
 "startDate": {"date"      :"2019-03-04T12:45:24+13:00",
 "startStudying" : {
            "type"     : :"d MMM ykeyDatesSet",
 
            "trimesterheading"  : "1Start studying"},
"applyDate": { "date"
            "appendix" :"2018-12-01T00:00:00+13:00 "",
            
  "type"      :"d MMM y",     "keyDatesSet"           "trimester" :"1"},
"international": true,
"domestic": false
},

 [ %asset_parent^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents^replace_keywords:empty:{asset_parent^as_asset:asset_metadata_parentProgramme^as_asset:asset_metadata_keyDateSet^as_asset:asset_contents}% {}]
        },
        "fees" : {
            "contentType" : "fees",
            "heading"     : "",
            "content"     : ""
        }
    }
}

Repeat this for all Apply pages within the programme or qual subjects.

Note

...

Related reading

Graduate qualification: Updating cards and third tab