onaio / onadata

Collect, Analyze and Share
https://ona.io
Other
183 stars 132 forks source link

Exclude deleted Entities from form's manifest data #2648

Closed kelvin-muchiri closed 2 months ago

kelvin-muchiri commented 2 months ago

Changes / Features implemented

Exclude deleted EntityList and Entity in the endpoints:

  1. Exclude deleted EntityList on endpoint:/<username>/xformsManifest/<form_id>
  2. Exclude deleted Entity on endpoint:/<username>/xformsMedia/<form_id>/<media_id>.csv
  3. Exclude deleted EntityList on endpoint /api/v1/projects

Created index for deleted_at column on model EntityList and Entity

Steps taken to verify this change does what is intended

Before submitting this PR for review, please make sure you have:

Closes #2649