1953 Commits

Author SHA1 Message Date
Dan Funk
a267cff26b
Merge pull request #543 from sartography/admin-page-changes-736
Admin page changes #736
2022-05-16 13:05:28 -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
a44a278854 We were providing spurious/inaccurate warnings before because we were passing in the wrong arguments to the function. 2022-05-16 12:58:40 -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
mike cullerton
cb2bab33b0 Restore admin warnings 2022-05-11 16:57:39 -04:00
mike cullerton
e43df04116 New script that returns state and state_message for a workflow
- Requires a workflow_spec_id

- Returns a dictionary
  - {'state': 'required', 'message': 'This workflow is required.'},
  - {'state': None, 'message': None}

- Raises an error if no workflow_spec_id or if no workflow is found
2022-05-11 15:07:03 -04:00
mike cullerton
15d9eea96b New script that returns the SERVER_NAME of the current instance 2022-05-10 15:11:11 -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
Dan Funk
0431a6f17a
Merge pull request #535 from sartography/chore/unlock-admin-sandbox-720
Chore/unlock admin sandbox #720
2022-05-10 09:49:30 -04:00
Dan
8d8194da45 Removing some unused code. 2022-05-10 09:42:23 -04:00
mike cullerton
7371d9f4aa cc and bcc should be strings, like recipients 2022-05-10 08:54:11 -04:00
mike cullerton
8c92c7870c allow null values 2022-05-09 16:27:33 -04:00
mike cullerton
598a9b3ef1 Add progress_status to update study schema 2022-05-09 16:02:00 -04:00
mike cullerton
650c63f268 Unused 2022-05-09 10:26:42 -04:00
mike cullerton
8169014869 Allow None values for state (which is a string, not a mapping) 2022-05-09 10:07:43 -04:00
mike cullerton
67f435af2f redundant 2022-05-09 10:06:06 -04:00
mike cullerton
c3919c6112 clean up: spacing 2022-05-09 08:42:39 -04:00
mike cullerton
312d338068 Merge branch 'dev' into chore/unlock-admin-sandbox-720 2022-05-09 08:35:13 -04:00
mike cullerton
3d2ba971f2 Include the state message 2022-05-09 08:31:46 -04:00
mike cullerton
f49615bfec Change item to workflow_spec_id 2022-05-06 17:54:05 -04:00
mike cullerton
8cac4e2f95 Change state from enum to string 2022-05-06 17:22:11 -04:00
mike cullerton
86f3c369a0 Picking nits 2022-05-06 14:13:25 -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
e8c5ec1af5 Add is_locked to Task API object 2022-05-06 08:54:57 -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
5e7f226b4e Add workflow_state to Workflow and WorkflowApi models/schemas 2022-05-06 08:51:37 -04:00
mike cullerton
d91fa9e095 Don't update task if workflow is locked, hidden, or disabled 2022-05-06 08:49:20 -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
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
edd53fccb0 Add workflow_state to WorkflowMetadata 2022-04-29 17:41:52 -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
mike cullerton
7d29ac75de add workflow_state column to WorkflowModel 2022-04-29 17:30:38 -04:00
Dan Funk
6cd8d3d27b
Merge pull request #528 from sartography/document-history-695
document history fix #695
2022-04-29 12:56:31 -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
mike cullerton
05b7bd33a5 We don't have a modified date here, so use the creation date 2022-04-28 16:43:00 -04:00
mike cullerton
4e4c36bb50 Add name to the EmailModelSchema 2022-04-28 15:18:03 -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
4d9e17986d Merge branch 'dev' into document-history-695 2022-04-27 13:19:53 -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
d7b608cf85 Set ProgressStatus to finance_in_progress when StudyStatus is open_for_enrollment 2022-04-26 15:18:39 -04:00
mike cullerton
bcd2e32036 Add finance_in_progress to ProgressStatus 2022-04-26 15:17:31 -04:00
mike cullerton
b52343903c Add name to email script and email_service 2022-04-25 15:38:15 -04:00
mike cullerton
56fe0bb606 Add name column to email table 2022-04-25 15:36:47 -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