FLW app: consent download and upload sync with the central server

XMLWordPrintable

      What this is
      Move consent data between the FLW app and the central server: download what is needed before going to the field, and upload consents, withdrawals, audit entries and access logs when back online.

      Steps

      1. Download (when online, before going to the field): Get the latest notices (all languages), purposes, and the consent status of beneficiaries in the FLW user's area (AMM-2533).
      2. Upload (when back online): Send consents, withdrawals, audit entries and access logs from the device (AMM-2533). Proof files are uploaded separately (AMM-2510).
      3. A consent with the same device-made ID is a duplicate. It must not be saved twice.
      4. If an offline withdrawal and an online consent conflict, a withdrawal always wins over an older or equal consent. A later full consent stays current.
      5. The device deletes its local copy only after the server confirms the upload.
      6. Handle failed or partial uploads so that nothing is lost and a retry is safe.

      Done when

      • The FLW app can download everything it needs before going to the field.
      • Uploading the same consent twice creates one record.
      • A withdrawal wins over an older or equal consent.
      • Local data is deleted only after the server confirms.

      Dependencies: FLW-1271, AMM-2510, AMM-2533. Mirrors AMM-2533 (client side).

      Open questions: [TBD/CLARIFICATION REQUIRED]

      1. AMM-2533 is designed for the STOP TB camp laptop (signed by a device key). Does the FLW app use the same endpoints and device-key signing, or a different path?
      2. Decision D-06: maximum age of downloaded data.
      3. How does this fit with the existing FLW sync (see 2.3 sync fixes)?

      Source: DPDPA Compliance Proposal v14, sections 3.2.1, 3.2.2, 8 (M1, M6 to M12, M14)

              Assignee:
              Saurav Mishra
              Reporter:
              Shivani Garg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: