PhilanthropyDataCommons / service

A project for collecting and serving public information associated with grant applications
GNU Affero General Public License v3.0
8 stars 2 forks source link

Update bulk upload queries #863

Closed slifty closed 7 months ago

slifty commented 7 months ago

This PR continues the updates to our database access patterns.

It:

  1. Adds db utilities for BulkUpload.
  2. Consolidates our "update" query so that we can update multiple fields at once.
  3. Updates the return types to the json structure.

Related to #228

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 96.36364% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 87.23%. Comparing base (8970f6f) to head (0053829).

Files Patch % Lines
src/database/operations/create/createBulkUpload.ts 88.88% 1 Missing :warning:
src/database/operations/update/updateBulkUpload.ts 90.90% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #863 +/- ## ========================================== + Coverage 87.00% 87.23% +0.22% ========================================== Files 101 103 +2 Lines 1385 1394 +9 Branches 166 167 +1 ========================================== + Hits 1205 1216 +11 + Misses 165 163 -2 Partials 15 15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.