Nile Walker
5a64a1d205
Added email vaildation
2021-02-04 09:11:19 -05:00
Nile Walker
b4c8cf7400
Readded Test Inclusion Option
2021-02-01 08:36:48 -05:00
Nile Walker
ebb8a62a08
Added Notifications per file searching
2021-01-29 16:40:10 -05:00
Nile Walker
05411971ad
Added include tests form option
2021-01-29 09:57:58 -05:00
Nile Walker
b56f70579a
Merged Histories with Master
2021-01-29 09:40:59 -05:00
Dan
7d33606f56
order the samples by last modified, if that is what is provided as an argument, otherwise base order on created_on
2021-01-19 17:25:26 -05:00
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
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
Nile Walker
c68a0c2642
Added Form Responsiveness
2020-12-30 09:06:46 -05:00
Dan
5f00e1415e
Add a bit or ordering, and limit to a max of 200 records returned, so we don't overwhelm the system.
2020-12-16 12:14:50 -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
25f3d3e978
Stores and displays Computing ID separately
2020-12-16 10:24:43 -05:00
Dan
b2449c4d89
Trying to catch the too many messages error, and just stop rather than failing on all subsequent samples, so that it just keeps trying.
2020-11-16 10:01:56 -05:00
Dan
1328979bd3
Limit to 190 at a time, and then set interval to be 5 minutes and pray for the best.
2020-11-13 14:08:32 -05:00
Dan
dd7b40f5a9
trottle text messages as well.
2020-11-13 10:27:24 -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
a8e897f344
Allow restricting results in main page, and downloading the results.
2020-11-03 16:01:50 -05:00
Dan
034443451f
limit texts to 150 each time as well.
2020-10-26 17:06:31 -04:00
Dan
09ad4d6de2
fix another stupid mistake in the scheduler.
2020-10-22 13:32:27 -04:00
Dan
43df690e1c
only send a max of 150 emails, increase speed to 2 per second.
...
(appears that the smtp server starts rejecting requests after 200 emails, so
just playing it safe.
2020-10-20 15:11:46 -04:00
Dan
ff1ad5fc36
adding some logging messages so I can see if things are executing as expected.
2020-10-20 14:43:05 -04:00
Dan
8cf38cc4a8
Emails keep failing, I'm going to try upping the pause to every 2 seconds.
2020-10-19 12:57:09 -04:00
Dan
421c6eb791
set up a mechanism to retry sending messages that failed previously vai an api call.
2020-10-17 15:56:47 -04:00
Dan
444c0cfebb
Adding ability to turn off file deletion in configuration.
2020-10-15 16:16:46 -04: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
c3069c5ad8
be sure to commit logs of notifications as they go out.
2020-09-30 15:39:21 -04:00
Dan
f6cbac6473
be sure to request a transfer on a regular schedule.
2020-09-30 15:35:59 -04:00
Dan Funk
fa23b6ca30
clear out invitations as well
2020-09-25 11:56:08 -04:00
Dan Funk
7b4cbe4c24
throttle notifications so we don't run afoul of the email and text message servers.
2020-09-25 11:51:17 -04:00
Dan Funk
10040b82d7
Better error handling for emails and text messages.
2020-09-25 11:33:20 -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
c17a18ab4a
clean up scheduler, and prepare for automating everything....
2020-09-24 12:25:18 -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
6ee2d4f019
Don't load samples from firebase (they will be added via direct calls to the api)
...
Provide a mechanism to clear out all the samples - should remove this or protect it at some point.
2020-09-23 15:24:09 -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
bdee709324
Adding a tool for sending out bulk email notifications and a simple web form for doing so.
2020-09-22 16:22:15 -04:00
Dan Funk
ad1f9c0b3a
Basic email configuration
2020-09-17 11:18:51 -04:00
Dan Funk
872cdfe0ef
Just a base boilerplate flask app with a postgres database, alembic migrations, connexion api.
2020-09-10 11:28:58 -04:00