390 Commits

Author SHA1 Message Date
mike cullerton
edd53fccb0 Add workflow_state to WorkflowMetadata 2022-04-29 17:41:52 -04:00
mike cullerton
7d29ac75de add workflow_state column to WorkflowModel 2022-04-29 17:30:38 -04:00
Dan Funk
c0e17c13c9
Merge pull request #526 from sartography/feature/better_errors
Re-add value expression, ad the default-value is not good enough.  so…
2022-04-27 16:18:49 -04:00
Dan
f5c0008b1b Merge remote-tracking branch 'origin/dev' into new-progress-status 2022-04-27 16:16:38 -04:00
Dan
7e1de883df Re-add value expression, ad the default-value is not good enough. sometimes we want to change value depending on other fields, which is not a 100% overlap with a default value. 2022-04-26 16:08:04 -04:00
mike cullerton
bcd2e32036 Add finance_in_progress to ProgressStatus 2022-04-26 15:17:31 -04:00
mike cullerton
56fe0bb606 Add name column to email table 2022-04-25 15:36:47 -04:00
mike cullerton
39e005dc24 Include user_uid and archived attributes with File and FileSchema 2022-04-21 17:12:29 -04:00
mike cullerton
cf68367085 remove unused code
cleanup imports
2022-04-20 11:16:07 -04:00
mike cullerton
fea9c969c2 document => file
file_refactor => file
2022-04-20 10:39:19 -04:00
mike cullerton
f75c932194 DocumentModel => FileModel
document_id => file_id
prep for migration
2022-04-19 15:10:05 -04:00
mike cullerton
061d55d231 Prep for final migration 2022-04-19 11:38:51 -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
69e4679667 add data_store records to from_document_model method 2022-04-19 07:43:25 -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
9097851ae1 We now store type as a string, not an Enum 2022-04-15 10:23:00 -04:00
mike cullerton
389d2b413e More work on igrations 2022-04-14 18:06:08 -04:00
mike cullerton
efc37ee59f Prepare for migrating data_stores 2022-04-13 08:52:22 -04:00
mike cullerton
a32f9a9458 Fix url link
This is a temporary fix. Unsure where it will end up
2022-04-13 08:51:33 -04:00
mike cullerton
bee58ec6d7 Coding style stuff 2022-04-12 13:38:38 -04:00
mike cullerton
0e3b467091 Modified FileSchema to match the new File 2022-04-12 13:38:12 -04:00
mike cullerton
22b3c8547f FileModel => DocumentModel 2022-04-12 13:33:24 -04:00
mike cullerton
525491921f from_models => from_document_model 2022-04-12 13:32:33 -04:00
mike cullerton
7c23d36d7c Add DocumentModel that combines FileModel and FileDataModel 2022-04-12 13:23:50 -04:00
mike cullerton
ae66934bf9 Fix bug where we tried to add files to the index that were removed from the repo 2022-03-29 09:49:05 -04:00
Dan
405c63aaef Merge remote-tracking branch 'origin/chore/study-progress' into staging-500-error 2022-03-18 12:59:31 -04:00
Dan
b7489aea43 merging in PI Name changes from Alicia's #499 PR. 2022-03-18 12:30:20 -04:00
alicia pritchett
f4cade1b44 remove pi id 2022-03-18 11:58:39 -04:00
alicia pritchett
b6b28ed127 fix tests remove pi id 2022-03-18 11:56:56 -04:00
alicia pritchett
12a0e26ee1 Include the PI name on the study model 2022-03-18 11:03:06 -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
alicia pritchett
2ab96b16a0 Update the study model to include a progress (integer) 2022-03-17 17:20:42 -04:00
mike cullerton
890f849cf2 Only DATELASTMODIFIED can be empty, not DATECREATED 2022-03-17 15:54:21 -04:00
mike cullerton
db6f594ba9 Allow for missing data 2022-03-17 15:18:06 -04:00
mike cullerton
a578cf2498 Some studies don't have a DATELASTMODIFIED, so we use DATECREATED instead 2022-03-17 14:50:47 -04:00
alicia pritchett
5b7e71d42d meta field for categories 2022-03-16 12:49:35 -04:00
alicia pritchett
37d92c6a5f WIP ~ adding a category metadata object 2022-03-15 10:49:41 -04:00
Dan
dec63839f3 Merge remote-tracking branch 'origin/dev' into chore/log-changes-661 2022-03-12 16:19:23 -05: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
alicia pritchett
4f0b9e3c4f Adds 2 new study progress statuses 2022-03-11 15:40:13 -05:00
mike cullerton
356a322e85 Merge branch 'dev' into chore/log-changes-661 2022-03-11 08:50:13 -05:00
mike cullerton
42f430673d Add metrics to TaskLogLevels 2022-03-09 14:54:56 -05:00
mike cullerton
c2035b7b40 Add workflow_spec_id to task_log model. This is because workflows can be deleted, so workflow_id is not dependable.
Add workflow (display_name) and category (display_name) to TaskLogModelSchema. We display these to the user on study home page in the logs.
2022-03-08 16:45:19 -05:00
Dan Funk
eae0b5286e
Merge pull request #483 from sartography/chore/study-status-changes-653
Chore/study status changes #653
2022-03-07 14:20:05 -05:00
mike cullerton
3920444acf *** WIP ***
Need to create a migration and some tests.
2022-03-02 15:26:21 -05:00
mike cullerton
cb65a7dc41 Add booleans for displaying push/merge buttons
*** WIP ***
Still need to add some tests for this.
Committing so we can work on the frontend
2022-03-02 12:03:08 -05:00
Dan
dde8873c9e 1. defer the loading of the bpmn_json when loading the workflow model. It can be stupidly larger. (see models/workflow.py)
2. Shave a little more time off the reset by not re-creating the whole WorkflowProcessor

cleaning up all the firsttime/sincetime statements.
2022-02-24 20:56:57 -05:00
alicia pritchett
a5acd9b07e Merge branch 'dev' into chore/variables-in-forms-550 2022-02-17 15:04:41 -05:00
alicia pritchett
08c1571803 Remove value_expression 2022-02-17 12:16:15 -05:00