How to update an app to a new version - kwantu/platformconfiguration GitHub Wiki

Kwantu: Versioning

Updating Data Objects

Steps:

  1. Open config_1_(Data Object ) file
  2. Save this file as config_2_(Data Object ).entry.atom
  3. Update the field to config_2_(Data Object )
  4. Make your version changes.

Updating appConfig

Steps:

  1. GET https://staging.kwantu.net/kwantu_configs/applicationConfig_(uuid):(current version)
  2. Update the “_id” field to use the new version. “_id”: "applicationConfig_(uuid):(new version)
  3. For each data object you updated, change their version to the new version under “indicators”. “version”:(new version)
  4. PUT https://staging.kwantu.net/kwantu_configs/applicationConfig_(uuid):(new version) with the updated config.

Updating workflowConfig

Steps:

  1. GET https://staging.kwantu.net/kwantu_configs/(uuid):(current version):processDefinition
  2. Update the “_id” field to use the new version. “_id”: "(uuid):(new version):processDefinition
  3. Update the “version” field to use the new version. “version(new version)
  4. PUT https://staging.kwantu.net/kwantu_configs/(uuid):(new version):processDefinition with the updated config.

Updating communityConfig

Steps:

  1. GET https://staging.kwantu.net/kwantu_configs/community_(uuid)
  2. For the app you’re updating, find “version” and update to the new version. “version”:(new version)
  3. PUT https://staging.kwantu.net/kwantu_configs/community_(uuid) with the updated config.

Note: The “adoptionProfile” field will be needed from this file for the App Adoption File

Updating App Adoption File

Steps:

  1. GET https://staging.kwantu.net/kwantu_configs/adoption:(adoptionProfile)
  2. Find the “version” field and update to the new version. “version”:(new version)
  3. PUT https://staging.kwantu.net/kwantu_configs/adoption:(adoptionProfile) with the updated config.

Transform Data Objects

Steps: For each Data Object that was updated:

  1. GET https://staging.kwantu.net/exist/rest/db/kwantu-resource/api/rest/serializeIndicatorTemplatesToCouch.xql?communityId=(Community Id)&appId=(App Id)&id=(Data Object <Id>)&lang=en

Updating Indexes

Finally, ask Willem to update indexes.

⚠️ **GitHub.com Fallback** ⚠️