Skip to content

Add Collection#upsertAndReturnOlderDocument for atomic pre-write snap… - #328

Open
bhubam wants to merge 6 commits into
mainfrom
AAP-13921-upsert-return-older
Open

bhubam wants to merge 6 commits into
mainfrom
AAP-13921-upsert-return-older

AAP-13921: Address review comments on UpsertOptions write-and-return

b96ad4a
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Oct 14, 2026 in 1s

81.12% (-0.11%) compared to cd897e9

View this Pull Request on Codecov

81.12% (-0.11%) compared to cd897e9

Details

Codecov Report

❌ Patch coverage is 77.17391% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.12%. Comparing base (cd897e9) to head (b96ad4a).

Files with missing lines Patch % Lines
...documentstore/postgres/FlatPostgresCollection.java 72.22% 20 Missing and 5 partials ⚠️
...race/core/documentstore/mongo/MongoCollection.java 89.70% 5 Missing and 2 partials ⚠️
.../hypertrace/core/documentstore/DocumentChange.java 60.00% 3 Missing and 3 partials ⚠️
.../org/hypertrace/core/documentstore/Collection.java 0.00% 2 Missing ⚠️
...ore/documentstore/model/options/UpsertOptions.java 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #328      +/-   ##
============================================
- Coverage     81.23%   81.12%   -0.11%     
- Complexity     1698     1736      +38     
============================================
  Files           243      245       +2     
  Lines          7780     7964     +184     
  Branches        771      798      +27     
============================================
+ Hits           6320     6461     +141     
- Misses          962      993      +31     
- Partials        498      510      +12     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.