avniproject / avni-client

Android app for the fieldworkers.
https://avniproject.org
GNU Affero General Public License v3.0
7 stars 20 forks source link

[AndroidApp] Approve a form #422

Closed vinayvenu closed 3 years ago

vinayvenu commented 3 years ago

As part of this story, we will complete the flow to approve a form.

Acceptance criteria

Out of scope

vindeolal commented 3 years ago

To enable approval workflow we need to enable it in the org config. Right now that is not possible from the admin interface. Use SQL to add that.

with audits as (
    update organisation_config set settings = settings || '{
      "enableApprovalWorkflow": true
    }'::jsonb
        where organisation_id = (select id from organisation where name = 'Demo test')
        returning audit_id
)
update audit
set last_modified_date_time = current_timestamp
where id in (select audit_id from audits);

Staging APK: https://s3.ap-south-1.amazonaws.com/samanvay/openchs/staging-apks/staging-81423-2021-02-23-14-14-16.apk

garimadosar5 commented 3 years ago

QA Notes -

vindeolal commented 3 years ago

APK : https://s3.ap-south-1.amazonaws.com/samanvay/openchs/staging-apks/staging-00059-2021-03-01-13-07-06.apk