mike cullerton
8cac4e2f95
Change state from enum to string
2022-05-06 17:22:11 -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
b13aac84e7
Change workflow_state to state
2022-05-06 14:02:11 -04:00
mike cullerton
7e2d18f026
no message
2022-05-06 08:57:01 -04:00
mike cullerton
20a21b9267
Add workflow_state to processor_to_workflow_api method
...
Add new method to update workflow_state from master workflow
2022-05-06 08:53:54 -04:00
mike cullerton
128c516494
Reminder to delete this method after the code is migrated to WorkflowService.update_workflow_state_from_master_workflow
2022-04-29 17:45:38 -04:00
mike cullerton
0d7b26423c
*** WIP ***
...
Skeleton for updating the workflows in a separate call
2022-04-29 17:40:30 -04:00
mike cullerton
4c1ed88a0e
Cleaned up if condition logic
...
We weren't always creating the new file
2022-04-29 11:33:21 -04:00
Dan
cd3e74a3f2
Merge branch 'dev' into email-name-parameter-726
2022-04-27 16:13:32 -04:00
Dan
4d9e17986d
Merge branch 'dev' into document-history-695
2022-04-27 13:19:53 -04:00
mike cullerton
b52343903c
Add name
to email script and email_service
2022-04-25 15:38:15 -04:00
mike cullerton
97323279cf
Merge branch 'dev' into email-name-parameter-726
2022-04-25 15:01:06 -04:00
mike cullerton
36b51caeef
List the files by date, descending
2022-04-25 11:47:51 -04:00
Dan
12d717b395
Bump version of SpiffWorkflow, and inclode some additional debugging tools for size of json data in BPMN.
2022-04-25 07:55:10 -04:00
mike cullerton
1f23da00e5
Add include_archived parameter to get_files_for_study
2022-04-22 13:35:44 -04:00
mike cullerton
79de21b59a
query stopped working, so I tried this and it worked again
...
<shrug/>
2022-04-21 07:59:04 -04:00
Dan
c3e8793110
hot fix for issus with the new serializer.
2022-04-20 15:22:08 -04:00
Dan
18929580bc
Hot fix for another issue with the new serializer.
2022-04-20 14:27:36 -04:00
Dan
02703b89d8
Don't bomb out trying to parse the old json format for creating warnings about the task size.
2022-04-20 12:35:34 -04:00
mike cullerton
cf68367085
remove unused code
...
cleanup imports
2022-04-20 11:16:07 -04:00
Dan
85d11d913f
Merge branch 'dev' into feature/new_spiff_serializer
2022-04-20 10:59:58 -04:00
mike cullerton
8e6ca4c97f
DocumentModel => FileModel
...
document_id => file_id
2022-04-19 14:56:34 -04:00
mike cullerton
196f314b16
Add size column back in
2022-04-19 11:37:41 -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
9262a53b58
DataStoreModel.file_id => DataStoreModel.document_id
2022-04-19 07:44:31 -04:00
mike cullerton
a1882c0615
delete_file no longer static method
2022-04-18 16:40:19 -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
073ed44d51
file_id => document_id
2022-04-15 11:47:32 -04:00
mike cullerton
c2e39dfc95
Type is now a string, not an Enum
2022-04-15 11:45:59 -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
mike cullerton
a21aea3348
Fixed a bug where we tried to delete a record that did not exist
2022-04-14 15:37:05 -04:00
mike cullerton
b304b4725b
Merge branch 'dev' into file-refactor-705
2022-04-14 11:40:08 -04:00
mike cullerton
be24b598b8
Fix call to set_data_common - no longer have workflow_spec_id, add type of data set
2022-04-13 18:03:23 -04:00
mike cullerton
076eb8747f
Finish bug fix for deleting data_stores when value is None or empty string
...
Cleanup:
- Make sure workflow_spec_id has a value
- Change extra if conditionals to elif conditionals
2022-04-13 18:01:52 -04:00
mike cullerton
916daf002c
Clean up parameters for set_data_common
...
Use key, value instead of args[0], args[1]
2022-04-13 13:48:35 -04:00
mike cullerton
b1dca3f212
FileModel => DocumentModel
...
Remove unused imports
2022-04-13 08:34:10 -04:00
Dan
b455b73c7b
Don't freak out if there are not files to delete.
2022-04-12 14:43:34 -04:00
mike cullerton
b732fee675
Merge branch 'dev' into file-refactor-705
2022-04-12 14:01:49 -04:00
mike cullerton
b7ee50a17f
*** WIP ***
...
Many changes related to FileModel => DocumentModel
2022-04-12 13:56:54 -04:00
mike cullerton
fdea2d0cbc
Remove unused imports
...
Added TODO about imports for crc.models.workflow that aren't correct. I believe this was for files to the file system refactor, and we don't actually use this.
2022-04-12 13:55:35 -04:00
mike cullerton
7d62c2dd18
FileModel => DocumentModel
...
from_models => from_document_model
2022-04-12 13:51:09 -04:00
mike cullerton
3f97de6430
from_models => from_document_model
2022-04-12 13:50:26 -04:00
mike cullerton
f8d6f0a6da
No need for separate call to get file data
2022-04-12 13:50:04 -04:00
mike cullerton
0e5dcccfca
Remove unused imports
2022-04-12 13:46:05 -04:00
mike cullerton
d04b447c8c
Update data stores, rather than creating new ones
...
Delete 'extra' data stores
2022-04-05 18:15:58 -04:00
Dan Funk
6694dc6cb3
Merge pull request #510 from sartography/git-error-filenotfound-690
...
Git error filenotfound #690
2022-04-04 16:53:36 -04:00
Dan Funk
095105e3e6
Merge pull request #508 from sartography/validation-with-data-store-396
...
Validation with data store #396
2022-04-04 16:51:57 -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