rssidlowski / Pollution_Source_Tracking

City of Baltimore Pollution Source Tracking
0 stars 0 forks source link

Retain personnel assignment #197

Open rssidlowski opened 8 years ago

rssidlowski commented 8 years ago

On a daily basis the same personnel do sampling. Would like the application to use the last personnel list so they don't have to enter it every time they do another sample.

gerrykelly commented 8 years ago

Here is now things should now work: • When you first add a new sample the app behaves as it had and you need to enter personnel • At that point the personnel selected for the sample becomes the default list for the device and is persisted in local storage • From then on when you save a new sample, the stored personnel list is displayed in a message box that 'Would you like the following personnel to be associated with this sample?' o If you tap yes nothing happens in the UI except the message box closing. In the background the default personnel are assigned the new sample ID and info is posted to the database.  If you then click on personnel and for some reason add or delete someone, that’s fine, the edit works like always, but that selection does not become your default list o If you tap no, you’re taken to the personnel page and make your selection as usual. That selection is then stored on the device and becomes your default list.

rssidlowski commented 8 years ago

Tested and this works great. Let's proceed with getting this into production. After 4:30 is best.

gerrykelly commented 8 years ago

Done in prod, sorry for the slight delay :-)

rssidlowski commented 8 years ago

Verified in prod. Users to verify.