404 Commits

Author SHA1 Message Date
Dan
59490fc350 locking spiffworkflow to a branch because we will not be able to quickly upgrade it at this time. This will allow the latest camunda forms to work. 2023-03-07 15:17:31 -05:00
mike cullerton
acaf3c2fd2 Simple script that returns the current study_id
Includes test and bpmn
2023-02-24 11:05:27 -05:00
mike cullerton
aebb9a578e Test for new script 2023-01-12 13:05:20 -05:00
mike cullerton
2b0d106be5 Bug fix for modify_template.
We were not checking whether the file was archived
2022-11-03 11:44:25 -04:00
Dan
2249965ade Paginator arguments changed slightly in latest releases of SQLAlchemy
Spiffworkflow 1.2:  Top Level Imports moved to appropriate modules
   - replace 'from SpiffWorkflow import WorkflowException' to 'from SpiffWorkflow.exceptions import WorkflowException'
   - replace 'from SpiffWorkflow import TaskState' to 'from SpiffWorkflow.task import TaskState'
   - replace 'from SpiffWorkflow import Task' to 'from SpiffWorkflow.task import Task'

SpiffWorkflow 1.2: Navigation code removed completely.  Proved to be of little use to folks, was super complex and difficult to maintain.

SpiffWorkflow 1.2: When inserting custom functions into the PythonExecutionEngine - be aware that the task data will act as the full context for execution, and will contain global functions and methods during the exec call.

SpiffWorkflow 1.2: All Task Specs now have a spec_type attribute, containing a descriptive string of the type, such as "User Task", "Script Task", "Start Event" etc...
2022-10-07 14:58:08 -04:00
Dan
5c76c90d04 send_file's arguments changed in a 2.2 of Flask.
Spiffworkflow 1.2:  remove all references of timeit (no longer in SpiffWorkflow)
Spiffworkflow 1.2:  pythonScriptEngine._evaluate no longer accepts a task argument.
Spiffworkflow 1.2:  CancelEventDefinition was removed - please use SignalEventDefinition instead
 EX: replace bpmn_workflow.signal('cancel')  # generate a cancel signal.
              bpmn_workflow.catch(CancelEventDefinition())
 WITH: bpmn_workflow.catch(SignalEventDefinition('cancel'))
Spiffworkflow 1.2:  Task States are JUST integers and TaskSpecNames is now a public dictionary, and can be used to covert a state to human readable string
    EX:  REPLACE:  user_task.state.name
         WITH:     TaskStateNames[user_task.state]
2022-10-05 15:31:56 -04:00
mike cullerton
e966641fdc Test for data store default value 2022-07-12 16:12:13 -04:00
mike cullerton
644629fbc8 Bug deleting a study 2022-07-12 15:07:19 -04:00
mike cullerton
77a56a9279 Test for new PB endpoint 2022-06-20 11:26:53 -04:00
Dan Funk
d3a89b6af4
Merge pull request #554 from sartography/chore/delete-file-changes-750
Chore/delete file changes #750
2022-06-03 16:22:25 -04:00
Dan Funk
d434602f55
Merge pull request #551 from sartography/chore/current-user-changes-755
Chore/current user changes #755  and lane permissions #737
2022-06-03 15:45:49 -04:00
mike cullerton
5addbd7286 Test and test workflow for the delete_file script changes 2022-06-03 13:35:20 -04:00
mike cullerton
7ece754d03 *** WIP ***
Tests for lane permissions
2022-06-02 16:49:21 -04:00
mike cullerton
2d9307cc4e Tests for each of the ways we can pass attachments 2022-05-27 10:25:20 -04:00
Dan
fb790fabe9 Merge branch 'dev' into chore/email-script-parameter-746 2022-05-26 11:51:01 -04:00
Dan Funk
d517f003e0
Merge pull request #546 from sartography/chore/create-template-option-745
Chore/create template option #745
2022-05-25 16:26:52 -04:00
mike cullerton
7ab265a5b5 Add a test for filtering attachments
Modify the bpmn file to accommodate the changes
2022-05-23 16:59:47 -04:00
mike cullerton
e92be44b6c Assert that we have the correct file name, depending on whether we pass the optional file_name parameter
Modify the bpmn file to accept the optional file_name
2022-05-23 14:22:14 -04:00
mike cullerton
b66bfb8a9b Merge branch 'dev' into chore/get-instance-script-729 2022-05-17 10:02:19 -04:00
mike cullerton
aa31007284 Added meaningful task names 2022-05-11 15:08:26 -04:00
mike cullerton
2e9205fa08 Test and workflow for new script 2022-05-11 15:07:47 -04:00
mike cullerton
5230ad8ee7 Test and workflow for new script 2022-05-10 15:11:49 -04:00
mike cullerton
c28e9a5bdd Make sure we update workflow state when processing the master workflow 2022-05-06 14:09:23 -04:00
mike cullerton
9b65c46eeb Workflow for new test 2022-05-06 09:24:17 -04:00
mike cullerton
c42fdb8d6f Modify test to include name. Assert name is in the table 2022-04-25 15:42:17 -04:00
mike cullerton
08e9628350 Fix test for get_zipped_files script 2022-04-19 11:37:08 -04:00
Dan
5e54c90b47 "Reset" should not mean "re-start". Calling the reset_workflow script will now set the workflow to an "unstarted" state with no outstanding tasks, no json-state structure stored. The workflow is not yet running.
Also:
* Assured that arguments are consistent (we always seem to use workflow_spec_id, so I made sure we use that consistently.
* Don't require named parameters - so it's cool to call it like: reset_workflow('my_workflow_id')
* Task Actions (ie create, assign, etc...) are now an enumeration in the models, and not static variables on Workflow Service, so we can reference them consistently from anywhere.
* Removed some repetitive code
* Always try to validate as much as possible in the scripts to save folks time debugging.
*
2022-04-15 15:36:23 -04:00
mike cullerton
ae67c8985a forgot the workflow 2022-04-14 15:50:12 -04:00
mike cullerton
ea657cbbc2 Change value from string 'None' to value None to test deleting data_stores.
This as a work around, because the form field is set to string for other uses
2022-04-13 18:09:18 -04:00
mike cullerton
19da7ecd7e Fix test workflows to use new data_store scripts 2022-04-13 18:07:13 -04:00
mike cullerton
721907bf52 Modify test workflow to use new data_store_set script instead of separate study_data_set, user_data_set, and file_data_set scripts 2022-04-13 13:51:25 -04:00
Dan Funk
bf898993c4
Merge pull request #514 from sartography/get-irb-info-issue-702
Get irb info issue #702
2022-04-12 08:14:14 -04:00
mike cullerton
ed49ebcc23 Fix mock data to only return 1 record
Add mock record for error state when study is not yet uploaded
2022-04-07 14:39:39 -04:00
mike cullerton
da7c0a50ae Workflows for new tests 2022-04-05 18:17:54 -04:00
Dan Funk
095105e3e6
Merge pull request #508 from sartography/validation-with-data-store-396
Validation with data store #396
2022-04-04 16:51:57 -04:00
mike cullerton
51c6871d06 Update mock data to use new valid review type 2022-03-30 10:30:27 -04:00
Mike Cullerton
9ec1514267
Merge pull request #509 from sartography/chore/zip-file-update-688
Chore/zip file update #688
2022-03-29 09:41:32 -04:00
Mike Cullerton
6ff0cdbb9d
Merge pull request #507 from sartography/bug/validating_data_security
Bug/validating data security #684
2022-03-29 09:41:02 -04:00
mike cullerton
ee3217de62 Test for new feature 2022-03-28 11:59:53 -04:00
mike cullerton
6b93d605d4 Test for new validation_data_store.
We set 3 `real` data_store values in the DB
The workflow sets 3 validation_data_store values
We assert that the correct values are returned.
We also assert that we get correct default values back if we pass in bad keys
2022-03-25 10:06:03 -04:00
mike cullerton
51fa494d03 Assert we evaluate the hidden property correctly during validation. 2022-03-23 16:49:35 -04:00
mike cullerton
94abd7eebf *** WIP ***
Add a temporary data store for validation
2022-03-23 15:15:01 -04:00
Dan Funk
244fced84d
Merge pull request #506 from sartography/chore/unchecked-checkbox-default-671
Unchecked checkbox default #671
2022-03-23 10:59:47 -04:00
mike cullerton
1969e0b051 Make sure we don't get null/None back from a boolean checkbox.
This is not a comprehensive test, because we can't have an unchecked checkbox in validation.
We really need a frontend test for this.
2022-03-23 09:48:13 -04:00
alicia pritchett
487a1a3987 Fixes #667- Validate Lane Variables 2022-03-21 12:18:40 -04:00
Dan
a401c41b23 Setting a minimum date for which to import studies.
Merging in code to improve performance of calculating percent complete for a study.
Assureing we have a primary investigator for the front page (another merge)
2022-03-18 15:27:45 -04:00
Dan
ef5aca4fe4 ReviewType now comes back with the user studies, so we don't need to make an additional query to get it. 2022-03-18 09:59:10 -04:00
mike cullerton
199fe0626a Assert that if we get null for DATELASTMODIFIED, we use the value in DATECREATED 2022-03-17 15:56:44 -04:00
Dan
52b5e1d34a Fixing tests. 2022-03-11 18:02:37 -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