Closed gfyrag closed 3 months ago
The changes introduce SQL migrations to address incorrect transaction volume aggregations. New functions for aggregating transaction volumes are added, enhancing the analysis capabilities of the ledger system. Additionally, the test suite for transaction insertions is expanded to validate these corrections, ensuring accurate pre and post-commit volumes across multiple transaction scenarios. These modifications aim to improve data integrity and user experience in the ledger application.
Files | Change Summary |
---|---|
components/ledger/internal/storage/ledgerstore/bucket.go |
Introduced a new SQL migration for fixing incorrect volume aggregations, including a new variable and migration entry. |
components/ledger/internal/storage/ledgerstore/migrations/9-fix-incorrect-volumes-aggregation.sql |
Added two SQL functions to aggregate transaction volumes and effective volumes by ledger and transaction number. |
components/ledger/internal/storage/ledgerstore/transactions_test.go |
Enhanced TestInsertTransactions to include new transaction scenarios, updating expected output volumes accordingly. |
sequenceDiagram
participant User
participant LedgerSystem
participant Database
User->>LedgerSystem: Initiate transaction
LedgerSystem->>Database: Execute volume aggregation function
Database-->>LedgerSystem: Return aggregated volumes
LedgerSystem-->>User: Provide transaction confirmation
Objective | Addressed | Explanation |
---|---|---|
Incorrect pre/post commit volumes (ENG-1279) | ✅ |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Fixes ENG-1279