From what I can tell, you have to edit a shelter in order to close it. Seems a checkbox or multi-check would help facilitate that as threat shifts or dissipates.
afaik the only way to mark a shelter updated is to manually edit a field. When checking statuses, it might be handy to have a checkbox or some other way of updating a shelter/POD without editing a field.
Converting the Postgres enum types to string and using ActiveRecord string enums will alleviate some friction over differing local postgres installs for developers not using Docker or Postgres 9.6 locally.
dependencies are out of date, getting vulnerability warnings from GitHub, notes in Heroku build logs "the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.15.4)"
Now that we have data from Irma, Florence and Michael it would a good idea to have a backup of the database. I'm not sure the options for doing that on Heroku, but an offsite backup would be good too.
Allow volunteers to request a set of shelters(phone) to update. Once they get their list, the numbers are taken off the stack. Update made - number released. No update made after 5 or 10 minutes, return to needs updating stack.
After a discussion tonight at Code for Tampa Bay meetup wanted to document a thought.
I don't have a specific use case in mind, but I know it's been discussed in the past as well. We should document the current way updates are approved. I'm not 100% sure the system now. My recollection is shelter updates were in real time between a super admin and other volunteers where a quick level of trust was built. Insert something about scale here.
On Line 32 of the filter_by_params concern, the :near parameter is unused but is required for filtering by geocoordinates. I believe the intent was to pass an optional numeric value to the #near function on Line 35.
We should review the documentation to make sure that if we're making it readable for non-technical staff. Specifically, if a member of FEMA or other disaster organization reads this, it should be clear what this actually does in plain English.
We should also keep in mind that they'll be other Code for All partners around the world that might be looking at this too and so our docs need to be super-readable
If we are unable to reach a shelter by phone consistently, caller volunteers should be able to mark this in the API so that others can flag for FEMA or search for a better number.
Future project: someone clicks an "i want to make one phone call" button and it gives them a number, a script, and a form to fill out the update showing old value, and new value ____ for each field. Updating logistics have been the biggest challenge 3 storms in a row now, not really maps or anything... and i say this as a guy who made a map.
It'd be good to be able to sort by multiple columns in a specific order of preference. That would make it easier to find shelters in the right locations (most important) that would be easiest to call (useful if you're short on time) and are most out of date.
This is somehow related to the default_scope hiding the archives from the deduplication function, but I'm not sure how since the deduplication function unscopes the default_scope.
Ideal solution: if a record exists and is archive, unarchive instead of inserting a duplicate.
(also, the duplication counter in the third query (source) is not guaranteed to be unique).
I know there are still references to Harvey in the API but other than possibly breaking check outs and automated tools (important!) I'm not aware of any other negative effects of renaming, but would help clarify that this is the main on-going repository and not related to a 2018 storm.
It'd make it easier for people trying to update shelters if they didn't have to search for which shelters are currently relevant. If there could be a way for admins to select specific states or geographic areas, there might be a way to let people more easily find those shelters.
Currently the code base has a lot of custom rubocop configuration as documentation of the styles most commonly used in the source code, not necessarily the best options moving forward. While the code is mostly uniform currently, these cops should be reviewed for further revision/refactoring to ensure our code base is adequately constructed.
If we have a shelter added that we don't have information - this defaults to 'false' - when we go to update it - it then enters a zero which the API reads as true.
We need to put in something that shows a N/A and display that status on the map until we confirm otherwise.
It was brought up that having a Dockerfile (or vagrant setup) would help new collaborators jump in and start working on solving issues without having to retool their local environment.
The Red Cross uses a National Shelter System that's fairly common - however the data standard is fairly huge. I don't know if there's a way to make the API 100% compliant but where we can we should try to match the standard.
Right now, there's column area for states but there's not a way to update it. It would be useful to do this since we have multiple states we're looking at