1953 Commits

Author SHA1 Message Date
mike cullerton
713dcd91dd fixed some syntax errors 2024-12-11 11:47:42 -05:00
mike cullerton
43f7152d41 static method issue 2024-11-13 11:34:43 -05:00
mike cullerton
9e007c15ba added superuser group 2024-11-13 11:12:48 -05:00
mike cullerton
b08cb4a5df another one 2024-11-13 11:02:28 -05:00
mike cullerton
59b562c9e1 missed a file 2024-11-13 10:47:05 -05:00
mike cullerton
87476865e5 template for adding a new script 2024-11-06 11:07:14 -05:00
mike cullerton
524c1c6a9a Removed some pre-processing, don't call get_study in the loop 2024-10-24 10:20:27 -04:00
mike cullerton
931f267359 code from top_level_workflow check_ready_for_pre_review 2024-10-09 15:20:28 -04:00
mike cullerton
6b1f3acf74 update Python libraries 2024-10-03 10:33:08 -04:00
mike cullerton
3d0d3fea11 added comment about query in get_task_events
SonarCloud string fixes
2024-09-12 09:26:11 -04:00
mike cullerton
574727378c fixed typo 2024-09-12 08:59:10 -04:00
mike cullerton
860007bfab No longer raise an error if we fail to generate localtime.
Now, we log the error and return None
2024-09-12 08:57:33 -04:00
mike cullerton
4a918c9b4a Ticket 28 - UIDs with capital letters 2024-05-24 15:54:18 -04:00
jpitts-uva
3d081563ae Removed "with app.app_context()" from process_erroring_workflows because it seems to be causing issues. 2024-03-13 07:31:23 -04:00
jpitts-uva
189d47be75 Added eml and msg file types and associated content types. 2024-01-29 02:20:56 -05:00
jpitts-uva
85e2a84642
Fix to prevent continuing Sentry "Working outside of application context" error. 2024-01-17 06:03:59 -05:00
danfunk
9cb7965e7e updating the email template to use a png file and inline styles rather than an SVG and style sheet. 2023-12-19 17:37:21 -05:00
danfunk
cb91c2ba4a remove check for when a person only has invalid study types. 2023-12-05 12:34:00 -05:00
danfunk
8755bc8b29 Trying to resolve an error with the task log. 2023-06-07 15:29:41 -04:00
danfunk
901042ae96 Trying to resolve an error with the task log. 2023-06-07 15:02:32 -04:00
mike cullerton
acaf3c2fd2 Simple script that returns the current study_id
Includes test and bpmn
2023-02-24 11:05:27 -05:00
Dan
cc00b545dc use the correct name for the script task. 2023-01-18 13:45:13 -05:00
mike cullerton
acde03806c Returns the list of studies for a user, from protocol builder 2023-01-12 13:04:55 -05:00
mike cullerton
f900279a02 include workflow.user_id in the WorkflowApi Model 2022-12-01 12:24:08 -05:00
Dan Funk
49f7cd92a6
Merge pull request #573 from sartography/bug/rename-file-issue
Rename file issue #768
2022-11-17 11:45:34 -05:00
mike cullerton
00c1c80356 Backend changes for renaming a bpmn file. 2022-11-17 10:47:35 -05:00
Dan
513d5664c1 Getting all tests passing with latest SpiffWorkflow. 2022-11-16 12:29:18 -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
jpitts-uva
e7e4e6afc7 Merge branch 'dev' into pb-sync-date 2022-10-19 14:21:41 -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
jpitts-uva
369f1e64ed Fixed conflicts 2022-09-30 14:50:52 -04:00
jpitts-uva
e2a2a691ef Filtering of studies is now by creation date instead of modified date. 2022-09-15 22:53:38 -04:00
jpitts-uva
33016005c2 Filtering of studies is now by creation date instead of modified date. 2022-09-15 15:36:17 -04:00
mike cullerton
fdf3dd497c Make sure we don't include archived files as attachments 2022-08-10 14:40:53 -04:00
Dan
4305b36b74 Removed total_tasks and completed_tasks - as they are no longer used by the front end, and were dubious as hell to begin with.
Upraded SpiffWorkflow and now use th new get_subprocess_specs
updated the calculate_stats in the workflow processor - as the serialization had changed drastically, and needed to debug some performance issues.
Added a get_navigation method that will calcuate a basic navigation list MUCH faster than using the get_flat_nav_list in Spiffworkflows Navigation object.
Modified a hellton of tests because we don't have total_task and completed_task counts, or a complex nested navigation list anymore.
2022-07-20 12:10:23 -04:00
Dan
9ab29cf1fe Upgrade spiffworkflow - the WorkflowTaskExecException was moved - so we have to update all import statements. 2022-07-14 13:37:16 -04:00
mike cullerton
cd743b4a72 Clean up data_store set
Fix workflow_service to work with data_store_service
2022-07-13 11:47:30 -04:00
mike cullerton
a1c5f0d492 Be explicit about values in data store service.
I.e., none of this adding variables to args, and counting them
2022-07-12 16:11:50 -04:00
mike cullerton
644629fbc8 Bug deleting a study 2022-07-12 15:07:19 -04:00
mike cullerton
200ace2ce5 Add data_store table to admin page 2022-07-12 14:13:34 -04:00
Dan
b15750d2e4 Cleaned up the Workflow Processor's init method
* removed all the performance metric code into a separate function.
* restructured the code so it is either creating a new workflow, or deserializing an old one.
* Added code to upgrade serialized objects from 1.0 to 1.1
* Using the new method of creating a bpmn_workflow object:
```python
                parser = self.get_spec_parser(self.spec_files, spec_info)
                top_level = parser.get_spec(spec_info.primary_process_id)
                subprocesses = parser.get_process_specs()
                self.bpmn_workflow = BpmnWorkflow(top_level, subprocesses, script_engine=self._script_engine)
```
Fixed a few minor bugs that stood out while testing
1. when updating a workflow, we should check for a valid task BEFORE calling cancel_notify, which requires a valid task.
2. get_localtime - quick fix on the date parser - for python 3.9.
3. the start_workflow script would error out in a way that made it unclear which workflow was having the problem.  Fixed the error.
2022-06-24 11:34:39 -04:00
Dan Funk
9378a2ae1f
Merge pull request #557 from sartography/chore/return-to-pi-api-759
Chore/return to pi api #759
2022-06-20 16:40:33 -04:00
Dan Funk
56d3a61f54
Merge pull request #556 from sartography/chore/email-attachment-info-758
Chore/email attachment info #758
2022-06-20 12:55:07 -04:00
mike cullerton
700c551e84 Script to retrieve Pre Reviews for a study 2022-06-20 11:26:06 -04:00
mike cullerton
7c9ccac8d2 Add new PB API endpoint for Pre Reviews. 2022-06-20 11:24:54 -04:00
mike cullerton
fd0058355b Add more examples in the description 2022-06-20 09:21:13 -04:00
mike cullerton
6b651c3da1 pass the doc_code along with the file data when appending attachments to email 2022-06-15 17:06:33 -04:00
mike cullerton
f060c60b03 save doc_codes to the DB, when we send an email 2022-06-15 17:06:01 -04:00
mike cullerton
6f393f712d Store doc_code information for email message attachments
- create table `email_doc_codes`
- create relationship with `email` table
- create schema for the new table
2022-06-15 15:15:40 -04:00