vocdoni / vaas-api

Centralized backend & server for Vocdoni's Voting-as-a-Service API
GNU Affero General Public License v3.0
2 stars 1 forks source link

[WIP] Cache pending database queries at sqlx transactions #38

Closed NateWilliams2 closed 2 years ago

NateWilliams2 commented 2 years ago

This is the first part of https://aragonassociation.atlassian.net/browse/VAPI-92, which is to refactor how pending db queries are stored and handled. TODO figure out a good way to store the transactions on disk, so they are not forgotten in the case that the program exits while a vochain transaction is pending.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1714668505


Changes Missing Coverage Covered Lines Changed/Added Lines %
database/pgsql/elections.go 36 44 81.82%
urlapi/txhash.go 5 13 38.46%
urlapi/entity.go 15 25 60.0%
database/pgsql/organizations.go 57 80 71.25%
<!-- Total: 116 165 70.3% -->
Files with Coverage Reduction New Missed Lines %
database/pgsql/migrations.go 1 38.64%
database/pgsql/elections.go 34 57.26%
database/pgsql/organizations.go 52 43.17%
<!-- Total: 87 -->
Totals Coverage Status
Change from base Build 1709026044: -1.9%
Covered Lines: 1773
Relevant Lines: 3313

💛 - Coveralls