Dan
f12c4aba52
Refactor the workflow_spec_service so it doesn't cache anything, it always reads what it needs from the file system.
2022-02-09 21:06:55 -05:00
Dan
cc915ac25a
refactoring the study service.
2022-02-09 08:50:00 -05:00
Dan
dc040f190e
got one more test to work.
2022-02-08 11:30:13 -05:00
mike cullerton
265381f48c
Delete TODO comment. Done
2022-02-07 16:44:59 -05:00
mike cullerton
2bd833446e
get_spec not static
2022-02-07 16:33:42 -05:00
mike cullerton
2a6e8315a1
*** WIP ***
...
Committing to deal w/ the migration
2022-02-07 11:22:45 -05:00
Dan
4ec6e403f5
1. Created a UserFileService, so it's clear what we use when for File Services, UserFiles, SpecFiles, and ReferenceFiles each function differently.
...
2. Reference Files and Spec Files are written to disk, they do not exist in the database at all.
2022-02-02 12:59:56 -05:00
Dan Funk
97c29bf77c
Merge pull request #449 from sartography/files-to-filesystem-572
...
Files to filesystem 572
2022-01-26 10:11:26 -05:00
Dan
8529465322
Removed the method get_spec_data_files completly - using get_spec_files and get_spec_data to get this information instead.
...
Only load the spec data files if you are creating a new workflow, otherwise just deserialize the json.
Removed the stuff about calculaing the version of the spec, as we don't use it.
2022-01-25 16:10:54 -05:00
mike cullerton
1fe65ff6b7
Script to get a workflow spec from a workflow id.
2022-01-24 12:40:50 -05:00
mike cullerton
68ac056457
Merge branch 'dev' into files-to-filesystem-572
2022-01-18 08:18:14 -05:00
Dan
962d05c875
1. Created a TaskLoggingService to encapsulate what we are doing with Task Logging through BPMN Script calls and API calls from the front end.
...
2. Added two api endpoints that will allow us to get all the logs for a specific workflow or study.
3. Assured that requests for logs are paginated, sortable, and can be limited to a specific code if needed.
4. Assure that we only use logging levels that match the log levels of Python.
2022-01-10 13:16:54 -05:00
mike cullerton
dc27f795c8
*** WIP ***
...
Committing because it is Friday afternoon, and my computer is acting flaky
2022-01-07 15:34:51 -05:00
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