Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7768,7 +7768,8 @@ paths:
for whom it is the furthest action done) and `waiting` (Contacts for whom it is the first action
not done, so a Contact who did steps 1 and 3 is waiting on step 2). Each list gives its full
count (`completed_count`, `furthest_count`, `waiting_count`) and the first `list_limit` (30)
Contacts alphabetically as `{beneficiary_id, name}`. Each Contact in `waiting` also has the Board's
Contacts alphabetically as `{beneficiary_id, name, actions_done}`, where `actions_done` is how many
of the Checklist's actions the Contact has done (shown as "3 of 8 actions done"). Each Contact in `waiting` also has the Board's
details: `days_waiting` (since the Checklist was added or the previous action was done),
`overdue` (the action is past its due date), `skipped_a_step` (a colleague logged starting a later
action first) and `responsible` (who is responsible for the action). `contacts_count` is every
Expand Down Expand Up @@ -7807,18 +7808,18 @@ paths:
complete_count: 1
overdue_count: 1
list_limit: 30
complete: [{beneficiary_id: 904, name: "Refilwe Mahlangu"}]
complete: [{beneficiary_id: 904, name: "Refilwe Mahlangu", actions_done: 4}]
actions:
- id: 55
number: 1
action_type: "complete_form"
title: "Complete the Intake form"
completed_count: 2
completed: [{beneficiary_id: 901, name: "Ayanda Dlamini"}, {beneficiary_id: 902, name: "Kagiso Mokoena"}]
completed: [{beneficiary_id: 901, name: "Ayanda Dlamini", actions_done: 2}, {beneficiary_id: 902, name: "Kagiso Mokoena", actions_done: 3}]
furthest_count: 0
furthest: []
waiting_count: 1
waiting: [{beneficiary_id: 903, name: "Mpho Sithole", days_waiting: 9, overdue: true, skipped_a_step: false, responsible: "Anyone in Youth Workers"}]
waiting: [{beneficiary_id: 903, name: "Mpho Sithole", actions_done: 0, days_waiting: 9, overdue: true, skipped_a_step: false, responsible: "Anyone in Youth Workers"}]
"401":
$ref: '#/components/responses/Unauthorized'
"404":
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@ function buildDocsPage() {
{ name: "project_id", type: "integer", required: false, desc: "Only Contacts in this Project, one the Checklist is added to" },
{ name: "responsible", type: "string", required: false, desc: "Only Contacts whose waiting action this person or Team is responsible for: <code>me</code>, <code>user:&lt;id&gt;</code> or <code>team:&lt;id&gt;</code>" }
], [
{ code: "200", cls: "response-2xx", desc: "<code>contacts_count</code>, <code>complete_count</code>, <code>overdue_count</code>, <code>list_limit</code>, <code>complete</code> and, for each action in order, <code>completed_count</code>, <code>furthest_count</code> and <code>waiting_count</code>, each with the first <code>list_limit</code> Contacts as <code>{beneficiary_id, name}</code>; waiting Contacts also have <code>days_waiting</code>, <code>overdue</code>, <code>skipped_a_step</code> and <code>responsible</code>" },
{ code: "200", cls: "response-2xx", desc: "<code>contacts_count</code>, <code>complete_count</code>, <code>overdue_count</code>, <code>list_limit</code>, <code>complete</code> and, for each action in order, <code>completed_count</code>, <code>furthest_count</code> and <code>waiting_count</code>, each with the first <code>list_limit</code> Contacts as <code>{beneficiary_id, name, actions_done}</code> (<code>actions_done</code>: how many of the Checklist's actions they have done); waiting Contacts also have <code>days_waiting</code>, <code>overdue</code>, <code>skipped_a_step</code> and <code>responsible</code>" },
{ code: "404", cls: "response-4xx", desc: "Not found, another Organisation's, or a Project the Checklist isn't added to" },
{ code: "422", cls: "response-4xx", desc: "An unknown <code>responsible</code> value" }
], "The Progress section of the Checklist's profile page, Table and Board. <code>completed</code>: Contacts who have done the action. <code>furthest</code>: Contacts for whom it is the furthest action done. <code>waiting</code>: Contacts for whom it is the first action not done, so someone who did steps 1 and 3 is waiting on step 2. Only Contacts the user can see are counted.")}
Expand Down
Loading