Upgrade and maintenance - kwantu/platformconfiguration GitHub Wiki

Worker object logs - /exist/rest/db/kwantu-resource/api/webhook/logs.html

Configuration links and URL

  1. Delete a profile

Delete a profile using a rest call:

hostname:port/exist/rest /db/kwantu-resource/api/rest/deleteProfile.xq?profileId=xxxxxxx&communityId=yyyyyyy

  1. Upload community Logo

https://couchp01.kwantu.net/exist/rest/db/test/uploadImage.html

http://kwantu.me:8080/exist/rest/db/test/uploadImage.html

  1. Delete a sub process instance

/exist/rest/db/kwantu-resource/api/rest/deleteSubprocess.xq?spuuid=&communityId=

  1. Find the status of a change feed queue In the kwantu_configs bucket, find the pointer for the current queue by looking at the following file format: System_Settings__ Where CCCCCCCC is the community Id and is the jobid that we are looking for. The details for the jobId can be found in the System_Settings document in the kwantu_configs database.

/kwantu_apps_/_changes?timeout=180000&style=all_docs&filter=_view&view=unique Constraint%2FuniqueConstraint&since=###########&limit=20

{
  "jobId": "1002",
  "interval": 30000,
  "type": "uniqueConstraint",
  "active": true,
  "limit": 10,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1003",
  "interval": 30000,
  "type": "navigation",
  "active": true,
  "limit": 5,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1004",
  "interval": 60000,
  "type": "userRole",
  "active": true,
  "limit": 10,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1005",
  "interval": 10000,
  "type": "workflowInstanceSubProcess",
  "active": true,
  "limit": 50,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1006",
  "interval": 30000,
  "type": "attachmentRequest",
  "active": true,
  "limit": 2,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1007",
  "interval": 30000,
  "type": "sendWorker",
  "active": true,
  "limit": 2,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1008",
  "interval": 60000,
  "type": "deleteProfile",
  "active": true,
  "limit": 5,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1010",
  "interval": 60000,
  "type": "notification",
  "active": true,
  "limit": 10,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1011",
  "interval": 30000,
  "type": "sdoReport",
  "active": true,
  "limit": 2,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1012",
  "interval": 30000,
  "type": "executeReport",
  "active": true,
  "limit": 2,
  "bucket": "kwantu_apps"
},
{
  "jobId": "1018",
  "interval": 30000,
  "type": "notificationWorker",
  "active": true,
  "limit": 10,
  "bucket": "kwantu_notifications"
}
  1. Data Registry Services

5.1 Workflow to create a profile

/exist/rest/db/kwantu-resource/importAPICollection/import.xq?TYPE=PROFILE_WORKFLOW

5.2 Workflow to create a process

/exist/rest/db/kwantu-resource/importAPICollection/import.xq?TYPE=PROCESS_WORKFLOW

5.3 Workflow to create a community

/exist/rest/db/kwantu-resource/importAPICollection/import.xq?TYPE=COMMUNITY_WORKFLOW

Violetpath3 AV This is appProfile SDO logo.png image/png 4af3363a-25bc-11e8-b467-0ed5f89f718f 1 abc 111 234 9999 9911692111 HCom
BBK
en English bbk BARABANKI LKO LUCKNOW [email protected] test bbbk 1 234 6676 ... Insert here the base64encoded string ... logo.png image/png 4af3363a-25bc-11e8-b467-0ed5f89f718f

5.4 Workflow to adopt an application

/exist/rest/db/kwantu-resource/importAPICollection/import.xq?TYPE=ADOPTION_WORKFLOW

07519593-8f49-4a02-ace7-844726e13bf9 Project tracking 71024dcb-58df-4491-adf7-0934e5acf153 Avengers 1 1

5.5 Workflow to create sub-profile instance

/exist/rest/db/kwantu-resource/importAPICollection/import.xq?TYPE=SUBPROFILE_WORKFLOW

teststreet1 01 test 35 43 testsuburb No 001 test 34 test 87236472369 test test add test 01 test test id 02 testF 343 004 435443 0091 908 001 test 1 Ward1 Mun1 Mun1 <Title>test title</Title> testlocUUID testdescription test34 324234 sdfwerw3423 5 testname test testname test test test test test tes test
  1. Link to display the Worker logs on a server

/exist/rest/db/kwantu-resource/api/webhook/logs.html

  1. Reports 7.1 Custom reports available User list report: /exist/rest/db/kwantu-resource/reports/user/userReport.xql?communityId=75b6528e-f7de-4f84-ab22-8428a20e28a1

  2. Javascript console functions to use in debugging

8.1 Find a search result in the console

Take the search UUID

finder.find("9624991d-0dc5-41f2-9ee6-549e7886c503") .then(function(s){console.log(s)}) .catch(function(err){console.log(err)});

8.2 Find the processUUID for an outOfSync error and fix it

  1. Place this in the console and run it with the sync error open.

JSON.xpath("processes[string(outOfSync) eq 'true']/subProcesses/uuid", app.SCOPE.workflow.instance, {});

  1. Run the following rest service /exist/rest/db/test/FixSubProcess.xq?communityId=962dd628-36b5-4a41-b959-a6e8827b6a7e&spuuid=7b550648-e6d1-4152-cb4b-497efadc9178

This should return this result

{"ok":true,"id":"7b550648-e6d1-4152-cb4b-497efadc9178","rev":"3-ee99945cd37a0b62de13611f88350854"}

  1. Search configuration

Id = “search_” + uuid in the config file. Channels are important for sync. Usually it will be “config_a_” plus appId. If the appId is 1024 everybody will get it. searchConfig: Output (default to the example) Query … this is the key area to modify Scope applicationId communityId id: (profile/community/application) Content Filters: here you can place a filter in the format below. (more detail needed) Categories. See below an example how to implement Target … where must it run,. Typically “local”. ComponentType … leave as below

{ "_id": "search_ae66263b-49c1-41ca-d038-90175953c287", "_rev": "22-c3646f60808e6d2b22b3eb9d75c17f0a", "searchConfig": { "output": { "code": "data", "label": "Data extract" }, "query": { "scope": { "applicationId": "c5d4b0b9-2fc3-4259-96a5-95c8fb232f88", "id": "profile" }, "content": { "filters": [ { "model": "#ROOT['meta-data'].subprofileId", "operator": "equals", "value": "#SUBPROFILE_ID" } ], "categories": [ { "basepath": "modulesRepeat.repeatDef.data", "id": "NTIPConfigTheorySubjectDetails", "applicationId": "c5d4b0b9-2fc3-4259-96a5-95c8fb232f88", "emit": [ { "path": "moduleName", "name": "label" }, { "path": "moduleCode", "name": "moduleCode" }, { "path": "moduleType.code", "name": "moduleTypeCode" }, { "path": "moduleType.label", "name": "moduleTypeLabel" } ] } ] } }, "target": "local", "componentType": { "code": "query", "label": "Query" } }, "channels": [ "config_a_c5d4b0b9-2fc3-4259-96a5-95c8fb232f88" ] }

  1. URL to download an attachment

/exist/rest/db/kwantu-resource/api/rest/apiGetAttachmentFromCollector.xql? documentId=performance-1318e19e-dfd4-444e-f3af-7868a7ff10cb& attachmentId=0e2b2b1f-af6a-4468-984e-0be8a3673ab5& communityId=75b6528e-f7de-4f84-ab22-8428a20e28a1& fileName=M221KoppiesReceiptsReportRequestForApprovalByHoD.PDF

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