Commit Graph

260 Commits

Author SHA1 Message Date
mike cullerton d30405226e Script to get the new progress_status value 2021-12-10 16:16:33 -05:00
mike cullerton 100e822f2e Fixes for set_study_progress_status to use new ProgressStatus enum 2021-12-10 16:15:49 -05:00
mike cullerton 61975093f9 Renamed some files to include the word `progress` 2021-12-10 15:47:34 -05:00
mike cullerton 791328d520 Don't need to ask the question twice 2021-12-03 12:18:17 -05:00
mike cullerton 6be9529b22 Fixed the class names 2021-12-03 11:53:21 -05:00
mike cullerton 34b4913542 Restructured `do_task`
Fixed up `do_task_validate_only`
2021-12-03 11:45:02 -05:00
mike cullerton 52bfa848ac *** WIP ***
Script to set study status
2021-12-02 17:11:28 -05:00
mike cullerton 8c66a3d2ef Script to get the status of the current script 2021-12-02 15:30:47 -05:00
Mike Cullerton 8cc581611e
Merge pull request #426 from sartography/feature/performance_improvement
Performance upgrades - study dashboard in less than 2 seconds now
2021-11-30 11:09:28 -05:00
mike cullerton 0f1ccd7db5 New script to check workflow status.
Includes test and test workflow
2021-11-30 08:54:15 -05:00
Dan 455c1035f1 Performance upgrade to script.py - reduce the number of times we generate the augmented list of script functions for running python evals.
Performance upgrade to study_service.py - Don't query on the whole WorkflowModel, just get the status that we need.  Saves lots of complex joins.
Performance upgrade to SpiffWorkflow - don't convert to box unless we have to do so.
2021-11-29 17:48:05 -05:00
Dan 8ec58fd6d7 Assure better error messages when parsing word documents with jinja syntax.
I also have a pull request into the folks that run the python docx library to improve their error messages that we depend on here.
2021-11-23 14:38:48 -05:00
Dan 4a1285b8e0 When validating a workflow, don't run the master workflow multiple times, its a huge waste of time.
Provide decent data when calling get_study_associate(s) scripts.
2021-11-22 17:17:19 -05:00
Dan 12b78c1f99 Value Errors should also alert us that we can't serialize the json.
Enum Label was depending on the options attribute not existing in some situtations, which is a bad assumption.  Rather, check for specific properties, and call back to using options as the default.
2021-11-22 12:37:10 -05:00
Dan 4d1f4429ff Fixing a bug in enum_label that was not working when lookup up an select list from a spreadsheet.
Assure we raise more thoughtful error messages when running getting exceptions in engine tasks.
Field Options should always be available now due to a fix in Spiffworkflow.
2021-11-22 12:26:30 -05:00
mike cullerton a8b7cd8bba Merge branch 'dev' into test-protocol-builder-519 2021-11-10 16:32:34 -05:00
Dan d1eae3c15a Validation was failing for enum_label() expressions when called within a sub-process. Possible (but unlikely) that this would occur outside validation. 2021-11-09 12:55:06 -05:00
mike cullerton d186b24de3 UVA PB returns the info in a list. We want the dictionary in the list 2021-11-05 14:26:21 -04:00
Dan Funk 3a36a48b88
Merge pull request #418 from sartography/convert-timestamp-499
Added ordered arguments to the get_localtime script #499
2021-11-03 14:28:57 -04:00
mike cullerton 1f9c80d70d Added ordered arguments to the get_localtime script
Modified the workflow so the first task is a form with booleans that allows me to test all the permutations.
Modified tests to cover all the permutations for calling the script
2021-11-03 08:36:24 -04:00
mike cullerton 47ead5ab45 Fixed validation bug.
There is no element documentation available in the task, so we mock up the email content.
2021-11-02 10:00:41 -04:00
Dan Funk c4f3a3ad0d
Merge pull request #413 from sartography/logging-script-513
Logging script #513
2021-11-01 15:41:38 -04:00
mike cullerton 5e569b9167 Unused imports 2021-10-27 17:19:27 -04:00
mike cullerton 81bb0013c8 Doh 2021-10-27 17:15:49 -04:00
mike cullerton c76d8230c0 Cleaned up validation 2021-10-27 17:03:27 -04:00
mike cullerton 6322353c88 Scripts to retrieve logging information 2021-10-27 16:39:25 -04:00
mike cullerton c61fad752f Bug fix 2021-10-27 16:38:36 -04:00
mike cullerton e783da00af Script to add a log message from a task.
Also added `*args` to the definitions for `do_task` and `do_task_validate_only` to the main script file. (These are the methods we overwrite in scripts.)
2021-10-27 12:21:38 -04:00
mike cullerton b252d11eb5 Merge branch 'convert-timestamp-499' of https://github.com/sartography/cr-connect-workflow into convert-timestamp-499
# Conflicts:
#	crc/scripts/email.py
2021-10-26 15:39:38 -04:00
mike cullerton a65c104a0b To validate get_email_data 2021-10-26 15:27:24 -04:00
Mike Cullerton 45fd317dc6
Merge branch 'dev' into convert-timestamp-499 2021-10-26 14:35:33 -04:00
mike cullerton f88aba1db0 Cleanup validation for get_locatime.
Make sure we send the same type of values back for validation.
2021-10-26 14:29:38 -04:00
Dan 1e1da2292b fixing a stupid mistake. 2021-10-26 13:36:38 -04:00
Dan d2799a758e Merge branch 'refactor/enums_as_key_value' into dev 2021-10-26 13:02:36 -04:00
Dan d0446cbc8a A quick fix to enum_label script. 2021-10-26 12:59:43 -04:00
alicia pritchett 7959f8ca3f
Merge pull request #405 from sartography/refactor/enums_as_key_value
Death to enumerated dictionaries
2021-10-25 15:17:17 -04:00
mike cullerton 7e3c47f8bf Added timestamp, and now return a schema just like the do_task method 2021-10-22 12:52:43 -04:00
Dan Funk 61e51e736f
Merge pull request #408 from sartography/jinja-complete-template-508
Jinja complete template #508
2021-10-21 14:22:00 -04:00
Dan Funk 36d30f23a1
Merge pull request #407 from sartography/jinja-include-403
Jinja include #403
2021-10-21 14:20:04 -04:00
Dan Funk 2ef03b0c79
Merge pull request #406 from sartography/convert-timestamp-499
Convert timestamp #499
2021-10-21 14:12:59 -04:00
Dan 84ce24243f add an enum_label script that will return the label given a value selection. 2021-10-21 13:57:49 -04:00
mike cullerton 3619240bae Move the parts for using Word documents as Jinja templates into JinjaService 2021-10-21 10:29:56 -04:00
mike cullerton 3291ea8cb0 Unused imports 2021-10-20 14:04:45 -04:00
mike cullerton 073875aa51 Put this back the way it was 2021-10-20 13:56:09 -04:00
mike cullerton 8fd55565a4 Move changes to another branch 2021-10-20 13:11:06 -04:00
mike cullerton 7d48fa6b31 The get_localtime script now returns a datetime object instead of a string.
Validation also returns a datetime object instead of boolean
2021-10-20 12:15:45 -04:00
mike cullerton 45e119a435 Changed validation to return an email_model, so it can be used in further validation 2021-10-20 12:14:16 -04:00
mike cullerton e707783cea *** WIP ***
committing changes to work on another ticket.
Still need to figure out the complete_template piece
2021-10-20 09:21:45 -04:00
mike cullerton 1c02928d04 Merge branch 'dev' into jinja-include-403 2021-10-19 10:09:18 -04:00
mike cullerton d84625c51e Merge branch 'convert-timestamp-499' into email-attachment-error-503
# Conflicts:
#	tests/emails/test_email_script.py
2021-10-18 17:08:56 -04:00