28 Commits

Author SHA1 Message Date
Dan
b3e4bfb3f5 Add a field to sample that contains the moment the sample was added to the database, and make it possible to retrieve records on this date. 2021-01-19 15:47:41 -05:00
Dan
de56367723 re-adding removed migrations.
Comment out test assertions that can't possibly work at the moment.
2021-01-13 15:56:11 -05:00
Nile Walker
f314ef0f2c Added Inventory page 2021-01-12 10:13:14 -05:00
Nile Walker
9c7df39fe8 Added Imported Files Page 2021-01-11 10:43:36 -05:00
Nile Walker
80668d6c50 Merge branch 'master' of https://github.com/sartography/uva-covid19-testing-communicator into dashboard 2021-01-11 07:49:23 -05:00
Nile Walker
389a3b6e3d column sample.last_modified does not exist\n 2021-01-11 07:49:08 -05:00
Dan
67937535bb switch from accepting bar codes to accepting a last modified date when querying samples. 2021-01-08 17:26:25 -05:00
Dan
956d817091 1. Assure that when adding new samples, the location and station are correctly updated.
2. Add the ability to correct computing ids using existing emails where possible.
3. Adding a last modified date that will always be the last time the record was touched.
4. being a little more careful about location codes, setting to 1 if the location if 4 digits, otherwise respecting the location for 3 digits.  Bit of a hack, hope we only run this once in production.
5. fixing a bug I found myself in where it would not load the index page if start_date got nulled out.
6. Adding a few much needed tests.
7. Correcting some issues with db migrations.
2021-01-07 16:59:36 -05:00
Dan
a37e75090e Merge branch 'master' of github.com:sartography/uva-covid19-testing-communicator 2020-12-16 11:51:51 -05:00
Dan
34f1a3640e adding an additional, protected, api endpoint to allow an external system to export sample information. 2020-12-16 11:51:36 -05:00
Aaron Louie
8dc4e1dd64 Adds computing_id 2020-12-16 10:24:43 -05:00
Dan
a84a14f3e5 Update notifications to try to fix issues with email and texts getting caught. 2020-11-13 10:25:32 -05:00
Dan
cf7607f2d3 Protect against loading files without actually injesting them by reserving the commit to execute on all records, then calling a delete.
Add flask executor so that long running tasks do not get killed when called from the API endpoints.

Allow passing a specific file when calling the notification endpoints so that we can send out notifications to only those individuals that are included in a specific import file from IVY.
2020-10-15 15:29:40 -04:00
Dan
aa526b4c07 Adding code that will properly pull in the full bar code from IVY,
and a script that will fix previously incorrect pairings of data.
2020-10-07 12:58:44 -04:00
Dan
4b2422d51e Enable deleting of files once ingested. 2020-09-30 12:34:15 -04:00
Dan Funk
fe565afda3 All the pieces in place. Going to see if it works.
Text messages should only go out at reasonable hours.
Adding the same sample a second time through the API should not create an error.
2020-09-24 16:51:49 -04:00
Dan Funk
b8c4c8cd32 keep a record of uploaded files and make it visible in the ui. 2020-09-23 16:01:31 -04:00
Dan Funk
f0132df1e5 Adding an endpoint to create new sample records, and an index page
for displaying all samples in a paginated view.
2020-09-23 12:44:11 -04:00
Dan Funk
ab07ea783d fixing a few bugs and missing libraries. 2020-09-23 09:28:28 -04:00
Dan Funk
ca910c02f2 fixing tests 2020-09-21 14:48:53 -04:00
Dan Funk
2467a27b76 fixing tests 2020-09-21 14:45:19 -04:00
Dan Funk
53c257d6cd fixing tests 2020-09-21 14:44:23 -04:00
Dan Funk
7af7063b57 Read configuration from files, and allow reading from environment for overrides.
Add a method for deleting files.
Create email format and configuration for sending emails of results.
2020-09-21 14:21:07 -04:00
Dan Funk
7978a2aa7e Trying to set up travis and docker auto-deploy 2020-09-17 11:34:45 -04:00
Dan Funk
ad1f9c0b3a Basic email configuration 2020-09-17 11:18:51 -04:00
Dan Funk
f2d809d9d9 cleaning up tests 2020-09-15 11:57:56 -04:00
Dan Funk
b7dc2d56bf merge sample records from firebase and ivy so we have a single table with all the information. Consistenly indexing records based on the bar code to hopefully keep things simple and clean. 2020-09-14 13:17:30 -04:00
Dan Funk
87287f628f adding a test event model to track data loaded from ivy, and hopefully cross-referenced with data loaded from Firebase. 2020-09-11 13:34:11 -04:00