2296 Commits

Author SHA1 Message Date
jasquat
65c45d21ea
updated some of the permission and config files to add groups in token and remove email addresses w/ burnettk (#2014)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-30 16:10:53 -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
Kevin Burnett
56efd4c8c4
more event props from spiff (#2013)
* more event props from spiff

* lint

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-30 09:13:31 -07:00
dependabot[bot]
9277218ec0
Bump bandit from 1.7.8 to 1.7.9 in /spiffworkflow-backend (#2011)
Bumps [bandit](https://github.com/PyCQA/bandit) from 1.7.8 to 1.7.9.
- [Release notes](https://github.com/PyCQA/bandit/releases)
- [Commits](https://github.com/PyCQA/bandit/compare/1.7.8...1.7.9)

---
updated-dependencies:
- dependency-name: bandit
  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-07-30 15:16:09 +00:00
dependabot[bot]
5255ffd1ce
Bump pre-commit from 3.7.1 to 3.8.0 in /spiffworkflow-backend (#2004)
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v3.7.1...v3.8.0)

---
updated-dependencies:
- dependency-name: pre-commit
  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-07-29 15:09:14 +00:00
jasquat
d2c5c27bdc
Keycloak realm with groups (#2002)
* added a group and mapper to keycloak w/ burnettk

* accept an internal uri to keycloak w/ burnettk

* pyl w/ burnettk

* the only time we ever use internal arg to open_id_endpoint_for_name we want it True

* protect users of openid urls from internal urls

* allow port 8000/8001 for docker and avoid public urls when using requests again

* allow 8001 frontend in docker compose post logout redirect url

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-29 10:39:50 -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
dependabot[bot]
ccb56c5b8a
Bump types-requests in /spiffworkflow-backend (#2000)
Bumps [types-requests](https://github.com/python/typeshed) from 2.32.0.20240622 to 2.32.0.20240712.
- [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-07-26 15:00:34 +00:00
dependabot[bot]
30b55a2e63
Bump setuptools from 70.2.0 to 71.1.0 in /spiffworkflow-backend (#1992)
Bumps [setuptools](https://github.com/pypa/setuptools) from 70.2.0 to 71.1.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v70.2.0...v71.1.0)

---
updated-dependencies:
- dependency-name: setuptools
  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>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-25 12:05:30 -07:00
dependabot[bot]
3169ad4b03
Bump ruff from 0.4.7 to 0.5.4 in /spiffworkflow-backend (#1986)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.7 to 0.5.4.
- [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.7...0.5.4)

---
updated-dependencies:
- dependency-name: ruff
  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-07-24 14:38:31 +00:00
dependabot[bot]
bad764be24
Bump cryptography from 42.0.8 to 43.0.0 in /spiffworkflow-backend (#1982)
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.8 to 43.0.0.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.8...43.0.0)

---
updated-dependencies:
- dependency-name: cryptography
  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-07-23 14:50:58 +00:00
jasquat
ecfca2144c
reassign human tasks in pi migration w/ burnettk (#1971)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-22 16:29:09 -04:00
jasquat
a4e0386ab7
set the subprocess task state back to STARTED in pi migrations w/ burnettk (#1970)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-22 13:14:12 -04:00
dependabot[bot]
21a959053a
Bump xdoctest from 1.1.3 to 1.1.5 in /spiffworkflow-backend (#1966)
Bumps [xdoctest](https://github.com/Erotemic/xdoctest) from 1.1.3 to 1.1.5.
- [Release notes](https://github.com/Erotemic/xdoctest/releases)
- [Changelog](https://github.com/Erotemic/xdoctest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Erotemic/xdoctest/compare/v1.1.3...v1.1.5)

---
updated-dependencies:
- dependency-name: xdoctest
  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-07-22 14:33:38 +00:00
burnettk
ac3c0e7ca3
bump authlib 2024-07-19 15:46:57 -04:00
Kevin Burnett
a16dcd1541
bump spiff for maximum recursion depth exceeded error (#1958)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-19 09:35:15 -07: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
dependabot[bot]
038fbeedbb
Bump pre-commit from 2.21.0 to 3.7.1 in /spiffworkflow-backend (#1957)
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.21.0 to 3.7.1.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.21.0...v3.7.1)

---
updated-dependencies:
- dependency-name: pre-commit
  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-07-19 15:24:06 +00: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
dependabot[bot]
4eee6454c1
Bump coverage from 7.5.4 to 7.6.0 in /spiffworkflow-backend (#1948)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.5.4 to 7.6.0.
- [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.5.4...7.6.0)

---
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-07-18 12:05:06 -07: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
5277360562
updated human task to task fk for mysql 8.4 support w/ burnettk (#1950)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-18 13:19:59 -04:00
jasquat
775a6a485c
support getting host and user info from uri in recreate_db script w/ burnettk 2024-07-18 11:37:30 -04:00
jasquat
41dd5ddb2b
updated spiffworkflow to fix issues 1919 and 1920 w/ burnettk (#1942)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-17 15:27:58 -04:00
jasquat
c11e9ba1b4
progress-page-display-error (#1859)
* display the given when a task fails while on the progress page

* add task info to the error details on progress page and added foreign key from event table to task table w/ burnettk

* do not attempt to add error details if one cannot be found w/ burnettk

* delete pi events when tasks are deleted w/ burnettk

* fixed migration file w/ burnettk

* removed db migration changes w/ burnettk

* pyl w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-17 08:53:38 -07:00
dependabot[bot]
e7bc446fa8
Bump flask-session from 0.5.0 to 0.8.0 in /spiffworkflow-backend (#1939)
Bumps [flask-session](https://github.com/pallets-eco/flask-session) from 0.5.0 to 0.8.0.
- [Release notes](https://github.com/pallets-eco/flask-session/releases)
- [Changelog](https://github.com/pallets-eco/flask-session/blob/development/CHANGES.rst)
- [Commits](https://github.com/pallets-eco/flask-session/compare/0.5.0...0.8.0)

---
updated-dependencies:
- dependency-name: flask-session
  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-07-17 15:00:55 +00:00
burnettk
db8433d7d8
actually add libpq5, not just a comment 2024-07-16 21:12:46 -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
461b37d3d9
hide the revert button on the migration page on the web ui if it cannot be reverted to that revision w/ burnettk (#1935)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-07-16 14:26:58 -04:00
jasquat
dfce83c684
ignore cannot be run errors in manual complete task 2024-07-16 13:33:53 -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
dependabot[bot]
8ebd96b310
Bump prometheus-flask-exporter in /spiffworkflow-backend (#1931)
Bumps [prometheus-flask-exporter](https://github.com/rycus86/prometheus_flask_exporter) from 0.23.0 to 0.23.1.
- [Commits](https://github.com/rycus86/prometheus_flask_exporter/compare/0.23.0...0.23.1)

---
updated-dependencies:
- dependency-name: prometheus-flask-exporter
  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-07-16 15:03:22 +00:00
jasquat
9224fbbcfa
updated the error text for migration issues 2024-07-15 11:47:15 -04:00
dependabot[bot]
00ba3b16c6
Bump sentry-sdk from 2.5.1 to 2.10.0 in /spiffworkflow-backend (#1925)
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.5.1 to 2.10.0.
- [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/2.5.1...2.10.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  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-07-15 15:08:27 +00:00
dependabot[bot]
0df70abf7c
Bump pytest-xdist from 3.3.1 to 3.6.1 in /spiffworkflow-backend (#1914)
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 3.3.1 to 3.6.1.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases)
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.3.1...v3.6.1)

---
updated-dependencies:
- dependency-name: pytest-xdist
  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-07-14 13:31:59 -07:00
Kevin Burnett
42a31108fe
add libpq5 in order to be able to use postgres at runtime (#1906)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-14 13:31:39 -07:00
Kevin Burnett
cc77d83b3a
update spiff to handle certain out of order states in spec migration (#1918)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-14 13:31:24 -07:00
Kevin Burnett
d6184416cf
default git user email if we have a username and no email (#1917)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-12 12:27:24 -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
burnettk
195aedcf3c
config is defaulted to true in default.py 2024-07-11 12:58:52 -04:00
Stephen Zhang
8f86ff5f84
Support config SQLAlchemy pool_pre_ping option from env (#1883) (#1903)
Co-authored-by: Zhang Cheng <chengzhang@natureself.cn>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-07-11 09:51:49 -07:00
dependabot[bot]
0761505096
Bump types-pytz in /spiffworkflow-backend (#1905)
Bumps [types-pytz](https://github.com/python/typeshed) from 2024.1.0.20240203 to 2024.1.0.20240417.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-pytz
  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-07-11 15:17:28 +00:00
Kevin Burnett
6d16438816
Support jwks rotation (#1900)
* support jwks rotation

* force refresh if not in cache

* cleanup

* dedup

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

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

* more types

* lint

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-07-10 13:00:18 -07:00
pixeebot[bot]
8b26848ec9
Use Safe Parsers in lxml Parsing Functions (#1896)
* Use Safe Parsers in `lxml` Parsing Functions

* fix

---------

Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-10 09:37:44 -07:00
dependabot[bot]
f80373c822
Bump lxml from 4.9.4 to 5.2.2 in /spiffworkflow-backend (#1899)
Bumps [lxml](https://github.com/lxml/lxml) from 4.9.4 to 5.2.2.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.4...lxml-5.2.2)

---
updated-dependencies:
- dependency-name: lxml
  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-07-10 15:13:47 +00: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
burnettk
950e288223
use correctly named script 2024-07-08 22:52:59 -04:00
Kevin Burnett
e962a0380b
avoid sending MethodNotAllowed to sentry (#1888)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-07-08 08:49:17 -07:00