593 Commits

Author SHA1 Message Date
mike cullerton
801da35b1c Open up create/edit/delete access on Study and File models
Add column_searchable, column_filters to TaskLogView, similar to EmailView
2022-05-19 15:54:37 -04:00
Dan
ec61615686 run our github actions for more things than just feature branches.
Don't try to decode a string object.
2022-05-16 15:41:44 -04:00
mike cullerton
b127705216 Add views for Email and TaskLog
Exclude data column from the file table
Clean up imports
2022-05-12 12:17:22 -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
mike cullerton
86f3c369a0 Picking nits 2022-05-06 14:13:25 -04:00
mike cullerton
b13aac84e7 Change workflow_state to state 2022-05-06 14:02:11 -04:00
mike cullerton
d91fa9e095 Don't update task if workflow is locked, hidden, or disabled 2022-05-06 08:49:20 -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
dd2e8ef32f We ran the get_master_spec method twice, instead of using the value in master_spec the second time 2022-04-29 17:36:15 -04:00
Dan
f5c0008b1b Merge remote-tracking branch 'origin/dev' into new-progress-status 2022-04-27 16:16:38 -04:00
Dan
4d9e17986d Merge branch 'dev' into document-history-695 2022-04-27 13:19:53 -04:00
mike cullerton
d7b608cf85 Set ProgressStatus to finance_in_progress when StudyStatus is open_for_enrollment 2022-04-26 15:18:39 -04:00
mike cullerton
97323279cf Merge branch 'dev' into email-name-parameter-726 2022-04-25 15:01:06 -04:00
mike cullerton
098363f82a bug fix. update_file is no longer a static method 2022-04-22 13:36:18 -04:00
mike cullerton
bc4109a9d0 Add include_archived parameter to get_document_directory api endpoint 2022-04-22 13:35:14 -04:00
mike cullerton
430addc33d delete_file method no longer static 2022-04-20 16:26:05 -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
c616a7b621 remove api/file_refactor.py 2022-04-20 10:40:24 -04:00
mike cullerton
fea9c969c2 document => file
file_refactor => file
2022-04-20 10:39:19 -04:00
mike cullerton
89a2650cc8 Put api endpoints back into api/file.py 2022-04-20 10:34:56 -04:00
mike cullerton
9a3c071223 DocumentModel => FileModel
document_id => file_id
2022-04-19 15:12:56 -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
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
4a4d74c801 file_id => document_id 2022-04-18 16:40:40 -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
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
aa52b7b790 FileSchemaRefactor => FileSchema 2022-04-12 13:39:48 -04:00
mike cullerton
09e259f554 Moved file api methods to file_refactor
This is temporary
Not sure where they will end up
2022-04-12 13:31:33 -04:00
mike cullerton
89ab55ce6b Removed unused imports 2022-04-12 13:28:49 -04:00
mike cullerton
556af3c425 Removed FileModel, FileDataModel imports
Added DocumentModel
2022-04-12 13:28:04 -04:00
Dan
befc299475 Merge branch 'dev' into chore/fix_validation_errors 2022-03-19 09:53:12 -04:00
Dan
e44ea6e13c merging in from dev. 2022-03-18 16:22:33 -04:00
mike cullerton
eaf8dace97 Process categories in get_study api call 2022-03-18 16:05:01 -04:00
Dan Funk
52c1f2f919
Merge pull request #498 from sartography/staging-500-error
Staging 500 error
2022-03-18 15:53:41 -04:00
Dan Funk
08e116515b
Merge pull request #496 from sartography/bug/cancel-notify-668
Fixes #668 - Cancel/Notify Called when loading last task
2022-03-18 15:31:18 -04:00
Dan
b7489aea43 merging in PI Name changes from Alicia's #499 PR. 2022-03-18 12:30:20 -04:00
alicia pritchett
b9b8210f8a rm pi id refs 2022-03-18 12:04:20 -04:00
Dan
ef5aca4fe4 ReviewType now comes back with the user studies, so we don't need to make an additional query to get it. 2022-03-18 09:59:10 -04:00
mike cullerton
276924960b Merge branch 'dev' into chore/fix_validation_errors 2022-03-18 08:36:03 -04:00
alicia pritchett
9b1a7ff286 Fixes #668 - Cancel/Notify Called when loading last task
don't call cancel notify if its an end event
2022-03-17 10:58:25 -04:00
mike cullerton
9a345da763 typo 2022-03-16 16:54:36 -04:00
alicia pritchett
5b7e71d42d meta field for categories 2022-03-16 12:49:35 -04:00
Dan
1506952df7 task_trace was a little mixed up in the errors. 2022-03-16 10:18:50 -04:00
alicia pritchett
37d92c6a5f WIP ~ adding a category metadata object 2022-03-15 10:49:41 -04:00
Dan Funk
791ab20f8c
Merge pull request #494 from sartography/chore/fix_validation_errors
Chore/fix validation errors
2022-03-14 16:51:27 -04:00
Dan
483d7e858b Improved Errors - Pick up on the new task_trace information in WorkflowException and pass it on through the api.
Also:  All script tasks should raise WorkflowTaskExecExceptions - NOT APIExceptions - this is because our scripts are executed by Spiff (not the other way around)  so the errors need to pass fluidly through spiff, and come back to use THEN we can convert them to APIErrors.  Otherwise we lose all kinds of good information about the error.
2022-03-14 16:00:53 -04:00
mike cullerton
3b049e358d Remove unused imports 2022-03-14 12:02:48 -04:00