folded-ear / gobrennas-api

HTTP API for gobrennas.com
https://gobrennas.com
MIT License
1 stars 0 forks source link

Buckets don't sync across devices? #91

Closed barneyb closed 2 months ago

barneyb commented 3 months ago

After changing my buckets on Saturday morning and planning the week, my kitchen ipad got the updated plan items, but kept the old buckets. This had three confusing effects:

  1. On the plan, the bucketed recipes showed no bucket
  2. Opening "edit plan" showed the old buckets
  3. The library sidebar showed the old buckets and planned recipes in new buckets were completely absent.
barneyb commented 2 months ago

This is a "dirty" issue with how Hibernate manages collections. The buckets changed, but they own the relationship to their plan. Because the plan itself didn't change, it's not subject to refresh. So new buckets don't sync unless the plan itself changes as well.