Commit Graph

2254 Commits

Author SHA1 Message Date
Dan Funk eae6c8dd1a update to last commit, left an extra column on workflow model that does not need to exist. 2020-02-07 11:57:48 -05:00
Dan Funk e1148e1b3d Merge branch 'master' of github.com:sartography/cr-connect-workflow 2020-02-07 11:34:57 -05:00
Dan Funk 9bd93748be Returning better cleaner information about workflow with the workflow endpoint. Removes the get_all_tasks and get_user_tasks endpoints as tasks are returned with the workflow. Workflow endpoint also includes the last task and next_task, which may or may not be user tasks. The task "type" returned is now the class name of the task_spec, rather than just the word "task". 2020-02-07 11:34:44 -05:00
Aaron Louie 13604167fd Adds command line option to reset database 2020-02-06 21:08:49 -05:00
Aaron Louie 9fb3a96a50 Fixes instance path 2020-02-06 14:36:02 -05:00
Aaron Louie d51935244c Trivial change to force travis docker push 2020-02-06 11:18:23 -05:00
Dan Funk 349dac6e44 Fixing more stupid mistakes in the docker file. 2020-02-06 09:45:37 -05:00
Dan Funk 42ce7aaf07 Fixing more stupid mistakes in the docker file. 2020-02-06 09:45:24 -05:00
Dan Funk 04e8ae37a9 Grosly idiotoic mistakes happen when I do devops. 2020-02-06 09:41:44 -05:00
Dan Funk 7809de7706 Merge branch 'master' of github.com:sartography/cr-connect-workflow 2020-02-06 09:05:49 -05:00
Dan Funk 08da6eef62 Scripts should be executable. 2020-02-06 09:02:02 -05:00
Aaron Louie 71dac70e1f Updates list of allowed files. Removes unnecessary migrations. Note this will require a full wipe & reset of the database to work. 2020-02-05 17:23:37 -05:00
Dan Funk 8327e2bb22 Again... 2020-02-05 17:14:29 -05:00
Dan Funk 55261d634e A few additional scripts to get deployments to work on staging. 2020-02-05 17:07:34 -05:00
Dan Funk 78ba9b4949 Moving back to a travis that works. 2020-02-05 17:02:20 -05:00
Dan Funk a8d2bd1df5 one more time at travis. 2020-02-05 16:36:52 -05:00
Dan Funk af2f710ff4 Build and test the docker container. 2020-02-05 16:29:34 -05:00
Dan Funk 589b79e7fb Mis-spelling something stupid, more fixing of travis. 2020-02-05 16:22:47 -05:00
Dan Funk 087982e4c4 Updates in travis to do a push to docker hub, so our code can be deployed to various environments. 2020-02-05 15:53:52 -05:00
Dan Funk f913107d2e Another fix to travis config. 2020-02-05 15:28:41 -05:00
Dan Funk f611c16b57 Another fix to travis config. 2020-02-05 15:26:08 -05:00
Dan Funk d1c32c0aaa Travis configuration for connecting to postgres. 2020-02-05 15:17:47 -05:00
Dan Funk ce29376f34
Merge pull request #6 from sartography/feature/update-task-data
Feature/update task data
2020-02-05 15:06:48 -05:00
Aaron Louie 5a6d589e6d Adds form_field_key to API 2020-02-05 15:06:19 -05:00
Aaron Louie 58982ab306 Merge remote-tracking branch 'origin/feature/update-task-data' into feature/update-task-data 2020-02-05 14:55:59 -05:00
Aaron Louie 933a235471 Adds multiple and single file upload form controls 2020-02-05 14:55:52 -05:00
Aaron Louie 654f39e7fd Adds form field key to file model. 2020-02-05 14:55:31 -05:00
Dan Funk 3b827f2bc9 adding travis.yml configuration 2020-02-05 14:54:13 -05:00
Dan Funk ff63978da0 read the instance/config.py file in IF it exists. 2020-02-05 13:43:59 -05:00
Aaron Louie e1e866a2b3 Gets docker-compose working.
You'll need to add a .env file to the same directory as the docker-compose.yml file that sets the values for DB_USER and DB_PASS.
2020-02-04 21:42:09 -05:00
Dan Funk ec4df2b3fa Cleaning up the tests and making it easier to test workflows without adding them to the example data structure. 2020-02-04 16:49:28 -05:00
Dan Funk b1a81957ef Merge branch 'feature/update-task-data' of github.com:sartography/cr-connect-workflow into feature/update-task-data 2020-02-04 15:45:05 -05:00
Dan Funk 9e6fbfee79 Followup on Postgres - had some failing tests that needed cleaning up now that we are using a real database. 2020-02-04 15:44:06 -05:00
Aaron Louie 3ee0426ba9 Adds workflow_id to file endpoints. 2020-02-04 14:26:53 -05:00
Dan Funk 37df0bf8f4 Converting this over to using Postgres. See the new postgres directory for a docker container to spin this up. Tests and development databases are the same, will try and get this corrected at some point. 2020-02-04 14:25:17 -05:00
Aaron Louie 098ecb3e87 Wipes out old migrations, since changing foreign key constraints in SQLite requires a full database reset anyways. 2020-02-04 09:57:02 -05:00
Aaron Louie e717c25a25 Study ID is an integer. Task ID is a string. 2020-02-03 22:29:41 -05:00
Aaron Louie 0368657549 Adds ability to get FileModel records by study and task 2020-02-03 21:56:18 -05:00
Dan Funk 8fbbed4feb You must all "do engine steps" when completing a task so that it will kick off any automatic tasks/decisions/etc... this will update remaining tasks. Added some tests for parallel, since I wrote them trying to debug this. 2020-02-03 15:15:36 -05:00
Aaron Louie 8cc04aaad2 Adds task data to Task schema 2020-02-03 10:49:48 -05:00
Aaron Louie e4b2a7a641 Adds endpoint to retrieve all user tasks for a workflow, regardless of state 2020-01-31 12:40:08 -05:00
Aaron Louie 8d39a96606 Adds workflow spec & BPMN with parallel tasks 2020-01-31 12:01:41 -05:00
Aaron Louie ba9330bc21 Fixes broken tests 2020-01-31 11:33:43 -05:00
Aaron Louie 918a6d5ab7 Removes unsupported read-only flag on File schema for now 2020-01-31 11:33:31 -05:00
Aaron Louie 93a97e8835 Updates packages 2020-01-31 11:32:46 -05:00
Aaron Louie a0e60ddd77 Renames endpoint methods for clarity. Adds endpoint for just updating file info. 2020-01-31 10:39:19 -05:00
Dan Funk 3fb831bae4 When you create a study, all possible workflows are then associated with that study. 2020-01-30 09:11:17 -05:00
Aaron Louie e3a9cd8e04 Tweaks order & syntax of pipenv commands 2020-01-28 13:37:35 -05:00
Aaron Louie f312a0a0de Merge remote-tracking branch 'origin/feature/update-task-data' into feature/update-task-data 2020-01-28 13:25:57 -05:00
Aaron Louie fd1ea18cbc Adds name to example workflow specs 2020-01-28 13:25:54 -05:00