Commit Graph

62 Commits

Author SHA1 Message Date
Dan e1f9dcded5 Assure we can associate the same person with a workflow under two different roles. 2022-04-04 16:01:48 -04:00
mike cullerton ee3217de62 Test for new feature 2022-03-28 11:59:53 -04:00
mike cullerton ace988d551 assert we get category and workflow in all the places 2022-03-14 12:02:11 -04:00
Dan 2fc4b44ef3 Create a path to directly download the spreadsheet file (and avoid the weird dance on the front end of making an API call to get file data.)
Fixing pagination.  Seems the front end uses a page_index that is 0 based, and sqlAlchemy prefers to start at 1.
2022-03-12 16:19:07 -05:00
Dan 52b5e1d34a Fixing tests. 2022-03-11 18:02:37 -05:00
Dan Funk 2d5517bd15
Merge pull request #487 from sartography/chore/update-get-workflow-status-664
Chore/update get workflow status #664
2022-03-10 14:30:32 -05:00
mike cullerton bb605bb23c Remove unused imports
Cleaned up some extra spaces
2022-03-09 15:03:14 -05:00
mike cullerton 203213d700 Fix tests to use new version of workflow
Add test with `metrics` as log level
2022-03-09 14:56:45 -05:00
mike cullerton e1d1a7613d Fix test to use workflow_spec_id 2022-03-09 11:15:20 -05:00
Dan Funk 3f82cdae48
Merge pull request #485 from sartography/bug/validating-associates-659
Bug/validating associates #659
2022-03-07 14:20:20 -05:00
mike cullerton ebaf857a14 Tests for using study in get_study_associates 2022-03-04 16:28:42 -05:00
mike cullerton 0ad12f9c85 Test for set_study_status script 2022-03-03 11:11:54 -05:00
Dan Funk 5ff84d74f1
Merge pull request #464 from sartography/feature/start-workflow-602
Feature/start workflow #602
2022-02-25 10:28:26 -05:00
mike cullerton ed0499a573 Make sure we have a workflow.
Raise an ApiError with the workflow_spec_id if we cannot find a workflow
2022-02-24 12:37:25 -05:00
mike cullerton 0b3187889d We now raise an error if the spreadsheet does not exist.
Added test for case where the spreadsheet does not exist
2022-02-24 10:25:34 -05:00
mike cullerton d378078d6f Change so that we always use the current workflow 2022-02-23 15:18:03 -05:00
mike cullerton 679a875666 Test for new script 2022-02-23 14:30:45 -05:00
mike cullerton 2aea4bc1ae Test for new script 2022-02-22 14:37:53 -05:00
mike cullerton e74e44e8e5 Test for new script 2022-02-16 15:54:56 -05:00
Dan 788e40a998 death to load_example_data() !!!!! 2022-02-09 22:13:02 -05:00
Dan f12c4aba52 Refactor the workflow_spec_service so it doesn't cache anything, it always reads what it needs from the file system. 2022-02-09 21:06:55 -05:00
Dan 89e02c6207 really need to avoid any kind of caching in the WorkflowSpecService 2022-02-09 13:37:57 -05:00
Dan 4ec6e403f5 1. Created a UserFileService, so it's clear what we use when for File Services, UserFiles, SpecFiles, and ReferenceFiles each function differently.
2. Reference Files and Spec Files are written to disk, they do not exist in the database at all.
2022-02-02 12:59:56 -05:00
mike cullerton 209ea49962 Test for new script 2022-01-24 12:41:08 -05:00
Dan d346589e07 1. added the ability to filter on level and user.
2. added a total to the response, so you can see what the total count of users is.
3. adding user_uid to the task_log table.
2022-01-12 08:58:50 -05:00
Dan 962d05c875 1. Created a TaskLoggingService to encapsulate what we are doing with Task Logging through BPMN Script calls and API calls from the front end.
2. Added two api endpoints that will allow us to get all the logs for a specific workflow or study.
3. Assured that requests for logs are paginated, sortable, and can be limited to a specific code if needed.
4. Assure that we only use logging levels that match the log levels of Python.
2022-01-10 13:16:54 -05:00
mike cullerton daef419993 Tests and workflow for the changes 2021-12-10 16:18:05 -05:00
mike cullerton 61975093f9 Renamed some files to include the word `progress` 2021-12-10 15:47:34 -05:00
mike cullerton 49ba36c95e Use one of the new statuses in the test.
Fix bug in validation test
2021-12-09 13:33:20 -05:00
mike cullerton 7ca7de177e Removed print statements 2021-12-03 11:55:35 -05:00
mike cullerton fa61aa0354 Tests for set_study_status 2021-12-03 11:45:39 -05:00
mike cullerton 1ed76bf534 test for get_study_status 2021-12-02 15:31:14 -05:00
mike cullerton 0f1ccd7db5 New script to check workflow status.
Includes test and test workflow
2021-11-30 08:54:15 -05:00
Dan d1eae3c15a Validation was failing for enum_label() expressions when called within a sub-process. Possible (but unlikely) that this would occur outside validation. 2021-11-09 12:55:06 -05:00
Dan Funk 3a36a48b88
Merge pull request #418 from sartography/convert-timestamp-499
Added ordered arguments to the get_localtime script #499
2021-11-03 14:28:57 -04:00
mike cullerton 1f9c80d70d Added ordered arguments to the get_localtime script
Modified the workflow so the first task is a form with booleans that allows me to test all the permutations.
Modified tests to cover all the permutations for calling the script
2021-11-03 08:36:24 -04:00
mike cullerton 47ead5ab45 Fixed validation bug.
There is no element documentation available in the task, so we mock up the email content.
2021-11-02 10:00:41 -04:00
Dan Funk c4f3a3ad0d
Merge pull request #413 from sartography/logging-script-513
Logging script #513
2021-11-01 15:41:38 -04:00
mike cullerton 81bb0013c8 Doh 2021-10-27 17:15:49 -04:00
mike cullerton 14593d54ef Added tests for validation 2021-10-27 17:03:46 -04:00
mike cullerton 629fe6f571 Tests and workflows 2021-10-27 16:39:50 -04:00
mike cullerton 38fbd08517 Renamed file 2021-10-27 16:36:48 -04:00
mike cullerton a3c3a9a75d Test and workflow for the new logging script 2021-10-27 12:22:17 -04:00
mike cullerton 7090a22a23 Remove content_html from the data we return from the email and get_email_data scripts 2021-10-26 16:28:50 -04:00
Dan d2799a758e Merge branch 'refactor/enums_as_key_value' into dev 2021-10-26 13:02:36 -04:00
Dan d0446cbc8a A quick fix to enum_label script. 2021-10-26 12:59:43 -04:00
alicia pritchett 7959f8ca3f
Merge pull request #405 from sartography/refactor/enums_as_key_value
Death to enumerated dictionaries
2021-10-25 15:17:17 -04:00
Dan 84ce24243f add an enum_label script that will return the label given a value selection. 2021-10-21 13:57:49 -04:00
mike cullerton c566fa1c8f Fixed test to look for datetime object 2021-10-20 12:16:18 -04:00
mike cullerton fc3e7f8183 Simple test for get_localtime script 2021-10-14 11:02:51 -04:00