wizbots / labtab

0 stars 0 forks source link

Update metadata related code #96

Open alexey-ku77 opened 6 years ago

alexey-ku77 commented 6 years ago

Need to update interfaces to wizbots rest api in part of program metadata endpoint. New version of that api will return categories alongside with old level information. Plus there is addition - labtime and description to the levels. Categories information should be cached and used for project creation. Labtime and description - not sure if that information is used in app, but it left unnoticed that these fields are missing. Now it is fixed.

Information from that api should be requested through cache invalidation mechanism.

alexey-ku77 commented 6 years ago

@kapoorutd Here is how response of metadata api looks:

{
  "levels": [
    {
      "index": 1,
      "lab_time": 11,
      "name": "Lab Certified",
      "color1": "white",
      "color2": "lightsteelblue",
      "nuggets": [
        "The Path to Mastery",
        "..."
      ],
      "wiz_chips": 10,
      "projects": [
        "Tick Tock",
        "..."
      ],
      "description": "The student is productive in the lab after being ..."
    }
  ],
  "categories": [
    "challenge",
    "contraption",
    "game"
  ]
}

image

Once you ready to test changes - please let me know. I will deploy appropriate branch on staging server where you can test it. If this information is not enough - please inform me.

Note: Please ensure these changes would not affect main builds, before everything(set of changes needed to solve a problem with validation) will be ready.

alexey-ku77 commented 6 years ago

@kapoorutd Also our QA specialist asked for a test build with these changes to perform testing on his side. Please contact him to deal with it.

internetmosquito commented 6 years ago

Ready for testing