683 Commits

Author SHA1 Message Date
Dan Funk
80b8e0771c
Redirect debugging (#2192)
* Assure we always generated the redirect with the same exact peice of code. And debug the value that is used in that location

* missing argument.

* the final_url we want to return peoiple to is not the same as the redirect_url we send to an open id provider.

* final cleanup.

* remove accidental files.

* remove process_modesl symlink w/ burnettk

* ignore all process models at root, not just directories w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-12-12 15:29:03 -05:00
jasquat
b1359e3083
Do not delete canceled tasks (#2103)
* do not delete tasks that were canceled when we terminate a pi w/ burnettk

* added test to ensure pi can be terminated with subprocess w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-10-09 08:58:39 -07:00
jasquat
50ebf05100
Newuiv3 (#2047)
* new view to kick off process instance

* now ProcessModelCard can kick off an instance

* show total child items rather than using a slash

* some initial code to implement frontend from figma w/ burnettk

* updated homepage tab names w/ burnettk

* updated field names in new ui w/ burnettk

* moved nabar to wrapper component w/ burnettk

* added basics for dark mode w/ burnettk

* use spiff logo and colors w/ burnettk

* use spiff logo and colors w/ burnettk

* corrected hover colors in dark mode

* some additional formatting

* added tree view to start process page in v3 site w/ burnettk

* some cleanup for the tree view w/ burnettk

* removed unused side nav items w/ burnettk

* actually navigate to locations when clicking in nav bar w/ burnettk

* moved custom button inline with other items w/ burnettk

* moved used items from v2 ui to v3 and change paths to v3 to newui and old to newuiv2

* updated v2 code to match main so we can more easily compare against it

* revert v2 route as well to be like main

* some fixes and clean and added profile button w/ burnettk

* revert nav bar w/ burnettk

* update profile menu so it can log out w/ burnettk

* added dark mode button back w/ burnettk

* profile menu update w/ burnettk

* profile menu update w/ burnettk

* moved side nav into own component w/ burnettk

* make sure you have to logged in to see the new ui w/ burnettk

* stack icons on collapse

* allow profile menu to go beyond constraint of sidenav

* profile menu when collapsed

* make thing not overlap

* removed duplicate attribute

* get tasks from the api instead of mock data

* added waiting for column w/ burnettk

* fixed header names of new pages w/ burnettk

* swap colors

* updated some bgcolors w/ burnettk

* updated some of the theme colors w/ burnettk

* some more color cleanup w/ burnettk

* add border to table and background lighter like design

* more colors w/ burnettk

* add border

* add height to tab indicator props

* use macro colors

* persist theme selection in local storage

* h1 as god intended

* fix highlight on main nav

* new started by me view

* avoid hardcoding color because themes

* fetch process instances

* extract shared junk into components

* extract more shared junk

* some cleanup to the new workflow view w/ burnettk

* update button

* more tweaks and fixes to task table w/ burnettk

* match design

* some updateds to headertabs w/ burnettk

* make the create custom tab button look more like the other tabs w/ burnettk

* added view mode tile table toggle w/ burnettk

* add startopen script to allow all interfaces for dev server

* hide complete task play button if no task

* remove waiting for from tile if blank w/ burnettk

* implemented hide complete w/ burnettk

* show non active

* fixed var w/ burnettk

* do not show action if user cannot complete task w/ burnettk

* time ago ts

* added timeago in words to task table w/ burnettk

* some updates to timeago for typsescript w/ burnettk

* some formatting to the tile w/ burnettk

* move arrow to top right

* make the whole tile clickable if there is a task w/ burnettk

* default sidenav to collapsed on mobile

* tile views by default on mobile

* completely hide menu on mobile, not just collapse

* get rid of autocollapse on mobile code, since it is all hidden

* mobile nav

* improve mobile nav

* when you open the nav on mobile, it should always be expanded

* some minor support for user group select

* lint

* persistent top nav so you can always access menu on mobile

* implemented group by option w/ burnettk

* allow ungroup

* only show Ungrouped if it is grouped

* group by text

* use accent color when grouping tasks

* added text.accent for dark mode w/ burnettk

* copied task show elements to v3 folder w/ burnettk

* newui task show routes work w/ burnettk

* converted task show elements to mui w/ burnettk

* fixed up task show page a big w/ burnettk

* added padding to tash show page w/ burnettk

* modified colors for dark mode and consistency w/ burnettk

* added interstitial and progress pages to new ui w/ burnettk

* go to newui appropriately from interstitial

* allow grouping tasks by the process group of their instance

* scroll to the card when selecting from the left nav tree w/ burnettk

* move task details to bottom of tile w/ burnettk

* navigate back to home page when no more tasks w/ burnettk

* avoid cutting off right side of main content

* a little cleanup w/ burnettk

* some format updates to h tags w/ burnettk

* fix class name for carbon

* Newuiv3a (#2046)

* wip to get only runnable prcess models for start process model page w/ burnettk

* wip to get only runnable prcess models for start process model page w/ burnettk

* wrote out method to group by process group w/ burnettk

* added test for grouping by process group

* some cleanup to prepare to be merged into the main newuiv3 branch

* fixed mypy issues

* fixed tests

* fixed lint issues w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>

* try to fix animations

* remove favorites icon and update pi creation flow w/ burnettk

* remove carbon from interstital page w/ burnettk

* title is bpmn_name and name is bpmn_id

* slow fade transition from interstitial to homepage

* do a hilariously long fade in when going from interstitial to homepage

* show last process instance id saved on interstitial

* get rid of local storage

* move last instance to top and avoid on mobile

* avoid useEffect and rock local storage

* added some error display w/ burnettk

* moved v3 specific code to v3 dir w/ burnettk

* some code rabbit suggestions w/ burnettk

* more code rabbit w/ burnettk

* remove bad id w/ burnettk

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-08-16 15:13:33 -04:00
burnettk
c22739cffd
lint 2024-08-06 10:53:38 -04:00
burnettk
e1325eb47a
do not give postgres a chance to order arbitrarily 2024-08-06 09:59:56 -04:00
jasquat
42dc285203
Ht assignment fix (#2025)
* default desired user groups to empty array if open id is authority for groups

* only assign human tasks if assignments happened based on lane_assignment w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-08-02 13:10:35 -04:00
jasquat
ab5b041086
Ht user on group update (#2012)
* some basics to update human task users when a group is updated w/ burnettk

* do not delete groups that were specified from open id groups w/ burnettk

* some updates to remove old user task assignments w/ burnettk

* still need additional tests but pyl is passing w/ burnettk

* added a test to ensure user is assigned and unassigned a task when using open id as source for groups w/ burnettk

* set added_by in missing places w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-30 14:54:45 -04:00
jbirddog
b8c7aa991d
Event stream (#1993)
* WIP

* WIP

* WIP

* WIP

* add socket handler for spiff events

* standardize attributes of event log

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Get tests to pass

* Getting pyl to pass

* Moving to regular socket

* Try/catch

* WIP

* Getting dockerized

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Its broken

* WIP

* WIP

* WIP

* Update event-stream/elasticsearch.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update event-stream/elasticsearch.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update event-stream/elasticsearch.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Fix tests

---------

Co-authored-by: Elizabeth Esswein <elizabeth.esswein@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-26 11:52:03 -04:00
jasquat
57c7b12e38
look for any migration detail for the pi and target hash to get the git revision w/ burnettk (#1959)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-19 09:35:02 -07:00
jasquat
1cd3348b9f
update bpmn subprocess map in complete_task (#1953)
* return list of new bpmn subprocesses in complete_task w/ burnettk

* pyl w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-18 16:53:30 -04:00
jasquat
3dd5ac4d85
pi-migration-update-human-task (#1952)
* update the human task title when running pi migrations w/ burnettk

* updated some libs for safety w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-18 15:04:41 -04:00
jasquat
4992586719
pi-migration-delete-tasks (#1929)
* remove tasks from the db that were removed in the migration

* ensure the correct number of cycles when we migrate a pi

* delete the tasks that spiff returns instead of calculating it in backend

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-16 14:27:05 -04:00
jasquat
484f9801c9
do not store events when migrating a process isntance w/ burnettk (#1934)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-16 09:12:18 -07:00
jasquat
24b32cce40
pi-no-run-if-non-active (#1916)
* do not allow process instances to run do_engine_steps if they are not in an active state w/ burnettk

* no need to ignore cannot be run error from interstitial page w/ burnettk

* removed bad comment w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-12 12:09:52 -04:00
jasquat
d36c740180
use the correct git revision for the event and process instance when reverting a process instance migration (#1911)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-12 11:20:27 -04:00
jasquat
2e1ee93293
Pi migration 2 (#1902)
* added migration detail table along with migration fe page w/ burnettk

* allow specifying bpmn process defintion when getting instance w/ burnettk

* added a test for migration reverting w/ burnettk

* added result states to migration page w/ burnettk

* updated spiffworkflow to fix migration revert issue w/ burnettk

* added test for the migration events api w/ burnettk

* fixed tests

* finished migration web page w/ burnettk

* coderabbit and other issues and added spiffworkflow-local realm and use that if running locally

* fixed pyl issue

* just check for the git revision key in tests instead of a value since the value could be None

* ruff

* updated configs for cypress tests

* use correct realm in ci

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-11 13:46:54 -04:00
jasquat
ec21ffb735
Pi migration (#1892)
* some initial code to migrate a process instance w/ burnettk essweine

* the migration test is working now w/ burnettk essweine

* use the persist method from the pi migration method w/ burnettk

* updated spiffworkflow w/ burnettk

* added api to migrate a process instance w/ burnettk

* fixed tests w/ burnettk

* added api to check if a process instance can be migrated w/ burnettk

* return error if pi is not suspended when attempting to migrate w/ burnettk

* return error if pi is not suspended when attempting to migrate w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-09 14:35:14 -04:00
jasquat
352c04f62a
updated SpiffWorkflow for mi task performance improvements w/ burnettk (#1847)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-01 13:32:10 -07:00
jasquat
c0e072a2e2
Mi large data debug bpm only (#1846)
* some debug code to help track down slow processing times for mi tasks with larget data sets w/ burnettk

* use mapping cache for task models and bpmn processes and some linting cleanup

* some minor bugfixes w/ burnettk

* assign the correct bpmn process to the given guid w/ burnettk

* fixed data migration tests w/ burnettk

* unit tests are passing w/ burnettk

* integration tets are passing w/ burnettk

* some cleanup while code reviewing w/ burnettk

* some more cleanup w/ burnettk

* pass new args to TaskService in data migration w/ burnettk

* fixed broken test w/ burnettk

* allow running acceptance tests without keycloak w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-01 16:05:51 -04:00
jasquat
90216288c5
set-keys-on-message-start (#1835)
* set the correlations on the bpmn process instance when creating a process instance for a message start event w/ burnettk

* downgrade security to avoid unwanted print statements w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-27 13:33:51 -07:00
jasquat
bcb124813d
Pi summary field (#1830)
* added summary column to process instance w/ burnettk

* minor fix for summary report w/ burnettk

* force pi summary to 255 characters max w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-26 13:09:06 -07:00
jasquat
1d79d77686
Celery avoid requeueing (#1828)
* some debug code and potential fixes to avoid requeueing future tasks w/ burnettk

* actually insert the queued time into the future task table w/ burnettk

* fixed tests w/ burnettk

* handle missing process instances better from celery worker and updated some comments w/ burnettk

* added comment w/ burnettk

* minor fixes w/ burnettk

* added test for should_schedule_waiting_timer_events w/ burnettk

* added test to ensure we do not queue recently queued tasks again w/ burnettk

* remove traceback code

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-26 10:48:28 -07:00
pixeebot[bot]
26149ae339
Sandbox Process Creation (#1799)
* Sandbox Process Creation

* lib already in backend

* update security

* no need to test with newlines, hopefully, since they are not allowed by security lib

* typing things

---------

Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-25 16:24:41 -07:00
jasquat
eed946260c
Test migration change (#1784)
* added tests to ensure migrations do not change w/ burnettk

* fixed tests w/ burnettk

* pyl w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-20 12:38:59 -07:00
jbirddog
ad0cf83cb6
Support non task data environment, step 1 (#1745) 2024-06-20 07:56:49 -04:00
Ayoub Ait Lachgar
81f2f6191b
Feature/message editor improved UI (#1754)
* retrieval_expressions should be a string and not an array in this context w/ burnettk

* Improve message editor ui

* Check if CorrelationProperties arent synced

* Merge Imporoved UI for messages

* some linting fixes

* more linting

* some updates for linting and updated bpmn-js-spiffworkflow w/ burnettk

* removed unused console.log w/ burnettk

* fix language w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-18 15:15:25 -04:00
Kevin Burnett
991759deee
Generate markdown table (#1738)
* script for markdown table

* refactor

* refactor

* allow kwargs

* tests

* refactor tests

* sanitize markdown

* Update spiffworkflow-backend/src/spiffworkflow_backend/scripts/generate_markdown_table.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update spiffworkflow-backend/src/spiffworkflow_backend/scripts/generate_markdown_table.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* lint

* allow turning off sanitization for a column w/ burnettk

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-17 13:33:53 -07:00
jasquat
7536bc3716
only create the force run event if the instance was actually forced to run w/ burnettk (#1713)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-11 14:40:04 -04:00
Kevin Burnett
eae5f7dd2d
the big message improvements branch (#1549)
* imported patch from old message_improvements branch w/ burnettk

* wip.

* merging in changes from message_improvements

* remove patch files that were accidendetally added.

* Added a modal for editing a correlation.  Added ability to delete whole correlation keys.
A little css cleanup.

* * Removing migration - will add back in at the end.
* The Message models API should not require page and per_age parameters, it will return all.
* The Message model list should return a full json description of all messages/correlations for all containing groups.
*

* wip

* Add import, fix class name

* Getting ./bin/pyl to pass

* Getting ./bin/pyl to pass

* Some fe lint fixes

* Some ruff fixes

* Commands to nuke poetry dirs

* Temp skipping of a couple tests

* Getting ./bin/pyl to pass

* This needs to be back in

* Revert back to main

* Factored out data store handling

* Working on factoring out collecting messages, has test failure

* Formatting

* Fixed up test failures

* Remove commentted out lines

* Adding fields

* Fix merge issue

* Re-enable modal

* WIP

* Untested relationships

* Remove correlation key table

* Remove retrieval expression from uniqueness

* Remove commentted out lines

* WIP

* WIP

* WIP

* WIP

* WIP

* Make mypy pass

* Getting formatters to pass

* Add migration

* WIP fixing tests

* WIP fixing tests

* WIP fixing tests

* WIP fixing tests

* WIP fixing tests

* Getting ./bin/pyl to pass

* Fix skipped test

* Fix skipped test

* Getting ./bin/pyl to pass

* Remove unused method

* Remove unused methods

* Clean up unused code

* Refactor to support creating single messages from the UI

* Untested support for processing one process_group

* WIP test

* WIP test

* Filled out test

* Getting ./bin/pyl to pass

* Message Editor Modal Work

* Change migration and add in schemas.

* Swtich to using the associated branch of the process BPMN.io mods

* Get the backend returning messages created from the frontend to the drop down list in the BPMN.io editor.

* Merge main, fix up test

* Getting ./bin/pyl to pass

* Show path in location

* Rename var

* install packages from bpmn-js-spiffworkflow as well for local development

* process group api can add and update message models now w/ burnettk

* backend tests are passing now w/ burnettk

* the launch message edit button is loading the editor w/ burnettk

* updated bpmn-js-spiffworkflow

* pyl is passing w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* fixed console errors w/ burnettk

* a couple tweaks w/ burnettk

* save the message json in the new format from the mform w/ burnettk

* display the correlation props in the form w/ burnettk

* default to empty schema so the format is obvious

* allow removing correlation props from web ui w/ burnettk

* added save notification when saving a message on a process model w/ burnettk

* fixed broken test w/ burnettk

* Updating test cases to new message format, tests are failing

* support schema from messages in frontend

* Fixing tests

* Fixing tests

* Fixing tests

* removed references to correlation keys and removed unused components w/ burnettk

* removed temp mesasge model edit button w/ burnettk

* Make mypy pass

* Fixing tests

* Fixing tests

* Getting ./bin/pyl to pass

* save deleted messages before attempting to add new ones w/ burnettk

* set state for the message id so it can be changed w/ burnettk

* do not wait for the message id to be set since it is not necessary w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* build images for this branch w/ burnettk

* put location in path of message-models so we can control permissions on it w/ burnettk

* fix black

* some coderabbit suggestions

* pull in spiff fix

* Default schema to {}

* Temp fix for invalid schema

* updated bpmn-js-spiffworkflow

* some updates for issue 1626

* minor name tweaks and attempts to update message dropdown in panel when message changes - does not work yet w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* attempt to call add_message.returned event when message updates w/ burnettk

* treat formData as a state in the MesasgeEditor so it can be updated when the form contents is modified w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* Feature/merge correlation properties (#1693)

* Merge XML Correlation properties with Process group properties

* updates for messages w/ burnettk

---------

Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>

* do not wait for message id state to be set to better support new messages w/ burnettk

* updated SpiffWorkflow w/ burnettk

* some cleanup from coderabbit and linting

* added index to message tables, run typecheck in ci, and other updates while code reviewing w/ burnettk

* updated bpmn-js-spiffworkflow w/ burnettk

* remove branch to build

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: danfunk <daniel.h.funk@gmail.com>
Co-authored-by: Jon Herron <jon.herron@yahoo.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <2487833+jasquat@users.noreply.github.com>
Co-authored-by: theaubmov <ayoubaitlachgar98@gmail.com>
2024-06-10 09:15:54 -07:00
jasquat
586a088e21
update-spiffworkflow (#1694)
* updated SpiffWorkflow w/ burnettk

* added version 5 migration w/ burnettk

* pyl w/ burnettk

* added test for the version 5 migration w/ burnettk

* fixed the version 5 migration w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-07 13:23:19 -07:00
jasquat
928273c034
blank-task-list-on-new-pi (#1634)
* return a blank task list if the new instance has not started yet and does not have an associated bpmn process

* fixed minor typo

* use ruff instead of black for formatting w/ burnettk

* upgrade ruff and remove references to black w/ burnettk

* remove unnecessary packages for pre-commit w/ burnettk

* we do not use reorder lib w/ burnettk

* ruff is needed w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-29 16:25:47 -04:00
jasquat
a6a0d35b08
Reference cache integrity fix (#1627)
* added test to make sure process caller relationship table is properly updated and refactored clear reference cache to hopefully fix oddities when attempting to run it w/ burnettk

* fixed pyl w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-28 14:13:10 -07:00
jbirddog
5bf3ea0db2
Detect duplicate process ids when uploading/creating a new file (#1581)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-22 12:18:44 -04:00
jbirddog
5840db56cf
Update process callers when a file is uploaded (#1571) 2024-05-20 19:52:31 -04:00
jbirddog
10e9511cfc
Clean up process references when deleting models and groups (#1561) 2024-05-16 14:52:55 -04:00
jasquat
096d1ef66e
enhancement/allow-worfklow-targets-from-external-events (#1552)
* updated SpiffWorkflow and added test to make sure correct task gets the error in a multi-instance w/ burnettk

* use main of SpiffWorkflow w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-14 16:10:35 -04:00
jasquat
d5e0ab6989
Fix process data get subprocess 3 (#1515)
* Fix process data get subprocess (#1493)

* added test to make sure we can get the data object of a sub process

* avoid the processor altogether to get data objects but use the db directly

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>

* get the data object value from the bpmn process that defines it w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-08 09:29:07 -04:00
jasquat
a7370cd293
Fix process data get subprocess (#1493) (#1514)
* added test to make sure we can get the data object of a sub process

* avoid the processor altogether to get data objects but use the db directly

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-07 17:11:17 -04:00
jasquat
d86f3958f8
Multiinstance task data fix (#1497)
* Revert "Fix process data get subprocess (#1493)"

This reverts commit 84feef321d1e3931d0962d25176b836df9ab4c7b.

* added process model so we can test fixing loading task data with mi w/ burnettk

* added test and a potential fix w/ burnettk

* pyl is passing

* Update spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_process_instance_processor.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* put back api yml description

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-05-07 15:17:01 -04:00
jasquat
85352ca6bb
always load the file up as binary w/ burnettk (#1499)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-06 17:08:56 -04:00
jasquat
84feef321d
Fix process data get subprocess (#1493)
* added test to make sure we can get the data object of a sub process

* avoid the processor altogether to get data objects but use the db directly

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-03 11:10:55 -04:00
jasquat
86f97d5937
New calling process table (#1480)
* added new table to handle called process relationships

* process caller api endpoint is working again w/ burnettk

* fixed more tests and mypy w/ burnettk

* unit tests are passing and commented out unrelated failing test w/ burnettk

* all tests are passing almost w/ burnettk

* uncommented flakey test w/ burnettk

* minor change while reviewing w/ burnettk

* some changes from coderabbit suggestions w/ burnettk

* commented out sampling change w/ burnettk

* name the foreign keys on the process caller table w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-03 10:09:32 -04:00
jasquat
f5db660878
Perms for group navigate (#1470)
* wip related to giving access to groups when you have subgroups

* handle deny permissions and check normal permissions if pg parent method as well w/ burnettk

* reverted local dev perm file w/ burnettk

* a little test cleanup

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-30 14:11:51 -04:00
Kevin Burnett
98b87cde82
make sure init params are in include list (#1467)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-29 14:42:35 -07:00
jasquat
0d7a114c98
Config turn off threads (#1466)
* added config to turn off task execution with threads w/ burnettk

* do not run tasks in parallel if they have gateway children w/ burnettk

* remove debugging code w/ burnettk

* attempting to fix flakey test w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-29 16:50:20 -04:00
jasquat
00c2e85fee
Data store background fix (#1455)
* added test to demonstrate data store issue when run in certain contexts w/ burnettk

* added method to add kkv data store getters back onto tasks if appropriate w/ burnettk

* removed debug code w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-26 10:14:26 -04:00
burnettk
e198c8c866
update spiff for #1415 fix, and update expectation for now-started subprocesses 2024-04-18 17:15:18 -04:00
jasquat
32141a238e
Reset task in call activity fix (#1417)
* updated import pi test to set task data w/ burnettk

* fixed persist test so it loads the processor with data

* load data and completed tasks when getting bpmn json for an instance

* save start and end times on tasks on import w/ burnettk

* verify we are saving start and end times for imported process instances w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-18 14:11:53 -04:00
jasquat
6643db9f2f
Pi file data on fs (#1403)
* added basic support to store process instance file data on the file system w/ burnettk

* the files need to be in a hashed directory structure w/ burnettk

* fixed exception message w/ burnettk

* use the same entry method to the contents of data file w/ burnettk

* fixed hash method w/ burnettk

* make hash method easier to read w/ burnettk

* added a migrator and test for migration w/ burnettk

* fix a couple things while testing

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-18 11:24:59 -04:00
jbirddog
9043a08a9e
Drop element units as a dependecy (#1366) 2024-04-10 11:22:52 -04:00