3137 Commits

Author SHA1 Message Date
mike cullerton
8e6ca4c97f DocumentModel => FileModel
document_id => file_id
2022-04-19 14:56:34 -04:00
mike cullerton
061d55d231 Prep for final migration 2022-04-19 11:38:51 -04:00
mike cullerton
cde7aaaea5 Put size column back 2022-04-19 11:38:07 -04:00
mike cullerton
196f314b16 Add size column back in 2022-04-19 11:37:41 -04:00
mike cullerton
08e9628350 Fix test for get_zipped_files script 2022-04-19 11:37:08 -04:00
mike cullerton
80560b96c4 doc_code is now required 2022-04-19 11:35:53 -04:00
mike cullerton
11f9a4dfc2 Add size column back in 2022-04-19 11:35:19 -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
4c81623497 return something for the validation 2022-04-19 08:01:18 -04:00
mike cullerton
87b1e0d2c8 Fixes for tests 2022-04-19 07:51:29 -04:00
mike cullerton
9262a53b58 DataStoreModel.file_id => DataStoreModel.document_id 2022-04-19 07:44:31 -04:00
mike cullerton
69e4679667 add data_store records to from_document_model method 2022-04-19 07:43:25 -04:00
mike cullerton
afb11d2b6d form_field_key => irb_doc_code 2022-04-19 07:42:29 -04:00
mike cullerton
1398cb03f7 from_models => from_document_model 2022-04-19 07:36:46 -04:00
mike cullerton
8f199e2942 file_id => document_id 2022-04-18 16:41:03 -04:00
mike cullerton
4a4d74c801 file_id => document_id 2022-04-18 16:40:40 -04:00
mike cullerton
a1882c0615 delete_file no longer static method 2022-04-18 16:40:19 -04:00
Dan
4524d73838 Merge branch 'dev' 2022-04-15 15:57:19 -04:00
Dan Funk
e351d3ca15
Merge pull request #519 from sartography/feature/710_workflow_resets
"Reset" should not mean "re-start".  Calling the reset_workflow scrip…
2022-04-15 15:56:53 -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
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
mike cullerton
c2e39dfc95 Type is now a string, not an Enum 2022-04-15 11:45:59 -04:00
mike cullerton
dca91b83f5 No longer a static method 2022-04-15 11:45:13 -04:00
mike cullerton
e10bc23623 We archive files now, we don't delete them 2022-04-15 11:44:38 -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
9097851ae1 We now store type as a string, not an Enum 2022-04-15 10:23:00 -04:00
mike cullerton
ba2eef0ec9 Fixing failing tests 2022-04-14 18:07:23 -04:00
mike cullerton
389d2b413e More work on igrations 2022-04-14 18:06:08 -04:00
mike cullerton
70beba164b Merge branch 'dev' into file-refactor-705 2022-04-14 16:11:53 -04:00
mike cullerton
9a45b23ed8 Merge branch 'dev' 2022-04-14 16:04:23 -04:00
Dan Funk
0072f4ecea
Merge pull request #517 from sartography/another-data-store-bug
Another data_store bug
2022-04-14 16:02:51 -04:00
mike cullerton
ae67c8985a forgot the workflow 2022-04-14 15:50:12 -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
43458951df Adding the new required fields 2022-04-14 15:13:09 -04:00
mike cullerton
7da440f30c Update the data_store table with document_id for each file data_store 2022-04-14 15:12:41 -04:00
mike cullerton
b304b4725b Merge branch 'dev' into file-refactor-705 2022-04-14 11:40:08 -04:00
Dan Funk
7212510469
Merge pull request #516 from sartography/dev
dev to master
2022-04-14 11:36:24 -04:00
Dan Funk
e036d65ec6
Merge pull request #515 from sartography/data-store-bug-fix-709
Data store bug fix #709
2022-04-14 11:35:17 -04:00
mike cullerton
6c1fcc5cee Make sure we don't delete records when value is set to False 2022-04-13 18:10:35 -04:00
mike cullerton
ea657cbbc2 Change value from string 'None' to value None to test deleting data_stores.
This as a work around, because the form field is set to string for other uses
2022-04-13 18:09:18 -04:00
mike cullerton
19da7ecd7e Fix test workflows to use new data_store scripts 2022-04-13 18:07:13 -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
72f9ac33d0 Consolidate data_store scripts 2022-04-13 17:57:22 -04:00
mike cullerton
e87fae0004 *** WIP ***
Modify delete test to check for both None and empty string
2022-04-13 13:52:20 -04:00
mike cullerton
721907bf52 Modify test workflow to use new data_store_set script instead of separate study_data_set, user_data_set, and file_data_set scripts 2022-04-13 13:51:25 -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
efc37ee59f Prepare for migrating data_stores 2022-04-13 08:52:22 -04:00