Commit Graph

2174 Commits

Author SHA1 Message Date
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
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
Kevin Burnett c091ae9f9e
bump spiff for PR 402, ensure parser knows about all namespaces (#1376)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-10 10:42:36 -07:00
Kevin Burnett f2c982a96c
Look for bad get_current_user scripts (#1370)
* initial script to find get_current_user calls

* handle pre and post scripts as well

* refactor

* omit absolute root dir path when printing

* avoid printing NS

* consolidate lxml parsing in one place

---------

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-10 09:44:13 -07:00
jbirddog 9043a08a9e
Drop element units as a dependecy (#1366) 2024-04-10 11:22:52 -04:00
jasquat 293aa867a1
Auth for secrets (#1369)
* added new api to show secrets so we can use that in permissions

* updated frontend to use new secret show value api

* cleaned up secret_show method

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-09 13:44:47 -04:00
Kevin Burnett cce555b2ca
ignore venv, and ensure always sort group members to fix flaky test in postgres (#1357)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-08 11:26:07 -07:00
Kevin Burnett 2b6640f24c
Prevent duplicated path prefix elements in generated URLs take two (#1350)
* Prevent duplicated path prefix elements in generated URLs

* add more debug info

* pure refactor

* let flask determine how to access site

* build this branch

* build image

* use more url_for, which includes a slash, and things are working locally

* fix hopefully the last missing url_for

* add some code that works for any openid provider

* one more url_for and remove more backend url config references

---------

Co-authored-by: Bret Mogilefsky <bmogilefsky@gmail.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2024-04-08 08:50:55 -07:00
jasquat f6943cf059
load all task data when attempting to get the next task instruction w/ burnettk (#1355)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-08 07:40:52 -07:00
jasquat 01c749aa0b
Allow setting path prefix (#1344)
* allow setting the path prefix of the server w/ burnettk

* added error in case someone was successfully using SPIFFWORKFLOW_BACKEND_APPLICATION_ROOT w/ burnettk

* Update docs/DevOps_installation_integration/path_based_routing.md

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

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-04-05 15:14:09 -04:00
dependabot[bot] 4ec824523d
Bump mypy from 1.8.0 to 1.9.0 in /spiffworkflow-backend (#1339)
Bumps [mypy](https://github.com/python/mypy) from 1.8.0 to 1.9.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.8.0...1.9.0)

---
updated-dependencies:
- dependency-name: mypy
  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-04-05 14:32:40 +00:00
jasquat 7ae81f47cf
Celery start timer fix (#1337)
* check if pi is enqueued to run in the future before running it in celery w/ burnettk

* only mark future tasks as complete if the corresponding task is complete w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-04 16:24:58 -04:00
dependabot[bot] 6789992a76
Bump typeguard from 4.1.5 to 4.2.1 in /spiffworkflow-backend (#1336)
Bumps [typeguard](https://github.com/agronholm/typeguard) from 4.1.5 to 4.2.1.
- [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.1.5...4.2.1)

---
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-04-04 15:21:05 +00:00
jasquat 927f150d4f
use backend url in local openid login page w/ burnettk 2024-04-03 16:52:25 -04:00
jasquat 12e7cecd97
local-openid-path-based-fix (#1332)
* use the backend url config for the well-known endpoint since request.host_url will not know about the path w/ burnettk

* attempting to fix run precommit in ci w/ burnettk

* fix constraints location w/ burnettk

* fix correct stanza w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-03 16:16:22 -04:00
dependabot[bot] f27455eeda
Bump prometheus-flask-exporter in /spiffworkflow-backend (#1324)
Bumps [prometheus-flask-exporter](https://github.com/rycus86/prometheus_flask_exporter) from 0.22.4 to 0.23.0.
- [Commits](https://github.com/rycus86/prometheus_flask_exporter/compare/0.22.4...0.23.0)

---
updated-dependencies:
- dependency-name: prometheus-flask-exporter
  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>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
2024-04-03 11:14:42 -07:00
jasquat b35ab336f5
Omit completed subprocesses (#1327)
* updates to avoid loading completed subprocesses when loading a processor w/ burnettk

* bpmn unit test generator in controller test is passing w/ burnettk

* most tests are passing again w/ burnettk

* tests are all passing now w/ burnettk

* added assertion to reset pi test to ensure task data does come back w/ burnettk

* removed debug benchmark stuff w/ burnettk

* pyl w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2024-04-03 12:17:14 -04:00