Commit Graph

2089 Commits

Author SHA1 Message Date
jasquat a6bc8c76e4
pyl is passing 2024-05-17 14:37:37 -04:00
jasquat 2891ef5194
unit tests are passing 2024-05-17 14:32:14 -04:00
jasquat 1ee7bc4cd3
added model and updated src to use it 2024-05-17 14:06:22 -04:00
jbirddog 10e9511cfc
Clean up process references when deleting models and groups (#1561) 2024-05-16 14:52:55 -04:00
jasquat afd598bb8f
only return the tasks for the given bpmn process omitting tasks for call activities (#1562)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-16 11:29:53 -07: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 b6f50a65f3
save all bpmn files right before starting the server w/ burnettk 2024-05-14 11:29:09 -04:00
Kevin Burnett 8cb39ef214
allow large tokens to pass through nginx (#1550)
* allow large tokens to pass through nginx

* improve comment

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-13 16:56:37 -07:00
burnettk 11134d1577
fix one snyk issue and ignore another 2024-05-13 10:28:58 -04:00
Kevin Burnett c967af3d65
safety updates and ignore unfixable pip issue (#1544)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-13 07:23:55 -07:00
jasquat 59bf7ec7e9
Celery instructions fix (#1533)
* queue instructions after running a manual task as well

* avoid adding instructions for human tasks

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-10 12:06:43 -04:00
burnettk 3dac7e9226
update token expiry for test openid server 2024-05-10 10:18:07 -04:00
jasquat 50754b9d33
Remove add proce info (#1526)
* call the proc index when we need it rather than passing it through w/ burnettk

* removed all uses of additional_processing_identifier w/ burnettk

* added comment about why we need current proc index and made coderabbit suggestion w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-09 16:53:36 -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
burnettk 141a327627
make sure input line is set before doing things 2024-05-07 20:43:15 -04:00
jasquat 6bb24e51bf
queue the pi in the future if it is locked w/ burnettk (#1513)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-07 17:15:28 -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 84feef321d.

* 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 973e8fce72
added option to clone process models in boot in docker script w/ burnettk 2024-05-03 16:31:27 -04:00
jasquat e085c90114
Merge branch 'main' of github.com:sartography/spiff-arena 2024-05-03 14:57:39 -04:00
jasquat d01e52d81f
fixed run process model script to work with celery w/ burnettk 2024-05-03 14:57:35 -04:00
burnettk d7f0026433
add jq to backend deployment image 2024-05-03 13:50:42 -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
burnettk fa8f46d04b
ignore flask cors issue with no fix 2024-05-02 13:24:37 -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
Kevin Burnett 48200283b5
bump spiff for feature/receive-message-correlations (#1454)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-29 13:04:33 -07:00
Kevin Burnett 23e147793a
make permissions on process group show more nuanced (#1460)
* if you have access to things in a group, allow navigating through group

* lint

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-29 13:03:46 -07:00
jasquat bd51222efe
allow specifying certain jwt options as configs w/ burnettk (#1459)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-26 14:36:36 -07: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
jasquat c6f0dd65e5
log original error when token decoding fails w/ burnettk 2024-04-25 12:19:45 -04:00
jasquat d76333065a
remove useless comment w/ burnettk 2024-04-24 15:51:53 -04:00
jasquat 1355c97b69
load-parent-task-data (#1447)
* load task data for the immediate completed parent and for cancelled tasks

* reverted query_tasks script

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-04-24 14:08:31 -04:00
burnettk c2856be3bf
remove flake8 because ruff and bandit because it is in backend, fix long line 2024-04-24 12:59:20 -04:00
burnettk d197bf00a2
couple fixes to get current user finder script 2024-04-24 12:57:11 -04:00
jasquat ced3bffd69
pass task data from the db if data cannot be found on the expected task on the interstitial page (#1440)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-23 14:04:04 -07:00
burnettk 647133340d
bump spiff for message fix 2024-04-19 12:54:34 -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
jasquat a99c36964d
mi-task-show-fix (#1412)
* check for mi tasks first before checking more newest in task show api w/ burnettk

* remove console

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-17 11:53:10 -07:00
jbirddog 823bdd170b
Allow updating task data via a dictionary (#1414)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-04-17 14:20:51 -04:00
jasquat 94a60827e1
updated SpiffWorkflow to deepcopy task data (#1408)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-17 09:38:03 -04:00
dependabot[bot] 9891732515
Bump black from 24.3.0 to 24.4.0 (#1404)
* Bump black from 24.3.0 to 24.4.0

Bumps [black](https://github.com/psf/black) from 24.3.0 to 24.4.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/24.3.0...24.4.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* update black in backend as well for safety

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-16 10:57:15 -04:00
jasquat dc44cb28d5
fixed and ignored unfixable synk issues 2024-04-16 10:22:57 -04:00
jasquat 9147a8db8c
Use vite to build (#1390)
* some base updates for vite w/ burnettk

* i can log in w/ burnettk

* a couple more fixes w/ burnettk

* make sure selectedTabIndex has been set before using it w/ burnettk

* fixed active-users db issue, added type module to package json to fix prerender issues, and various other issues w/ burnettk

* fixed issues with building and running from compiled w/ burnettk

* pyl

* eslint fix is running and removed both inferno and navigationBar warnings

* vim likes the Dockerfile suffix by default

* use process.env.HOME

* probably do not need alias

* a little clean up and fixed font warnings w/ burnettk

* updated elements to remove warnings in the console w/ burnettk

* fixed es lint issues w/ burnettk

* update docker build in frontend w/ burnettk

* set the specific tag of nginx w/ burnettk

* build docker imgaes for this branch to test w/ burnettk

* added vitest and updated Dockerfile to be nginx w/ burnettk

* tests are passing w/ burnettk

* add prefresh and more keys

* added cypress-vite to attempt to get cypress working again

* some coderabbit suggestions

* hopefully there is no reason to use PUBLIC_URL at all when using vite

* use the correct location of the index file in the docker image

* spaces are fine in index.html file variable declaration

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-15 14:22:34 -04:00
jasquat dff34c7bfc
removed instruction from end event on new process model bpmn template 2024-04-15 10:23:10 -04:00