mike cullerton
209ea49962
Test for new script
2022-01-24 12:41:08 -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
Dan
212be423f7
bumping spiffworkflow to support transcations and cancels properly.
2021-12-30 13:01:38 -05:00
Dan
3480e1c8ab
use a signal, in addition to firing off a cancel notify when a workflow is restarted.
2021-12-23 15:30:09 -05:00
Dan
c46800171d
Merge remote-tracking branch 'origin/dev' into bug/fix-task-data
2021-12-13 13:18:00 -05:00
mike cullerton
acbb8898e4
Merge branch 'more-study-statuses-562' into waiting-workflow-errors-566
2021-12-10 16:52:07 -05:00
mike cullerton
daef419993
Tests and workflow for the changes
2021-12-10 16:18:05 -05:00
mike cullerton
61975093f9
Renamed some files to include the word `progress`
2021-12-10 15:47:34 -05:00
alicia pritchett
cacd57ce6f
fix this bpmn
2021-12-10 12:31:35 -05:00
mike cullerton
52baf25459
In `WorkflowService.do_waiting`, if a workflow causes an exception, change its status from `waiting` to `erroring` so we don't continue to call it in `do_waiting`.
2021-12-09 15:33:39 -05:00
mike cullerton
49ba36c95e
Use one of the new statuses in the test.
...
Fix bug in validation test
2021-12-09 13:33:20 -05:00
Dan Funk
0cfa59bfea
Merge pull request #429 from sartography/chore/clear-form-data-553
...
Fixes #553 - Don't load Form data
2021-12-08 10:37:44 -05:00
Dan Funk
b28ddef842
Merge pull request #430 from sartography/study-status-scripts-556
...
Study status scripts #556
2021-12-08 10:36:53 -05:00
Dan
ffafc1674a
assure we don't overwrite task data with a previous form submission if that data already exists.
2021-12-07 17:04:20 -05:00
mike cullerton
d0ddc7a00f
Updated to match new UVA API endpoint
2021-12-06 14:39:49 -05:00
alicia pritchett
22320efad4
test for this ticket
2021-12-03 12:23:57 -05:00
mike cullerton
fa61aa0354
Tests for set_study_status
2021-12-03 11:45:39 -05:00
mike cullerton
1ed76bf534
test for get_study_status
2021-12-02 15:31:14 -05:00
Dan
cf3f8ce444
Missing the bpmns for a test.
2021-11-30 13:29:31 -05:00
Dan Funk
8c30df011b
Merge pull request #427 from sartography/workflow-status-script-548
...
Workflow status script #548
2021-11-30 10:51:57 -05:00
Dan Funk
c8c8c8b244
Merge pull request #424 from sartography/xls-xlsx-issue-540
...
Xls xlsx issue #540
2021-11-30 10:50:33 -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
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
5e97953c19
Merge branch 'dev' into xls-xlsx-issue-540
2021-11-16 15:59:06 -05:00
Dan
8e2e3519f6
fixes to our tests related to updates in SpiffWorkflow
2021-11-16 15:57:37 -05:00
Dan
3569c82e80
fixing additional tests
2021-11-16 15:46:02 -05:00
mike cullerton
df0800f071
New test and xls file for failing test
2021-11-16 11:57:24 -05:00
mike cullerton
4e13ea6704
Fixing test mocks
...
- study_details returned in a list
- added `Q_COMPLETE` and `HSRNUMBER` to user_studies
- `required_docs` totally different from what we had
2021-11-08 09:55:06 -05: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
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
629fe6f571
Tests and workflows
2021-10-27 16:39:50 -04:00
mike cullerton
a3c3a9a75d
Test and workflow for the new logging script
2021-10-27 12:22:17 -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
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
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
9ffd003d56
Test for embedded templates
2021-10-21 13:37:56 -04:00
Dan
1c84bd9f1b
Merge branch 'dev' into refactor/enums_as_key_value
2021-10-19 12:02:45 -04:00
Dan
5429e7da7d
All enumerated lists used in web forms should contain a single value, not a dictionary of value/labels.
...
Removing the spreadsheet.value.column and data.value.column so we just have value.column for both.
Improving the __str__ function in the ApiError class, to make debugging a little easier.
Adding a "validate_all" flask command, to help us track down any issues with current workflows in production (use this in concert with sync_with_testing)
Fixed logs of tests.
removed fact_runner.py, a very early and crufty bit of code.
2021-10-19 10:13:43 -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
mike cullerton
0122029e30
*** WIP ***
...
Migrating the complete_template script stuff to JinjaService.
Having trouble with the tools stuff.
Pulled back to spot where test pass using CompleteTemplate
2021-10-18 16:56:03 -04:00
mike cullerton
dc7b39b5c8
Tests and workflows for the cases where attachments is None or ''
2021-10-18 11:21:24 -04:00
mike cullerton
6b1e0ebbfe
First couple tests, and a workflow for testing email
2021-10-16 14:23:12 -04:00
mike cullerton
fc3e7f8183
Simple test for get_localtime script
2021-10-14 11:02:51 -04:00
mike cullerton
1ef063de37
Merge branch 'email-cleanup-498' into convert-timestamp-499
2021-10-13 15:50:01 -04:00
mike cullerton
8015d35424
Script to get localtime from a UTC datetime
2021-10-13 15:36:37 -04:00
mike cullerton
a1a06f06ca
We now get an email model back
2021-10-13 11:47:40 -04:00
Dan Funk
6428e4ab0a
Merge pull request #397 from sartography/email-data-script-487
...
Email data script #487
2021-10-12 15:55:48 -04:00
Dan Funk
dc07d42a9c
Merge pull request #395 from sartography/email-format-489
...
Email format #489
2021-10-12 15:51:57 -04:00