Commit Graph

2931 Commits

Author SHA1 Message Date
alicia pritchett 829c810807 wip 2022-03-15 13:21:58 -04:00
alicia pritchett 37d92c6a5f WIP ~ adding a category metadata object 2022-03-15 10:49:41 -04:00
Dan Funk 791ab20f8c
Merge pull request #494 from sartography/chore/fix_validation_errors
Chore/fix validation errors
2022-03-14 16:51:27 -04:00
Dan Funk 8ea8993421
Merge pull request #493 from sartography/jinja-included-includes-670
Jinja included includes #670
2022-03-14 16:49:56 -04:00
Dan Funk 562ad1ac27
Merge pull request #492 from sartography/columns-missing-from-logs-678
Columns missing from logs #678
2022-03-14 16:48:50 -04:00
Dan 483d7e858b Improved Errors - Pick up on the new task_trace information in WorkflowException and pass it on through the api.
Also:  All script tasks should raise WorkflowTaskExecExceptions - NOT APIExceptions - this is because our scripts are executed by Spiff (not the other way around)  so the errors need to pass fluidly through spiff, and come back to use THEN we can convert them to APIErrors.  Otherwise we lose all kinds of good information about the error.
2022-03-14 16:00:53 -04:00
mike cullerton 4a626afa7d Added comment about the test 2022-03-14 14:01:13 -04:00
mike cullerton eb615012af Cleanup - remove unused import, print statement 2022-03-14 13:56:38 -04:00
mike cullerton 238840822d Included template test from hell 2022-03-14 13:54:46 -04:00
mike cullerton 416adcbe69 Recursively parse the included templates 2022-03-14 13:51:41 -04:00
mike cullerton a974b65333 Remove unused code 2022-03-14 12:03:11 -04:00
mike cullerton 3b049e358d Remove unused imports 2022-03-14 12:02:48 -04:00
mike cullerton ace988d551 assert we get category and workflow in all the places 2022-03-14 12:02:11 -04:00
mike cullerton a6a98bed10 Include workflow_spec_id when adding a log 2022-03-14 11:56:36 -04:00
Dan 90bfbed6fd Merge branch 'dev' into chore/fix_validation_errors 2022-03-14 10:58:01 -04:00
Dan Funk a926c9c85a
Merge pull request #490 from sartography/chore/log-changes-661
Chore/log changes 661
2022-03-12 16:23:17 -05:00
Dan 0510db38f1 Dealing with merge of migrations. 2022-03-12 16:22:45 -05:00
Dan 3189b07446 Merge branch 'dev' into chore/log-changes-661 2022-03-12 16:20:22 -05: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
Dan Funk ceb817bb75
Merge pull request #491 from sartography/chore/new-progress-stats-673
migration
2022-03-12 16:15:20 -05:00
alicia pritchett be6a6bcf2e migration 2022-03-12 15:20:14 -05:00
mike cullerton a536a79e87 Test for downloading logs 2022-03-12 14:29:02 -05:00
mike cullerton e7b9c2ed31 Merge branch 'chore/log-changes-661' of https://github.com/sartography/cr-connect-workflow into chore/log-changes-661 2022-03-12 14:25:16 -05:00
mike cullerton 015eeccb54 Change API endpoint to a GET 2022-03-12 14:23:22 -05:00
Dan 4e9fe3a6bb Merge branch 'dev' into chore/fix_validation_errors 2022-03-12 14:09:40 -05:00
Dan 4ab314c7b8 Be sure to delete the data store items when you delete a study. 2022-03-12 13:38:09 -05:00
Dan 00a99579c9 Revert "Be sure to delete the data store items when you delete a study."
This reverts commit c8e987cd39.
2022-03-12 13:36:13 -05:00
Dan c8e987cd39 Be sure to delete the data store items when you delete a study. 2022-03-12 13:35:04 -05:00
Dan 52b5e1d34a Fixing tests. 2022-03-11 18:02:37 -05:00
Dan Funk 0cee44985a
Merge pull request #489 from sartography/chore/new-progress-stats-673
Adds 2 new study progress statuses
2022-03-11 15:54:24 -05:00
alicia pritchett 4f0b9e3c4f Adds 2 new study progress statuses 2022-03-11 15:40:13 -05:00
mike cullerton b753f06394 Changes to remove pagination for the get_logs scripts.
We only use pagination for the get_logs_for_study API endpoint. (Used on the study page)
2022-03-11 14:03:09 -05:00
mike cullerton 1bfe656817 Remove unused API endpoint to get logs for a workflow.
We have a script for this that is used (in workflows)
We do use the API endpoint to get logs for a study. (On the study page)
2022-03-11 14:01:06 -05:00
mike cullerton 733e596283 rename get_logs to get_logs_for_workflow to better represent what it does 2022-03-11 13:58:25 -05:00
mike cullerton 356a322e85 Merge branch 'dev' into chore/log-changes-661 2022-03-11 08:50:13 -05:00
Dan Funk 2d5517bd15
Merge pull request #487 from sartography/chore/update-get-workflow-status-664
Chore/update get workflow status #664
2022-03-10 14:30:32 -05:00
Dan d90bf1c977 always but always return a valid status. 2022-03-10 14:28:47 -05:00
Dan Funk e1625d45f0
Merge pull request #488 from sartography/chore/add-metrics-to-logging-level-665
Chore/add metrics to logging level #665
2022-03-10 13:27:52 -05:00
Dan 5990f37183 Making the run-all-validations easier to work with. 2022-03-10 13:18:22 -05:00
mike cullerton ec9ff4ff8a *** WIP ***
Need to finish writing tests
2022-03-10 12:19:41 -05:00
mike cullerton d57d741c10 Added TODO 2022-03-10 12:17:32 -05:00
mike cullerton 423426c2c8 Removed some unused imports
Finished up get_all_logs_for_download
2022-03-10 12:14:14 -05:00
mike cullerton 9efb4c4fb3 New spreadsheet_service.
Accepts list of dictionaries, and optional headers and title
Creates spreadsheet from list of dictionaries
Returns the spreadsheet as a binary stream
2022-03-10 12:13:10 -05:00
mike cullerton 2224e34a94 Remove unused imports
Finish up download_logs_for_study
2022-03-10 12:10:54 -05:00
Dan c55cc4715d Fixing a bug that would cause us to evaluate the wrong field almost all of the time.
We looped over all the other fields in the task, to assure they at least had a null value, but in doing so, we overwrote the variable containing the field we were trying to test.
2022-03-09 15:26:29 -05:00
mike cullerton bb605bb23c Remove unused imports
Cleaned up some extra spaces
2022-03-09 15:03:14 -05:00
mike cullerton 203213d700 Fix tests to use new version of workflow
Add test with `metrics` as log level
2022-03-09 14:56:45 -05:00
Dan 02f1e40e32 Bumping SpiffWorkflow 2022-03-09 14:56:25 -05:00
mike cullerton 291de1c322 Add UserTask to pass in log data--level, code, and message 2022-03-09 14:55:52 -05:00