Dan
fb790fabe9
Merge branch 'dev' into chore/email-script-parameter-746
2022-05-26 11:51:01 -04:00
Dan Funk
d517f003e0
Merge pull request #546 from sartography/chore/create-template-option-745
...
Chore/create template option #745
2022-05-25 16:26:52 -04:00
mike cullerton
4a1300f101
Add test that checks the is_admin_workflow attribute on WorkflowApi
...
Add `from_workflow_model` helper method to the WorkflowApi class in api_models
2022-05-25 14:29:14 -04:00
mike cullerton
132a140d5a
Make sure the Master Workflow doesn't change the state for workflows in an Admin Sandbox
2022-05-24 15:33:56 -04:00
mike cullerton
3bd591b2ce
Allow us to set the admin
bit when creating a test WorkflowSpecCategory
...
This allows us to create an "admin sandbox" category in a test
2022-05-24 15:32:51 -04:00
mike cullerton
7ab265a5b5
Add a test for filtering attachments
...
Modify the bpmn file to accommodate the changes
2022-05-23 16:59:47 -04:00
mike cullerton
e92be44b6c
Assert that we have the correct file name, depending on whether we pass the optional file_name parameter
...
Modify the bpmn file to accept the optional file_name
2022-05-23 14:22:14 -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
Dan
45d5654da4
Do not automatically archive old files when a file of the same type is added.
2022-05-17 09:39:38 -04:00
Dan Funk
353da693a0
Merge pull request #542 from sartography/chore/revisit-admin-warnings-733
...
Chore/revisit admin warnings #733
2022-05-16 13:03:00 -04:00
Dan Funk
8e39a8ea7b
Merge pull request #541 from sartography/chore/workflow-state-script-738
...
Chore/workflow state script #738
2022-05-16 12:10:08 -04:00
mike cullerton
4297c78a4e
This is tested in test_get_study_updates_workflow_state
2022-05-12 10:11:25 -04:00
mike cullerton
d053dd8652
Clean up imports
...
Turn tests back on
2022-05-12 10:09:17 -04:00
mike cullerton
b10fdac32c
Create run_master_spec method in BaseTest
2022-05-12 10:06:57 -04:00
mike cullerton
aa31007284
Added meaningful task names
2022-05-11 15:08:26 -04:00
mike cullerton
2e9205fa08
Test and workflow for new script
2022-05-11 15:07:47 -04:00
mike cullerton
91727ec75a
first_task, second_task => task
2022-05-11 11:44:22 -04:00
mike cullerton
6fdf99a2e7
Add test for clear_data = True
2022-05-11 11:17:24 -04:00
mike cullerton
5230ad8ee7
Test and workflow for new script
2022-05-10 15:11:49 -04:00
Dan
063da419d0
updating for the last version of Spiffworkflow which deprecates the use of task.STATE values, in favor of TaskState.STATE, for example TaskState.READY
2022-05-10 12:28:55 -04:00
Dan Funk
a78bb46682
Merge pull request #538 from sartography/bug/email-data-issues-735
...
Bug/email data issues #735
2022-05-10 09:54:16 -04:00
mike cullerton
b9736b8e5c
Look for recipients, cc and bcc in the task data
2022-05-10 08:55:24 -04:00
mike cullerton
0eff50ca13
Add state_message to test
2022-05-09 09:08:52 -04:00
mike cullerton
312d338068
Merge branch 'dev' into chore/unlock-admin-sandbox-720
2022-05-09 08:35:13 -04:00
mike cullerton
d8ae719489
We don't need to run _update_status_of_workflow_meta any more
...
But, it returned warnings to the front end for debugging
Ticket 733 was created to address this.
Fix the warnings and return them again.
This also broke the tests in test_study_status_message, so we skip them for now
2022-05-06 14:13:02 -04:00
mike cullerton
c28e9a5bdd
Make sure we update workflow state when processing the master workflow
2022-05-06 14:09:23 -04:00
mike cullerton
092b71f341
Change workflow_state to state
2022-05-06 14:06:05 -04:00
mike cullerton
9b65c46eeb
Workflow for new test
2022-05-06 09:24:17 -04:00
mike cullerton
830a929a6b
New test - make sure we do not update tasks if the workflow is locked.
2022-05-06 09:23:39 -04:00
Dan Funk
dd33936dcf
Merge pull request #530 from sartography/bug/complete-template-issue-730
...
Bug/complete template issue #730
2022-05-04 10:21:03 -04:00
mike cullerton
7e480fc24b
Cleaned up tests around adding a file
2022-04-29 11:34:05 -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
608e3c653c
Assert that we return name
in the EmailModelSchema
2022-04-28 15:19:04 -04:00
mike cullerton
8f2aea3922
Test that ProgressStatus is set to finance_in_progress
when StudyStatus is set to open_for_enrollment
2022-04-26 15:30:56 -04:00
mike cullerton
c42fdb8d6f
Modify test to include name. Assert name is in the table
2022-04-25 15:42:17 -04:00
mike cullerton
97323279cf
Merge branch 'dev' into email-name-parameter-726
2022-04-25 15:01:06 -04:00
Dan
85d11d913f
Merge branch 'dev' into feature/new_spiff_serializer
2022-04-20 10:59:58 -04:00
mike cullerton
fbe9f5a17b
DocumentModel => FileModel
...
document_id => file_id
clean up imports
2022-04-19 15:07:05 -04:00
mike cullerton
ae2cb80d33
FileModelSchema requires irb_doc_code now, so we can't use it here
2022-04-19 15:04:42 -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
mike cullerton
87b1e0d2c8
Fixes for tests
2022-04-19 07:51:29 -04:00
mike cullerton
8f199e2942
file_id => document_id
2022-04-18 16:41:03 -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
5dc88c2d03
form_field_key => irb_doc_code
2022-04-15 11:46:55 -04:00
mike cullerton
ba24fba67e
Remove print statement
2022-04-15 11:46:26 -04:00
Dan
e68c95f03c
New serialization code, with the ability to load from the old serlializer if needed.
...
pipenv insisted on updating some other libraries so slight modifications for markupsafe.
2022-04-15 10:26:23 -04:00
mike cullerton
ba2eef0ec9
Fixing failing tests
2022-04-14 18:07:23 -04:00
mike cullerton
70beba164b
Merge branch 'dev' into file-refactor-705
2022-04-14 16:11:53 -04:00