Commit Graph

61 Commits

Author SHA1 Message Date
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 668bc39cfd missed a critical configuration setting. 2020-09-30 14:00:44 -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 2fe87b1cf9 tell alembic not to futz with the apscheduler table. 2020-09-25 11:45:48 -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 74cc1aa4aa Merge pull request #1 from ianterrell/feature-scheduler
Add APScheduler for periodically updating data
2020-09-24 11:37:44 -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 523b68978c Merge branch 'master' of github.com:sartography/uva-covid19-testing-communicator 2020-09-23 16:01:41 -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
Aaron Louie 90cad53afb Removes some unnecessary DevOps stuff. 2020-09-23 15:36:56 -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 75ff45e9e4 fixing some configuration settings.
Adding the ivy_file table to track what information was loaded from ivy.
2020-09-23 14:59:26 -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
Dan Funk ccb9cf1631 minor changes to docker container 2020-09-22 14:27:28 -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 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 c9faccafe6 fixing up the dockerfile. 2020-09-17 12:00:38 -04:00
Dan Funk e7b118a0f1 fixing error in travis build file. 2020-09-17 11:36:56 -04:00