52 Commits

Author SHA1 Message Date
Dan
dbff80ae27 update ivy files and remove noise from logs 2020-10-15 17:50:54 -04:00
Dan
a86ee07d60 I was overwriting the list of samples when two files were present, and I am stupid stupid stupid. 2020-10-15 17:35:58 -04:00
Dan
b1c9a7a4db adding some logging. 2020-10-15 17:22:28 -04:00
Dan
b813c4f272 adding some logging. 2020-10-15 17:21:20 -04:00
Dan
444c0cfebb Adding ability to turn off file deletion in configuration. 2020-10-15 16:16:46 -04:00
Dan
c239034c00 one last guess as to what could be happening with the files not getting updated properly. 2020-10-15 16:10:48 -04:00
Dan
921201ec90 adding optional file name argument for text messages as well. 2020-10-15 15:31:28 -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
5d9dbc12fe add additional endpoints so we can manually send out all notifications. 2020-10-13 16:13:41 -04:00
Dan
e63656d9f3 fix a stupid bug that verifies users have permission to see the api. 2020-10-12 16:35:14 -04:00
Dan
b89d2729fa Allow for the disabling of scheduled tasks in the configuration. Default to false. 2020-10-12 13:42:41 -04:00
Dan
cb4bec7190 Quit producting and error message in Sentry every 15 minutes 2020-10-07 13:05:46 -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
5dc0e72662 Enable sentry. 2020-10-06 12:49:27 -04:00
Dan
d66be8685a restrict access to a small set of netbadge users.
fixing saliva mis-spelling
Drop "Be Safe" use "Prevalance Testing"
2020-10-02 15:16:28 -04:00
Dan
2797083f73 updated email template 2020-10-01 15:59:46 -04:00
Dan
af488b5a2e check to see if there are files to transfer before making the request.
Cache the transfer client, so we aren't spinning one up too frequently.
2020-10-01 11:25:12 -04:00
Dan
ca37cba1d8 converting print lines to log messages 2020-09-30 16:18:57 -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
108191e8a4 new email format and content for invitations. 2020-09-30 15:29:02 -04:00
Dan
659264bfba Enable deleting of files once ingested. 2020-09-30 13:50:04 -04:00
Dan
4b2422d51e Enable deleting of files once ingested. 2020-09-30 12:34:15 -04:00
Dan
8c705d1bf4 Embed image in email rather than reference remove file. 2020-09-28 13:27:25 -04:00
Dan
2a5979d0e3 Because we send messages out as a scheduled task with no request attribute, we need a way to configure the base url so we can host images in emails. 2020-09-28 11:37:35 -04:00
Dan Funk
039da1b470 assuring the front page is properly paginating (it is)
Adding a complete delete endpoint for removing files from globus
Removing a bad header text in the email messages
2020-09-25 12:55:14 -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
b786aba6d8 Fix date formats to the correct timezone 2020-09-24 14:39:09 -04:00
Dan Funk
59436a1c5a fixing a stupid. 2020-09-24 13:43:21 -04:00
Dan Funk
360d20560b provide some deatils on the current user. Assure we can get them consistently. 2020-09-24 13:36:46 -04:00
Dan Funk
c17a18ab4a clean up scheduler, and prepare for automating everything.... 2020-09-24 12:25:18 -04:00
Dan Funk
0057a8e303 Test the scheduler, and see if it works. 2020-09-24 11:51:50 -04:00
Dan Funk
586e5c9cf3 Merge branch 'master' into feature-scheduler 2020-09-24 11:37:35 -04:00
Dan Funk
da6fedc074 Load image from local png (svgs won't load in gmail)
clear out form after sending bulk emails
2020-09-24 11:34:12 -04:00
Dan Funk
f7a4909497 import directory must be configurable.
fixing invalid routes on index files.
2020-09-23 21:53:03 -04:00
Dan Funk
d6b639ca23 record what invitations were sent so far, and perform some basic validation on the email list provided before sending and recording. 2020-09-23 17:01:12 -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
ea0cc682e3 Adding an SSO endpoint to see what I can see.
Adding some additional configuration settings into the default configuration.
Adding the ivy_file table to track what information was loaded from ivy.
2020-09-23 14:43:24 -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
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
Ian Terrell
94ab7bfe14 Add APScheduler for periodically updating data
- https://apscheduler.readthedocs.io/en/latest/userguide.html
- Scheduled jobs are persisted via SQLAlchemy in project database
2020-09-22 14:25:32 -04:00
Dan Funk
dd07f2ecf0 read json configuration from file for firebase 2020-09-21 16:18:26 -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
ad1f9c0b3a Basic email configuration 2020-09-17 11:18:51 -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