mike cullerton
acaf3c2fd2
Simple script that returns the current study_id
...
Includes test and bpmn
2023-02-24 11:05:27 -05:00
mike cullerton
971e869791
Add comment in the script about last assertion
2023-01-12 13:48:03 -05:00
mike cullerton
1009f8e1e7
Simplified the test
2023-01-12 13:44:55 -05:00
mike cullerton
aebb9a578e
Test for new script
2023-01-12 13:05:20 -05:00
mike cullerton
2b0d106be5
Bug fix for modify_template.
...
We were not checking whether the file was archived
2022-11-03 11:44:25 -04:00
mike cullerton
fdf3dd497c
Make sure we don't include archived files as attachments
2022-08-10 14:40:53 -04:00
Dan Funk
9378a2ae1f
Merge pull request #557 from sartography/chore/return-to-pi-api-759
...
Chore/return to pi api #759
2022-06-20 16:40:33 -04:00
mike cullerton
77a56a9279
Test for new PB endpoint
2022-06-20 11:26:53 -04:00
mike cullerton
0eee33f2a7
Make sure we send doc_codes with the get_email_data script
2022-06-15 17:07:02 -04:00
Dan Funk
d3a89b6af4
Merge pull request #554 from sartography/chore/delete-file-changes-750
...
Chore/delete file changes #750
2022-06-03 16:22:25 -04:00
mike cullerton
baa0df6908
Test to make sure we only delete files for the current study
2022-06-03 16:09:34 -04:00
mike cullerton
5addbd7286
Test and test workflow for the delete_file script changes
2022-06-03 13:35:20 -04:00
mike cullerton
2d9307cc4e
Tests for each of the ways we can pass attachments
2022-05-27 10:25:20 -04:00
mike cullerton
df4c37a1e6
Move the attachment tests to a separate file
2022-05-27 10:24:19 -04:00
mike cullerton
1822dda830
Move test_email_script to the scripts directory
2022-05-27 08:54:25 -04:00
mike cullerton
b66bfb8a9b
Merge branch 'dev' into chore/get-instance-script-729
2022-05-17 10:02:19 -04:00
mike cullerton
26abac3352
Update the test and README
2022-05-17 10:00:16 -04:00
mike cullerton
2e9205fa08
Test and workflow for new script
2022-05-11 15:07:47 -04:00
mike cullerton
5230ad8ee7
Test and workflow for new script
2022-05-10 15:11:49 -04:00
mike cullerton
ca1c60488e
Add test for name
in the get_email_data script
2022-04-28 15:37:01 -04:00
mike cullerton
fbe9f5a17b
DocumentModel => FileModel
...
document_id => file_id
clean up imports
2022-04-19 15:07:05 -04:00
mike cullerton
08e9628350
Fix test for get_zipped_files script
2022-04-19 11:37:08 -04:00
mike cullerton
fb5731ff23
Merge branch 'dev' into file-refactor-705
...
# Conflicts:
# crc/scripts/delete_task_data.py
# crc/services/workflow_processor.py
# tests/base_test.py
# tests/files/test_delete_task_data.py
2022-04-19 08:19:52 -04:00
Dan
5e54c90b47
"Reset" should not mean "re-start". Calling the reset_workflow script will now set the workflow to an "unstarted" state with no outstanding tasks, no json-state structure stored. The workflow is not yet running.
...
Also:
* Assured that arguments are consistent (we always seem to use workflow_spec_id, so I made sure we use that consistently.
* Don't require named parameters - so it's cool to call it like: reset_workflow('my_workflow_id')
* Task Actions (ie create, assign, etc...) are now an enumeration in the models, and not static variables on Workflow Service, so we can reference them consistently from anywhere.
* Removed some repetitive code
* Always try to validate as much as possible in the scripts to save folks time debugging.
*
2022-04-15 15:36:23 -04:00
mike cullerton
d5ed949ed6
FileModel => DocumentModel
...
Remove unused imports
2022-04-13 08:31:18 -04:00
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