SwiftIsland / app

Swift Island app
GNU General Public License v3.0
4 stars 7 forks source link

Added support for updating the packing list #53

Closed ppeelen closed 1 year ago

ppeelen commented 1 year ago

This PR will look at the firebase packing items and update the local set if there are any changes.

The flow is as follows:

  1. Fetch all the packing items from firebase 2.1. If there are any stored packing items:
    • 2.1.1 Remove the packing items from the firebase list which we already have, based on ID
    • 2.1.2 If there are any remaining (new) items, update the local list with the current stored items + the new items 2.2. If there were no stored item:
    • Store the firebase items