Commit Graph

2206 Commits

Author SHA1 Message Date
Kevin Burnett 29c3018ae0
bump lib to omit default on inclusive gw with matched conditions (#1781)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-20 10:10:41 -07:00
jbirddog ad0cf83cb6
Support non task data environment, step 1 (#1745) 2024-06-20 07:56:49 -04:00
dependabot[bot] d13420666a
Bump types-requests in /spiffworkflow-backend (#1772)
Bumps [types-requests](https://github.com/python/typeshed) from 2.32.0.20240521 to 2.32.0.20240602.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 18:26:37 +00:00
Kevin Burnett e4aac94a4e
Fix gunicorn and wait for schema issues (#1771)
* fix gunicorn and wait_for_db_schema_migrations

* avoid bad gunicorn version

* actually check that request succeeded

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-19 10:59:27 -07:00
Kevin Burnett 15628278d2
protect future_task foreign key add operation from running when bad data (#1770)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-19 08:38:01 -07:00
dependabot[bot] 07485b6a51
Bump types-dateparser in /spiffworkflow-backend (#1766)
Bumps [types-dateparser](https://github.com/python/typeshed) from 1.1.4.20240106 to 1.2.0.20240420.
- [Commits](https://github.com/python/typeshed/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 14:47:37 +00:00
Kevin Burnett bcf13bd46a
schedule waiting timer events after saving tasks because foreign keys (#1762)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-18 14:37:26 -07:00
jasquat 6fad14ae6f
do not try to queue task if the pi cannot be found and delete future tasks if parent task deleted w/ burnettk (#1761)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-18 13:54:09 -07:00
jasquat 95ed415bab
wait_for_db script executable and fixed package lock file w/ burnettk 2024-06-18 15:52:22 -04:00
pixeebot[bot] f487f905a5
Sandbox URL Creation (#1739)
* Sandbox URL Creation

* add security lib to correct location w/ burnettk

---------

Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-18 12:38:17 -07: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
jasquat 9957fc144a
update the hash column in json data table on duplicate entry w/ burnettk (#1750)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-18 12:08:44 -07:00
Kevin Burnett 0bccdb7cba
No auth for metrics (#1757)
* config scope

* no auth for metrics

* Update spiffworkflow-backend/src/spiffworkflow_backend/services/authorization_service.py

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

---------

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-18 14:23:26 -04:00
Kevin Burnett 538fbf261c
config scope (#1755)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-18 14:21:26 -04:00
dependabot[bot] b97cf0be9f
Bump openai from 1.12.0 to 1.34.0 in /spiffworkflow-backend (#1760)
Bumps [openai](https://github.com/openai/openai-python) from 1.12.0 to 1.34.0.
- [Release notes](https://github.com/openai/openai-python/releases)
- [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openai/openai-python/compare/v1.12.0...v1.34.0)

---
updated-dependencies:
- dependency-name: openai
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 18:12:49 +00:00
dependabot[bot] 54fc875e59
Bump mypy from 1.9.0 to 1.10.0 in /spiffworkflow-backend (#1729)
* Bump mypy from 1.9.0 to 1.10.0 in /spiffworkflow-backend

Bumps [mypy](https://github.com/python/mypy) from 1.9.0 to 1.10.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/1.9.0...v1.10.0)

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

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

* fixed mypy issue w/ burnettk

---------

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-06-17 13:34:44 -07: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 6a99762f70
better-db-migration-waiting (#1732)
* explicitly wait for db migrations to be completed instead of sleeping w/ burnettk

* code rabbit suggestion w/ burnettk

* get rid of the set x w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-13 13:34:32 -04:00
jbirddog 613d09c958
Only save all process models when a new bpmn file is added (#1725) 2024-06-12 14:50:08 -04:00
jasquat a63bba7257
use logging since celerly does not pass in a real logger w/ burnettk (#1715)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-12 11:23:28 -07:00
dependabot[bot] b5cbd34068
Bump cryptography from 42.0.5 to 42.0.8 in /spiffworkflow-backend (#1723)
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.5 to 42.0.8.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.5...42.0.8)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 14:44:21 +00:00
jbirddog 5659171fa3
Fix dictionary changed size during iteration error (#1711) 2024-06-12 08:00:50 -04: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
dependabot[bot] f3c51cdf88
Bump gunicorn from 21.2.0 to 22.0.0 in /spiffworkflow-backend (#1709)
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 21.2.0 to 22.0.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/21.2.0...22.0.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 15:08:21 +00: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
dependabot[bot] a63e8a34a1
Bump sentry-sdk from 1.45.0 to 2.5.1 in /spiffworkflow-backend (#1703)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.45.0 to 2.5.1.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/1.45.0...2.5.1)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 15:22:38 +00:00
jbirddog 9b8ceb4af8
Prevent KeyError for optional data store writes (#1700) 2024-06-10 11:17:41 -04:00
pixeebot[bot] 62124525d7
Secure Source of Randomness (#1695)
* Secure Source of Randomness

* lint

---------

Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-06-08 18:31:11 -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
dependabot[bot] 270e120f5c
Bump safety from 3.2.0 to 3.2.1 in /spiffworkflow-backend (#1689)
Bumps [safety](https://github.com/pyupio/safety) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/pyupio/safety/releases)
- [Changelog](https://github.com/pyupio/safety/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pyupio/safety/compare/3.2.0...3.2.1)

---
updated-dependencies:
- dependency-name: safety
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-07 14:28:09 +00:00
dependabot[bot] 08bc1e90bc
Bump pytest from 7.4.4 to 8.2.2 in /spiffworkflow-backend (#1687)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.4 to 8.2.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.4...8.2.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-06 15:07:43 +00:00
jasquat 10b30f6c14
remove the greater than symbol from the md sanitization method since it causes issues and does not seem to help w/ burnettk (#1685)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-06 10:40:50 -04:00
jasquat 4611628554
escape more characters when sanitizing for markdown (#1681)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-05 11:02:23 -04:00
dependabot[bot] 916e17f401
Bump typeguard from 4.2.1 to 4.3.0 in /spiffworkflow-backend (#1679)
Bumps [typeguard](https://github.com/agronholm/typeguard) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/agronholm/typeguard/releases)
- [Changelog](https://github.com/agronholm/typeguard/blob/master/docs/versionhistory.rst)
- [Commits](https://github.com/agronholm/typeguard/compare/4.2.1...4.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-05 14:42:43 +00:00
jasquat cee36c2d2d
remove-email-service (#1670)
* this library does not seem used so remove it and its dependency from the app

* use the flask version of sentry-sdk so it can install its dependencies

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-04 11:51:39 -04:00
jasquat 59d19bb457
Rjsf typing is slow (#1663)
* updated rjsf packages w/ burnettk

* use performance improvement branch of validate js v8 w/ burnettk

* Update spiffworkflow-backend/bin/task_data_to_python_variables.py

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

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-06-03 16:19:15 -07:00
dependabot[bot] 1ced0cc23f
Bump ruff from 0.4.6 to 0.4.7 in /spiffworkflow-backend (#1659)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.4.6...v0.4.7)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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-06-03 11:19:53 -07:00
burnettk 1f6ca8b727
allow local test tokens to last 24 hours 2024-06-03 13:04:28 -04:00
jasquat ae6f3119bb
updated libs for safety issues w/ burnettk (#1662)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-06-03 11:18:02 -04:00
dependabot[bot] 5e6ab9adb7
Bump coverage from 7.4.1 to 7.5.3 in /spiffworkflow-backend (#1637)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.4.1 to 7.5.3.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.4.1...7.5.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-05-31 21:10:12 -07:00
jasquat 59c1086d55
Pi fix pm gone (#1648)
* some better error logging when the background processor fails w/ burnettk

* handle process model not found issues better and do not raise in handle exception if it is missing w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-31 10:12:43 -04:00
burnettk d64f3953e8
fix doc for task list completed, which does not actually filter by calling user 2024-05-30 17:30:48 -04:00
burnettk c5359acaae
remove 172 lines of unused junk from api.yml 2024-05-30 17:03:30 -04:00
jasquat 2992798c5b
reference-cache-integrity-fix-2 (#1645)
* delete from process caller table explicitly before removing from reference cache to hopefully avoid integrity errors

* check if reference cache id list has items to avoid unnecessary db calls

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-05-30 14:15:40 -04:00
jasquat e9022fd2b1
do not restrict blank task list to not started pi but anytime the bpmn process is blank (#1644)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-30 10:18:40 -04: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 5db0feb32e
add publish permissions to process model for breadcrumb, not overwrite (#1633)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-29 12:01:28 -07: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
burnettk 7a76ecba50
fix typing issues and fix issue i introduced 2024-05-28 17:01:09 -04:00
burnettk 59c697e9bf
lint 2024-05-28 16:51:53 -04:00
Kevin Burnett 2fed502147
Merge branch 'main' into feature/docker-secrets 2024-05-28 20:47:12 +00:00
dependabot[bot] 3585fff1a0
Bump ruff from 0.4.4 to 0.4.5 in /spiffworkflow-backend (#1623)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.4.4...v0.4.5)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-28 14:47:30 +00:00
dependabot[bot] 37cc952e0d
Bump pygments from 2.17.2 to 2.18.0 in /spiffworkflow-backend (#1618)
Bumps [pygments](https://github.com/pygments/pygments) from 2.17.2 to 2.18.0.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.17.2...2.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-27 15:02:30 +00:00
Chris Daßler 92229f12f8 chore: Remove unused import 2024-05-27 14:51:57 +02:00
Chris Daßler 6e83494384 fix(): Ensure secure handling of file paths and improve error handling (CodeRabbit suggestion) 2024-05-26 20:50:45 +02:00
Sky 40f3dfca23
Update spiffworkflow-backend/src/spiffworkflow_backend/config/default.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-05-26 20:27:47 +02:00
Chris Daßler 84a47e0efd fix(): AttributeError: 'NoneType' object has no attribute 'startswith' 2024-05-26 20:19:59 +02:00
Chris Daßler 998e08ee6e fix(): Check if secrets file exists 2024-05-26 16:33:37 +02:00
Chris Daßler 3238fb6d6e feat: Using docker secrets - put file contents to env value 2024-05-26 16:19:30 +02:00
Kevin Burnett 0329c11182
more flexible local dev args (#1613)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-24 23:06:16 +00:00
dependabot[bot] 3d526cab3a
Bump flask-migrate from 4.0.5 to 4.0.7 in /spiffworkflow-backend (#1610)
Bumps [flask-migrate](https://github.com/miguelgrinberg/flask-migrate) from 4.0.5 to 4.0.7.
- [Release notes](https://github.com/miguelgrinberg/flask-migrate/releases)
- [Changelog](https://github.com/miguelgrinberg/Flask-Migrate/blob/main/CHANGES.md)
- [Commits](https://github.com/miguelgrinberg/flask-migrate/compare/v4.0.5...v4.0.7)

---
updated-dependencies:
- dependency-name: flask-migrate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-24 15:06:34 +00:00
jasquat 7281da6ce6
downgrade gunicorn to avoid SCRIPT_NAME header issue w/ burnettk 2024-05-23 16:12:17 -04:00
dependabot[bot] e2fe17cbbc
Bump gunicorn from 21.2.0 to 22.0.0 in /spiffworkflow-backend (#1597)
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 21.2.0 to 22.0.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/21.2.0...22.0.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-23 14:46:27 +00:00
jasquat c11577e990
allow guest users to use typeahead w/ burnettk (#1594)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-22 13:36:25 -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
dependabot[bot] 191f46b95b
Bump ruff from 0.3.5 to 0.4.4 (#1591)
* ---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

* fixed issues with new version of ruff w/ burnettk

---------

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-05-22 11:56:23 -04:00
dependabot[bot] 2e38a18cf7
--- (#1592)
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-22 15:10:50 +00:00
Kevin Burnett 65eb7115a0
bump spiff to get bugfix/missing-data-output update (#1584)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-05-21 16:24:41 -04:00
jasquat c882a208fb
Hunter is me main (#1585)
* get token object for local development env

* print just token to stdout in case we want to shell out to this script for some reason

* migrated get_token bash script to python version w/ burnettk

* ruff should ignore print statements in bin script w/ burnettk

---------

Co-authored-by: unknown <hdl560@163.com>
Co-authored-by: HunterIsMe <36193162+HunterIsMe@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-05-21 15:40:25 -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 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