platelet-app / platelet

Dispatch system for emergency volunteer couriers.
https://platelet.app
Apache License 2.0
38 stars 10 forks source link

Update production/app.bloodbikes.org.uk #144

Closed duckbytes closed 1 year ago

duckbytes commented 1 year ago

Brings production/app.bloodbikes.org.uk up to date with master.

Main two new features:

Every night at 0300 UTC Tasks that are completed and older than two weeks will have an archived flag set to 1. Associated deliverables, assignees, comments and unlisted locations will also be flagged. A migration script to backfill these values will run tomorrow the 14th April at 0400 UTC.

Once enabled on the front end, the client will only sync unarchived items. This should reduce sync times for users, especially on first opening the app.

I expect to reduce the time to one week, but at the moment CSV export relies on two weeks of data being present. This should be updated to use graphql instead eventually.

Shows a view for admins to look at old Task data. Uses graphql to display content. Adds an index to tenantId and createdAt as a sortkey field.