Use `Date Changed to Delivery Needed` to calculate number of days a request has been open
piratefsh opened this issue · comments
Summary
X days open
data on map relies on slack_ts
. As part of SMS pickup work, we want to remove any reliability on Slack postings. Instead, we should use the timestamp in Date Changed to Delivery Needed
on Airtable requests.
This field currently does not exist in our static list of Airtable fields yet, and should be added. This field gets updated on Airtable when a request gets updated to Delivery Needed
.
Where
Logic for converting slack_ts to days open here: https://github.com/crownheightsaid/mutual-aid-app/blob/master/src/webapp/helpers/time.js. This function should be updated to take in a timestamp from Date Changed to Delivery Needed
, and its usage should be updated throughout the webapp/
part of this repo.
Note: this should be merged after #154 as there was some refactoring to days open logic in that PR