1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 12:05:19 +02:00
Maybe/test/models/holding
Zach Gollwitzer 8db95623cf
Handle holding quantity generation for reverse syncs correctly when not all holdings are generated for current day (#2417)
* Handle reverse calculator starting portfolio generation correctly

* Fix current_holdings to handle different dates and hide zero quantities

- Use DISTINCT ON to get most recent holding per security instead of assuming same date
- Filter out zero quantity holdings from UI display
- Maintain cash display regardless of zero balance
- Use single efficient query with proper Rails syntax

* Continue to process holdings even if one is not resolvable

* Lint fixes
2025-06-26 16:57:17 -04:00
..
forward_calculator_test.rb Improve account sync performance, handle concurrent market data syncing (#2236) 2025-05-15 10:19:56 -04:00
materializer_test.rb Clarify backend data pipeline naming concepts (importers, processors, materializers, calculators, and syncers) (#2255) 2025-05-17 16:37:16 -04:00
portfolio_cache_test.rb Improve account sync performance, handle concurrent market data syncing (#2236) 2025-05-15 10:19:56 -04:00
portfolio_snapshot_test.rb Handle holding quantity generation for reverse syncs correctly when not all holdings are generated for current day (#2417) 2025-06-26 16:57:17 -04:00
reverse_calculator_test.rb Handle holding quantity generation for reverse syncs correctly when not all holdings are generated for current day (#2417) 2025-06-26 16:57:17 -04:00