rubyforgood/human-essentials

Bug: Inventory levels by date with read_events enabled doesn't work before snapshot

Closed this issue · 1 comments

Summary

The inventory levels by date does not work properly if read_events is enabled

Why fix

continuity of service

Details

Note: we can only really see the problem on a copy of prod -- I recommend this be core team issue for that reason

what we want

When using event sourcing (i.e. for now, when read_events is enabled)
If the date chosen is before the snapshot, use the inventory level version at the date
else
use the event sourcing way of calculating the inventory levels at the date

Criteria for completion

  • Functionality as described above
  • Tests of functionality as described above

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.