spiff-arena/pyproject.toml

162 lines
5.0 KiB
TOML
Raw Normal View History

[tool.poetry]
name = "spiffworkflow-backend"
version = "0.0.0"
description = "Spiffworkflow Backend"
authors = ["Jason Lantz <sartography@users.noreply.github.com>"]
license = "MIT"
readme = "README.rst"
homepage = "https://github.com/sartography/spiffworkflow-backend"
repository = "https://github.com/sartography/spiffworkflow-backend"
documentation = "https://spiffworkflow-backend.readthedocs.io"
classifiers = [
"Development Status :: 1 - Planning",
]
[tool.poetry.urls]
Changelog = "https://github.com/sartography/spiffworkflow-backend/releases"
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
click = "^8.0.1"
flask = "2.2.2"
flask-admin = "*"
flask-bcrypt = "*"
flask-cors = "*"
flask-mail = "*"
flask-marshmallow = "*"
flask-migrate = "*"
flask-restful = "*"
werkzeug = "*"
SpiffWorkflow = {git = "https://github.com/sartography/SpiffWorkflow", rev = "main"}
#SpiffWorkflow = {develop = true, path = "../SpiffWorkflow" }
sentry-sdk = "^1.10"
sphinx-autoapi = "^2.0"
flask-bpmn = {git = "https://github.com/sartography/flask-bpmn", rev = "main"}
# flask-bpmn = {develop = true, path = "../flask-bpmn"}
Squashed 'spiffworkflow-backend/' changes from c1ecc9035..ecbe97049 ecbe97049 comment out test not working in CI 942c18fa3 indicate main explicitly for ci 3cd57a1c8 pyl w/ burnettk 5b2917a59 update staging configs to allow env var overrides w/ burnettk 7645a5f8d need to set upstream when git pushing w/ burnettk 0413f3cdf added secret verification to webhook endpoint w/ burnettk e7576d7ee fixed broken test w/ burnettk bf507f8fc fixed mypy issue w/ burnettk 7c6e5c306 Merge branch 'main' of github.com:sartography/spiff-arena 87c986df0 cleaned up the git service and expanded the api git hook w/ burnettk c7322f3c8 Sort primary file to top of files list (#71) 089d7d5e2 note aa6fe8286 add skeleton of endpoint to receive github webhooks 7b9e99ad9 some reorder w/ burnettk cullerton 2081532f4 mypy w/ burnettk cullerton ade7a41e7 added git creds for pushing on publish w/ burnettk cullerton 832d7c5c2 merged in main and resolved conflicts w/ burnettk cullerton 236e0e4ae favor os.path.join over hardcoding slash w/ burnettk 4ce7d6732 pyl passes b525e3523 added new notification component that allows links based on carbons w/ burnettk cullerton 1e9b2e9ab Return URL where they can view changes and open PR c8e8dae95 Clone into unique directory so we don't step on a previous publish that hasn't finished. c5e7e9153 make process metadata saving more resilient dbaa2c37c added frontend url as post redirect url in keycloak w/ burnettk 348595c19 syntax fix w/ burnettk bbcfd5213 remove staging py config file in favor of terraform configs w/ burnettk b150a8a69 moved some configs from deploy scripts to terraform env config w/ burnettk acf641962 rename terraform configs from rb to py w/ burnettk 862937525 Add comment about the new environment variable 655e01a48 Merge branch 'main' into feature/create_containers f580cadb2 Merge branch 'main' into feature/git-integration e241ed5cd updated terraform permissions to match development better w/ burnettk d102a4c84 Merging this unfinished test so I don't lose it. It doesn't test anything yet. Need to deal w/ a bunch of mock stuff b5aecb072 Merge pull request #69 from sartography/feature/api_permission_cleanup a0f351d16 Merge pull request #65 from sartography/new_report 88ad3b99a typing da082e369 Merge branch 'main' into feature/git-integration a1fe0193d First pass at git integration 1e029f427 break process instance log list page into two tabs, simple and detailed 11b994a81 Merge remote-tracking branch 'origin/main' into feature/api_permission_cleanup b1199530d update cors handling to make it more efficient ed6a4d8c9 more api cleanup w/ burnettk b19825e17 cleaned up more api routes for permissions w/ burnettk 4b5f5d369 updated tasks endpoint to task-data for easier permission setting w/ burnettk 460cfb4e4 pyl w/ burnettk 85509c3d4 fixing an untyped method. a7eeaa6d9 running py_pl -- mainly reordering imports. c9e3e8d31 Merge remote-tracking branch 'origin/main' into feature/create_containers 786785693 Setting things up so it's easy to switch databases using a local configuration file (still works with environment variables) Swtiched from a "joinedload" to a "selectinload" which removes a problem with groupby columns in Postgres and sqlite. (https://docs.sqlalchemy.org/en/14/orm/loading_relationships.html#selectin-eager-loading) f3760380e added support to order reports by given column and metadata headers w/ burnettk 0425293fd Fixes based off KB's super kind review. ------- * Remove unnecessary packages from dockerfile for the demo-connect proxy. * Rename an environment variable that mentioned Status.im in what is now a generic connector. * Fixed a spelling mistake. bee4ea107 bump nox stuff and spiff d7ff963da test for automatic saving of process instance metadata on instance save fe7c4c923 remove dup test process model eb2f64518 add order_by to make this query deterministic 9b2a40c87 lint ceec518c9 add extraction, needs test 9af4cf3f3 fix tests 452c64cbf Merge remote-tracking branch 'origin/main' into new_report 809d8bfbf using an array for metadata extraction paths now instead of dictionaries w/ burnettk 49b02a9c2 added some support to add process model metadata. need to fix frontend w/ burnettk d2d0cb0b1 getting the collect hit_policy to work correctly. a3f4c2f48 filtering by metadata works w/ burnettk f87d266a4 favor report id over identifier but support both and ui updates to allow setting a condition value on a metadata field, changing the display name, and fixes for saving and updating a report 52b288bd4 I can't say I love flake8. Removing dependency on rust (monkeytype) 3534b1896 fixing some typing issues, white space, etal... 389069fde added ability to update the display name for perspective columns w/ burnettk d9b36f5e1 fixing some typing issues. 51ecd25fb Reorder config imports so that instance config is dead last - and can override everything else. Updated docker-compose for running a demo. run_pyl fixes d7308ef67 Adding a demo permissions file. 8ade069dd A little cleanup of the ui Don't check authorization on static assets Do not require unique username on user table (uniqueness check is on the service and service id composite.) 1ebe6e108 some updates for process instance reports and metadata w/ burnettk 321fc0e75 Use the "well-known" configuration dictionary from openid to get the url endpoints, rather than trying to configure or guess the correct endpoint urls. 77c79e58b added correlations to message list table w/ burnettk 4df885fd3 Not all open id systems have realms like KeyCloak does -- so removing this in favor of setting just one value - which is the base url of the openid system -- which will work across all openid systems. d4ad18ab9 Adding a blueprint for openid - a very lightweight embedded authentication system to make it eaiser to try out SpiffWorkflow when you don't have openID set up with Google etal. Removing all calls to open id's user_info endpoint - as these are unncessiary. Adding a users section to the permission files -- so we can handle all user/group/permissions in one file when needed. There was a very confusing is_admin function on the user model that needed killin. 9669f2898 removed file named ':' 341fb8cf5 added api to get list of process report columns a6002ebac finished base for metadata reporting w/ burnettk 8e9828661 some cleanup for metadata w/ burnettk 91ea7f4b4 metadat reports work w/ burnettk 2571eb656 WIP more metadata reporting w/ burnettk a2dbee712 WIP more metadata reporting w/ burnettk a0081bdf7 some basics to add metadata to reports w/ burnettk cullerton fcc5bce3e fixed issue ensuring active tasks are up to date w/ burnettk cullerton 3ef318e61 added script to save process instance metadata and fixed permissions issue w/ burnettk cullerton 46038eae3 only delete active tasks if needed w/ burnettk cullerton 3b6255147 Merge pull request #64 from sartography/group_query 3abdf8872 get rid of Project Lead group ded78d9fe Getting ./bin/pyl to pass c51e56e9b Query fix with the gang 38c37b927 everybody gets access to read processes e2a3d67eb put sasha and manuchehr in demo group 61a2d858e upgrade keycloak 47b551b8a make sasha, harmeet, manuchehr, and admin have desired permissions for demo 3ecfe6ae4 add demo group access to the customer-contracts to give us 5 tiles for the dmeo. 327981e63 adding the username to the report tables c90a0a330 Performance improvement in listing all process models. d32575033 Don't create a processor for every thing all the time. 2f639352a Getting ./bin/pyl to pass c8f561159 Merge branch 'main' into task_json fe5f9995b Just save task_json 8f2784828 no global read since that gives configuration as well e351f033e do not allow starting vendor invoice approval process for demo users 2e97efdbb Change permissions per request -- want everyone to have access to 4 process models. ff63418ca Change permissions per request -- want everyone to have access to 4 process models. 6b4bcfd34 Merge branch 'main' of github.com:sartography/spiff-arena into main bc6d80513 Change permissions changed from vendor to core-contributor for everyone. dfed48057 upgrade keycloak 0f0f56e45 display name instead of id, margin under table sections, Download xml to Download 9af377307 lint fe5d2fdec exclude instances you started in with_tasks_completed_by_me bb76eeee5 lint e30f12fab in completed tab, show display name, and filter by all stopped statuses rather than just complete 57a720c97 tests passing dc0665c26 gotta fix usage of is_model 63b654c22 working on tests aa4277d98 oh my god why were these ever instance methods 875bd1576 remove column 6081f6637 renames aa2333f27 start adding display name and removing garbage a9d5e121b add fin1, lead1, and Tasks actioned by me to Tasks completed by me e32c3830b Fix the postgres job (#61) adcfc53f4 Fix for updating xero token in the background (#60) bd4f5d247 updated breadcrumb to use display name w/ burnettk 6b94bb260 update permissions per feedback in demo 71c1f7974 rename process_groups_list to process_group_list and fix lint d4a1d0552 add perm to process instance report list 4f78b1958 some more perm updates for core user w/ burnettk 8fb5fd3c3 Merge branch 'main' of github.com:sartography/spiff-arena b43a06f51 give core user access to instance tasks w/ burnettk 06ba17be1 Start of system report filters (#57) 213221214 Update oauth redirect url (#58) 75d3c0cea filter process models based on user permissions on the backend if specified w/ burnettk acc88b9a9 created new users for keycloak and fixed some permissions for core user w/ burnettk cullerton 6eb24f10c Allow switching between user defined reports (#56) d7cb24a56 fixed broken test 8f9d918ef added recursive option to process model list to recurse or not and fix some ui components 2b47eb7f5 upgrade apscheduler and fix mispelling 2f312e2ab pyl is passing 4fedc046d Merge branch 'main' of https://github.com/sartography/spiff-arena e6230cb79 pyl is passing w/ burnettk e5f7f5096 added a script to add a user to a group w/ burnettk 33897da2c mypy 7a9954d74 sort process groups by display name w/ burnettk cullerton 7e9331dd3 Merge branch 'main' into move-group-or-model d87f47aaa allow getting all process models, process instances should not save when they are initialized, and fixed some cypress tests w/ burnettk 8ffd6203c use correct separator. de7ebb6f5 Merge branch 'main' of github.com:sartography/spiff-arena into main bf6645960 Remove MoneyType from dependencies to avoid a new dependency on a rust complier when upgrading to pytno 11. 9455366f5 lint 7866730f2 see if this solves the windows build problem 98e07cc85 add id_for_file_path helper method for process groups fc476e3cc run_pyl 72da67f00 eliminate security issue by removing py 818bce07e update mysql-connector-python 37444f8bf asst syntax cleanup 7bde5d8cc mypy ea82bf583 removed print statement and unused line of code 9717fb112 test for move model d07114593 move model 38dc4570d process group move api endpoint git-subtree-dir: spiffworkflow-backend git-subtree-split: ecbe97049cbf46d1d7d240cb80051290de56fa7d
2022-12-10 23:39:01 -05:00
mysql-connector-python = "*"
pytest-flask = "^1.2.0"
pytest-flask-sqlalchemy = "^1.1.0"
psycopg2 = "^2.9.3"
Squashed 'spiffworkflow-backend/' changes from 03bf7a61..10c443a2 10c443a2 Merge pull request #130 from sartography/feature/data 71c803aa allow passing in the log level into the app w/ burnettk daeb82d9 Merge pull request #126 from sartography/dependabot/pip/typing-extensions-4.4.0 14c8f52c Merge pull request #123 from sartography/dependabot/pip/dot-github/workflows/poetry-1.2.2 92d204e6 Merge remote-tracking branch 'origin/main' into feature/data 1cb77901 run the save all bpmn script on server boot w/ burnettk 16a6f476 Bump typing-extensions from 4.3.0 to 4.4.0 d8ac61fc Bump poetry from 1.2.1 to 1.2.2 in /.github/workflows 3be27786 Merge pull request #131 from sartography/feature/permissions2 1fd8fc78 Merge remote-tracking branch 'origin/main' into feature/permissions2 d29621ae data setup on app boot 0b21a5d4 refactor bin/save_all_bpmn.py into service code 02fb9d61 lint c95db461 refactor scripts 98628fc2 This caused a problem with scopes when token timed out. d8b2323b merged in main and resolved conflicts d01b4fc7 updated sentry-sdk to resolve deprecation warnings 5851ddf5 update for mypy in python 3.9 508f9900 merged in main and resolved conflicts 68d69978 precommit w/ burnettk 85a4ee16 removed debug print statements w/ burnettk 93eb91f4 added keycloak configs and user perms for staging w/ burnettk e4ded8fc added method to import permissions from yml file w/ burnettk 22ba89ae use percents instead of asterisks to better support db syntax w/ burnettk 0c116ae8 postgres does not use backticks w/ burnettk 621ad3ef attempting to see if sql like statement works in other dbs as well w/ burnettk git-subtree-dir: spiffworkflow-backend git-subtree-split: 10c443a2d82752e8ed9d1679afe6409d81029006
2022-10-12 15:28:52 -04:00
typing-extensions = "^4.4.0"
connexion = {extras = [ "swagger-ui",], version = "^2"}
lxml = "^4.9.1"
marshmallow-enum = "^1.5.1"
marshmallow-sqlalchemy = "^0.28.0"
PyJWT = "^2.6.0"
gunicorn = "^20.1.0"
python-keycloak = "^2.5.0"
Squashed 'spiffworkflow-backend/' changes from c1ecc9035..ecbe97049 ecbe97049 comment out test not working in CI 942c18fa3 indicate main explicitly for ci 3cd57a1c8 pyl w/ burnettk 5b2917a59 update staging configs to allow env var overrides w/ burnettk 7645a5f8d need to set upstream when git pushing w/ burnettk 0413f3cdf added secret verification to webhook endpoint w/ burnettk e7576d7ee fixed broken test w/ burnettk bf507f8fc fixed mypy issue w/ burnettk 7c6e5c306 Merge branch 'main' of github.com:sartography/spiff-arena 87c986df0 cleaned up the git service and expanded the api git hook w/ burnettk c7322f3c8 Sort primary file to top of files list (#71) 089d7d5e2 note aa6fe8286 add skeleton of endpoint to receive github webhooks 7b9e99ad9 some reorder w/ burnettk cullerton 2081532f4 mypy w/ burnettk cullerton ade7a41e7 added git creds for pushing on publish w/ burnettk cullerton 832d7c5c2 merged in main and resolved conflicts w/ burnettk cullerton 236e0e4ae favor os.path.join over hardcoding slash w/ burnettk 4ce7d6732 pyl passes b525e3523 added new notification component that allows links based on carbons w/ burnettk cullerton 1e9b2e9ab Return URL where they can view changes and open PR c8e8dae95 Clone into unique directory so we don't step on a previous publish that hasn't finished. c5e7e9153 make process metadata saving more resilient dbaa2c37c added frontend url as post redirect url in keycloak w/ burnettk 348595c19 syntax fix w/ burnettk bbcfd5213 remove staging py config file in favor of terraform configs w/ burnettk b150a8a69 moved some configs from deploy scripts to terraform env config w/ burnettk acf641962 rename terraform configs from rb to py w/ burnettk 862937525 Add comment about the new environment variable 655e01a48 Merge branch 'main' into feature/create_containers f580cadb2 Merge branch 'main' into feature/git-integration e241ed5cd updated terraform permissions to match development better w/ burnettk d102a4c84 Merging this unfinished test so I don't lose it. It doesn't test anything yet. Need to deal w/ a bunch of mock stuff b5aecb072 Merge pull request #69 from sartography/feature/api_permission_cleanup a0f351d16 Merge pull request #65 from sartography/new_report 88ad3b99a typing da082e369 Merge branch 'main' into feature/git-integration a1fe0193d First pass at git integration 1e029f427 break process instance log list page into two tabs, simple and detailed 11b994a81 Merge remote-tracking branch 'origin/main' into feature/api_permission_cleanup b1199530d update cors handling to make it more efficient ed6a4d8c9 more api cleanup w/ burnettk b19825e17 cleaned up more api routes for permissions w/ burnettk 4b5f5d369 updated tasks endpoint to task-data for easier permission setting w/ burnettk 460cfb4e4 pyl w/ burnettk 85509c3d4 fixing an untyped method. a7eeaa6d9 running py_pl -- mainly reordering imports. c9e3e8d31 Merge remote-tracking branch 'origin/main' into feature/create_containers 786785693 Setting things up so it's easy to switch databases using a local configuration file (still works with environment variables) Swtiched from a "joinedload" to a "selectinload" which removes a problem with groupby columns in Postgres and sqlite. (https://docs.sqlalchemy.org/en/14/orm/loading_relationships.html#selectin-eager-loading) f3760380e added support to order reports by given column and metadata headers w/ burnettk 0425293fd Fixes based off KB's super kind review. ------- * Remove unnecessary packages from dockerfile for the demo-connect proxy. * Rename an environment variable that mentioned Status.im in what is now a generic connector. * Fixed a spelling mistake. bee4ea107 bump nox stuff and spiff d7ff963da test for automatic saving of process instance metadata on instance save fe7c4c923 remove dup test process model eb2f64518 add order_by to make this query deterministic 9b2a40c87 lint ceec518c9 add extraction, needs test 9af4cf3f3 fix tests 452c64cbf Merge remote-tracking branch 'origin/main' into new_report 809d8bfbf using an array for metadata extraction paths now instead of dictionaries w/ burnettk 49b02a9c2 added some support to add process model metadata. need to fix frontend w/ burnettk d2d0cb0b1 getting the collect hit_policy to work correctly. a3f4c2f48 filtering by metadata works w/ burnettk f87d266a4 favor report id over identifier but support both and ui updates to allow setting a condition value on a metadata field, changing the display name, and fixes for saving and updating a report 52b288bd4 I can't say I love flake8. Removing dependency on rust (monkeytype) 3534b1896 fixing some typing issues, white space, etal... 389069fde added ability to update the display name for perspective columns w/ burnettk d9b36f5e1 fixing some typing issues. 51ecd25fb Reorder config imports so that instance config is dead last - and can override everything else. Updated docker-compose for running a demo. run_pyl fixes d7308ef67 Adding a demo permissions file. 8ade069dd A little cleanup of the ui Don't check authorization on static assets Do not require unique username on user table (uniqueness check is on the service and service id composite.) 1ebe6e108 some updates for process instance reports and metadata w/ burnettk 321fc0e75 Use the "well-known" configuration dictionary from openid to get the url endpoints, rather than trying to configure or guess the correct endpoint urls. 77c79e58b added correlations to message list table w/ burnettk 4df885fd3 Not all open id systems have realms like KeyCloak does -- so removing this in favor of setting just one value - which is the base url of the openid system -- which will work across all openid systems. d4ad18ab9 Adding a blueprint for openid - a very lightweight embedded authentication system to make it eaiser to try out SpiffWorkflow when you don't have openID set up with Google etal. Removing all calls to open id's user_info endpoint - as these are unncessiary. Adding a users section to the permission files -- so we can handle all user/group/permissions in one file when needed. There was a very confusing is_admin function on the user model that needed killin. 9669f2898 removed file named ':' 341fb8cf5 added api to get list of process report columns a6002ebac finished base for metadata reporting w/ burnettk 8e9828661 some cleanup for metadata w/ burnettk 91ea7f4b4 metadat reports work w/ burnettk 2571eb656 WIP more metadata reporting w/ burnettk a2dbee712 WIP more metadata reporting w/ burnettk a0081bdf7 some basics to add metadata to reports w/ burnettk cullerton fcc5bce3e fixed issue ensuring active tasks are up to date w/ burnettk cullerton 3ef318e61 added script to save process instance metadata and fixed permissions issue w/ burnettk cullerton 46038eae3 only delete active tasks if needed w/ burnettk cullerton 3b6255147 Merge pull request #64 from sartography/group_query 3abdf8872 get rid of Project Lead group ded78d9fe Getting ./bin/pyl to pass c51e56e9b Query fix with the gang 38c37b927 everybody gets access to read processes e2a3d67eb put sasha and manuchehr in demo group 61a2d858e upgrade keycloak 47b551b8a make sasha, harmeet, manuchehr, and admin have desired permissions for demo 3ecfe6ae4 add demo group access to the customer-contracts to give us 5 tiles for the dmeo. 327981e63 adding the username to the report tables c90a0a330 Performance improvement in listing all process models. d32575033 Don't create a processor for every thing all the time. 2f639352a Getting ./bin/pyl to pass c8f561159 Merge branch 'main' into task_json fe5f9995b Just save task_json 8f2784828 no global read since that gives configuration as well e351f033e do not allow starting vendor invoice approval process for demo users 2e97efdbb Change permissions per request -- want everyone to have access to 4 process models. ff63418ca Change permissions per request -- want everyone to have access to 4 process models. 6b4bcfd34 Merge branch 'main' of github.com:sartography/spiff-arena into main bc6d80513 Change permissions changed from vendor to core-contributor for everyone. dfed48057 upgrade keycloak 0f0f56e45 display name instead of id, margin under table sections, Download xml to Download 9af377307 lint fe5d2fdec exclude instances you started in with_tasks_completed_by_me bb76eeee5 lint e30f12fab in completed tab, show display name, and filter by all stopped statuses rather than just complete 57a720c97 tests passing dc0665c26 gotta fix usage of is_model 63b654c22 working on tests aa4277d98 oh my god why were these ever instance methods 875bd1576 remove column 6081f6637 renames aa2333f27 start adding display name and removing garbage a9d5e121b add fin1, lead1, and Tasks actioned by me to Tasks completed by me e32c3830b Fix the postgres job (#61) adcfc53f4 Fix for updating xero token in the background (#60) bd4f5d247 updated breadcrumb to use display name w/ burnettk 6b94bb260 update permissions per feedback in demo 71c1f7974 rename process_groups_list to process_group_list and fix lint d4a1d0552 add perm to process instance report list 4f78b1958 some more perm updates for core user w/ burnettk 8fb5fd3c3 Merge branch 'main' of github.com:sartography/spiff-arena b43a06f51 give core user access to instance tasks w/ burnettk 06ba17be1 Start of system report filters (#57) 213221214 Update oauth redirect url (#58) 75d3c0cea filter process models based on user permissions on the backend if specified w/ burnettk acc88b9a9 created new users for keycloak and fixed some permissions for core user w/ burnettk cullerton 6eb24f10c Allow switching between user defined reports (#56) d7cb24a56 fixed broken test 8f9d918ef added recursive option to process model list to recurse or not and fix some ui components 2b47eb7f5 upgrade apscheduler and fix mispelling 2f312e2ab pyl is passing 4fedc046d Merge branch 'main' of https://github.com/sartography/spiff-arena e6230cb79 pyl is passing w/ burnettk e5f7f5096 added a script to add a user to a group w/ burnettk 33897da2c mypy 7a9954d74 sort process groups by display name w/ burnettk cullerton 7e9331dd3 Merge branch 'main' into move-group-or-model d87f47aaa allow getting all process models, process instances should not save when they are initialized, and fixed some cypress tests w/ burnettk 8ffd6203c use correct separator. de7ebb6f5 Merge branch 'main' of github.com:sartography/spiff-arena into main bf6645960 Remove MoneyType from dependencies to avoid a new dependency on a rust complier when upgrading to pytno 11. 9455366f5 lint 7866730f2 see if this solves the windows build problem 98e07cc85 add id_for_file_path helper method for process groups fc476e3cc run_pyl 72da67f00 eliminate security issue by removing py 818bce07e update mysql-connector-python 37444f8bf asst syntax cleanup 7bde5d8cc mypy ea82bf583 removed print statement and unused line of code 9717fb112 test for move model d07114593 move model 38dc4570d process group move api endpoint git-subtree-dir: spiffworkflow-backend git-subtree-split: ecbe97049cbf46d1d7d240cb80051290de56fa7d
2022-12-10 23:39:01 -05:00
APScheduler = "*"
Jinja2 = "^3.1.2"
Squashed 'spiffworkflow-backend/' changes from b8924100d..64ac70428 64ac70428 Move to Python 3.11 (#27) 167851df1 remove leading slash from model identifiers 3503fe400 one instance test left for cypress w/ burnettk 7e09363c4 merged in main and resolved conflicts w/ burnettk cullerton afbc3157d fixed some acceptance tests w/ burnettk cullerton 96e7b63c6 made a process model form w/ burnettk c19aac25f Somethings up w/authentication. Maybe the stored token is bad d17007eaa Merge branch 'main' into feature/nested-groups 729b13881 script to modify all model json files to use full path for model id. Also removes process_group_id 7856b8caa return next task when running an instance w/ burnettk d183b961c First pass at custom report/perspective for Process Instance List (#23) f303c0f77 remove process_group_identifier from process-instances endpoint 207de9ab8 Merge branch 'main' into feature/nested-groups fec8d06b8 started test for test_script_unit_test_run ea31c7a12 fixed process_model_identifier in script_unit_test_create 5d058cbea Fix url in test f8afd7bdd Remove the `_2` methods 7c13ec802 Fix urls for uspend and resume endpoints 19158d7b0 Get testing bpmn files out of the config directory 5f1ee7f16 fixed failing test de3b4b81d Merge branch 'main' into feature/nested-groups 440871d57 First stab at nested folders. Added temp endpoints Changes to tests and test helpers 1bd6a199f Don't need parent. Just use the whole path for the group id a2ab420b2 Committing so Jon can view code git-subtree-dir: spiffworkflow-backend git-subtree-split: 64ac7042887af80869963bc103c01f56404727f2
2022-11-09 15:02:19 -05:00
RestrictedPython = "^6.0"
Flask-SQLAlchemy = "^3"
orjson = "^3.8.0"
Squashed 'spiffworkflow-backend/' changes from 5225a8b4..1e831706 1e831706 Merge pull request #146 from sartography/test_arena_push df95dccf fixed conflicts and updated usage of active task status w/ burnettk 33b81894 Merge pull request #145 from sartography/feature/remove-task-data-from-active-task 7e1ce35c remove task_data column b9cd1c06 Merge pull request #144 from sartography/feature/lib-updates-and-mypy 5e09e28d fix mypy 68485ab4 use fork of sqlalchemy-stubs 872480db Merge remote-tracking branch 'origin/main' into feature/lib-updates-and-mypy 18a892f6 work in progress 84344d53 Pause/resume process instances (#2) 53652cff Merge commit '4a48d9cccd1ca8619b3dbef3c10bcce667c9d9e0' 9ea3def2 lint c05b5181 Merge remote-tracking branch 'origin/main' into feature/lib-updates-and-mypy b2a75f60 Merge commit 'c661100e03eef762cb51b02be1b309ec47be7002' 3ddaa5d0 lib updates and mypy 30d04282 Merge commit '4fdb0f3ec4b3b6a68cc2e56ed84ffb6dc2743068' a961b2a1 Merge commit '81746ee508f6ab0ffe757856d9a3d5d855db2560' 10651984 Merge commit '8f8b4717990eb86c6bfd2f309ef064152c51b452' 59b90fba Merge branch 'main' of github.com:sartography/spiff-arena 577e0fe3 Merge commit 'a166df83031cb88d223e5c75ae8db8c896622821' 11d40241 Merge commit '106e2ca7214aec4dba965ccb3f94b0658acaa2b2' 1fcc935e Merge commit '9781908243408ed221f2b0131a00b8a9612f81f3' e9734bff Merge commit '64e7049c9a0a4360101a155a41ce64ae692acd3c' 28239aa4 Merge commit 'aa22f4b397a899fa06d06c2e9127ca98d9eb909a' 8b184a5c Merge commit '4f0f5b1ece069ec56f8eb4154d61334a321749a1' bd1effc6 Merge commit 'b4975660431c275ce736e0431b98c39548200af1' eafa4f61 Merge commit 'c9bd62250452403550ae1bf1d27547d4796dd316' 50d9a0c3 Merge commit '9be0517531543655a35023af17b76dbb41eab93e' 34e98b77 Merge commit 'a1a01ad25a1ef60b879dede6f037f0fff3381ae4' c8d0cb8a Merge commit 'bee232a55a82054e629f48f0333495b61a7da7d1' 00478271 Merge commit '71e189afbc127b574cca8d02fc31b2e65aff0d52' 657fbad9 Merge commit 'f21d0ef3a98458deb347fb2a51fab0b5b41f7fe2' c91c279e Merge commit '93dbce681ec89bc45479748aaae06ddd92b64da4' b95a1af9 Merge commit '48918b00428e777ea29d351662467c0ac4e34a36' afea9254 pre-commit updates e3bc3b76 Merge main, resolve conflicts 2e317da8 Updaging the jinja processing so it doesn't leave a bunch of blank lines in the markdown that has strong feelings about white space. Updating the front end to render markdown formatted instructions. And adding a little css love to tables that are generated in Markdown. git-subtree-dir: spiffworkflow-backend git-subtree-split: 1e831706a1f7ed841e343537cfe1dc05d5eedaca
2022-10-21 10:36:41 -04:00
# type hinting stuff
# these need to be in the normal (non dev-dependencies) section
# because if not then poetry export won't have them and nox -s mypy --pythons 3.10
# will fail
types-Werkzeug = "^1.0.9"
types-PyYAML = "^6.0.12"
types-Flask = "^1.1.6"
types-requests = "^2.28.6"
types-pytz = "^2022.1.1"
# https://github.com/dropbox/sqlalchemy-stubs/pull/251
# someday get off github
# sqlalchemy-stubs = "^0.4"
# sqlalchemy-stubs = { git = "https://github.com/dropbox/sqlalchemy-stubs.git", rev = "master" }
# sqlalchemy-stubs = {develop = true, path = "/Users/kevin/projects/github/sqlalchemy-stubs"}
# for now use my fork
sqlalchemy-stubs = { git = "https://github.com/burnettk/sqlalchemy-stubs.git", rev = "scoped-session-delete" }
simplejson = "^3.17.6"
pytz = "^2022.6"
dateparser = "^1.1.2"
types-dateparser = "^1.1.4.1"
Squashed 'spiffworkflow-backend/' changes from 5225a8b4..1e831706 1e831706 Merge pull request #146 from sartography/test_arena_push df95dccf fixed conflicts and updated usage of active task status w/ burnettk 33b81894 Merge pull request #145 from sartography/feature/remove-task-data-from-active-task 7e1ce35c remove task_data column b9cd1c06 Merge pull request #144 from sartography/feature/lib-updates-and-mypy 5e09e28d fix mypy 68485ab4 use fork of sqlalchemy-stubs 872480db Merge remote-tracking branch 'origin/main' into feature/lib-updates-and-mypy 18a892f6 work in progress 84344d53 Pause/resume process instances (#2) 53652cff Merge commit '4a48d9cccd1ca8619b3dbef3c10bcce667c9d9e0' 9ea3def2 lint c05b5181 Merge remote-tracking branch 'origin/main' into feature/lib-updates-and-mypy b2a75f60 Merge commit 'c661100e03eef762cb51b02be1b309ec47be7002' 3ddaa5d0 lib updates and mypy 30d04282 Merge commit '4fdb0f3ec4b3b6a68cc2e56ed84ffb6dc2743068' a961b2a1 Merge commit '81746ee508f6ab0ffe757856d9a3d5d855db2560' 10651984 Merge commit '8f8b4717990eb86c6bfd2f309ef064152c51b452' 59b90fba Merge branch 'main' of github.com:sartography/spiff-arena 577e0fe3 Merge commit 'a166df83031cb88d223e5c75ae8db8c896622821' 11d40241 Merge commit '106e2ca7214aec4dba965ccb3f94b0658acaa2b2' 1fcc935e Merge commit '9781908243408ed221f2b0131a00b8a9612f81f3' e9734bff Merge commit '64e7049c9a0a4360101a155a41ce64ae692acd3c' 28239aa4 Merge commit 'aa22f4b397a899fa06d06c2e9127ca98d9eb909a' 8b184a5c Merge commit '4f0f5b1ece069ec56f8eb4154d61334a321749a1' bd1effc6 Merge commit 'b4975660431c275ce736e0431b98c39548200af1' eafa4f61 Merge commit 'c9bd62250452403550ae1bf1d27547d4796dd316' 50d9a0c3 Merge commit '9be0517531543655a35023af17b76dbb41eab93e' 34e98b77 Merge commit 'a1a01ad25a1ef60b879dede6f037f0fff3381ae4' c8d0cb8a Merge commit 'bee232a55a82054e629f48f0333495b61a7da7d1' 00478271 Merge commit '71e189afbc127b574cca8d02fc31b2e65aff0d52' 657fbad9 Merge commit 'f21d0ef3a98458deb347fb2a51fab0b5b41f7fe2' c91c279e Merge commit '93dbce681ec89bc45479748aaae06ddd92b64da4' b95a1af9 Merge commit '48918b00428e777ea29d351662467c0ac4e34a36' afea9254 pre-commit updates e3bc3b76 Merge main, resolve conflicts 2e317da8 Updaging the jinja processing so it doesn't leave a bunch of blank lines in the markdown that has strong feelings about white space. Updating the front end to render markdown formatted instructions. And adding a little css love to tables that are generated in Markdown. git-subtree-dir: spiffworkflow-backend git-subtree-split: 1e831706a1f7ed841e343537cfe1dc05d5eedaca
2022-10-21 10:36:41 -04:00
[tool.poetry.dev-dependencies]
Squashed 'spiffworkflow-backend/' changes from c1ecc9035..ecbe97049 ecbe97049 comment out test not working in CI 942c18fa3 indicate main explicitly for ci 3cd57a1c8 pyl w/ burnettk 5b2917a59 update staging configs to allow env var overrides w/ burnettk 7645a5f8d need to set upstream when git pushing w/ burnettk 0413f3cdf added secret verification to webhook endpoint w/ burnettk e7576d7ee fixed broken test w/ burnettk bf507f8fc fixed mypy issue w/ burnettk 7c6e5c306 Merge branch 'main' of github.com:sartography/spiff-arena 87c986df0 cleaned up the git service and expanded the api git hook w/ burnettk c7322f3c8 Sort primary file to top of files list (#71) 089d7d5e2 note aa6fe8286 add skeleton of endpoint to receive github webhooks 7b9e99ad9 some reorder w/ burnettk cullerton 2081532f4 mypy w/ burnettk cullerton ade7a41e7 added git creds for pushing on publish w/ burnettk cullerton 832d7c5c2 merged in main and resolved conflicts w/ burnettk cullerton 236e0e4ae favor os.path.join over hardcoding slash w/ burnettk 4ce7d6732 pyl passes b525e3523 added new notification component that allows links based on carbons w/ burnettk cullerton 1e9b2e9ab Return URL where they can view changes and open PR c8e8dae95 Clone into unique directory so we don't step on a previous publish that hasn't finished. c5e7e9153 make process metadata saving more resilient dbaa2c37c added frontend url as post redirect url in keycloak w/ burnettk 348595c19 syntax fix w/ burnettk bbcfd5213 remove staging py config file in favor of terraform configs w/ burnettk b150a8a69 moved some configs from deploy scripts to terraform env config w/ burnettk acf641962 rename terraform configs from rb to py w/ burnettk 862937525 Add comment about the new environment variable 655e01a48 Merge branch 'main' into feature/create_containers f580cadb2 Merge branch 'main' into feature/git-integration e241ed5cd updated terraform permissions to match development better w/ burnettk d102a4c84 Merging this unfinished test so I don't lose it. It doesn't test anything yet. Need to deal w/ a bunch of mock stuff b5aecb072 Merge pull request #69 from sartography/feature/api_permission_cleanup a0f351d16 Merge pull request #65 from sartography/new_report 88ad3b99a typing da082e369 Merge branch 'main' into feature/git-integration a1fe0193d First pass at git integration 1e029f427 break process instance log list page into two tabs, simple and detailed 11b994a81 Merge remote-tracking branch 'origin/main' into feature/api_permission_cleanup b1199530d update cors handling to make it more efficient ed6a4d8c9 more api cleanup w/ burnettk b19825e17 cleaned up more api routes for permissions w/ burnettk 4b5f5d369 updated tasks endpoint to task-data for easier permission setting w/ burnettk 460cfb4e4 pyl w/ burnettk 85509c3d4 fixing an untyped method. a7eeaa6d9 running py_pl -- mainly reordering imports. c9e3e8d31 Merge remote-tracking branch 'origin/main' into feature/create_containers 786785693 Setting things up so it's easy to switch databases using a local configuration file (still works with environment variables) Swtiched from a "joinedload" to a "selectinload" which removes a problem with groupby columns in Postgres and sqlite. (https://docs.sqlalchemy.org/en/14/orm/loading_relationships.html#selectin-eager-loading) f3760380e added support to order reports by given column and metadata headers w/ burnettk 0425293fd Fixes based off KB's super kind review. ------- * Remove unnecessary packages from dockerfile for the demo-connect proxy. * Rename an environment variable that mentioned Status.im in what is now a generic connector. * Fixed a spelling mistake. bee4ea107 bump nox stuff and spiff d7ff963da test for automatic saving of process instance metadata on instance save fe7c4c923 remove dup test process model eb2f64518 add order_by to make this query deterministic 9b2a40c87 lint ceec518c9 add extraction, needs test 9af4cf3f3 fix tests 452c64cbf Merge remote-tracking branch 'origin/main' into new_report 809d8bfbf using an array for metadata extraction paths now instead of dictionaries w/ burnettk 49b02a9c2 added some support to add process model metadata. need to fix frontend w/ burnettk d2d0cb0b1 getting the collect hit_policy to work correctly. a3f4c2f48 filtering by metadata works w/ burnettk f87d266a4 favor report id over identifier but support both and ui updates to allow setting a condition value on a metadata field, changing the display name, and fixes for saving and updating a report 52b288bd4 I can't say I love flake8. Removing dependency on rust (monkeytype) 3534b1896 fixing some typing issues, white space, etal... 389069fde added ability to update the display name for perspective columns w/ burnettk d9b36f5e1 fixing some typing issues. 51ecd25fb Reorder config imports so that instance config is dead last - and can override everything else. Updated docker-compose for running a demo. run_pyl fixes d7308ef67 Adding a demo permissions file. 8ade069dd A little cleanup of the ui Don't check authorization on static assets Do not require unique username on user table (uniqueness check is on the service and service id composite.) 1ebe6e108 some updates for process instance reports and metadata w/ burnettk 321fc0e75 Use the "well-known" configuration dictionary from openid to get the url endpoints, rather than trying to configure or guess the correct endpoint urls. 77c79e58b added correlations to message list table w/ burnettk 4df885fd3 Not all open id systems have realms like KeyCloak does -- so removing this in favor of setting just one value - which is the base url of the openid system -- which will work across all openid systems. d4ad18ab9 Adding a blueprint for openid - a very lightweight embedded authentication system to make it eaiser to try out SpiffWorkflow when you don't have openID set up with Google etal. Removing all calls to open id's user_info endpoint - as these are unncessiary. Adding a users section to the permission files -- so we can handle all user/group/permissions in one file when needed. There was a very confusing is_admin function on the user model that needed killin. 9669f2898 removed file named ':' 341fb8cf5 added api to get list of process report columns a6002ebac finished base for metadata reporting w/ burnettk 8e9828661 some cleanup for metadata w/ burnettk 91ea7f4b4 metadat reports work w/ burnettk 2571eb656 WIP more metadata reporting w/ burnettk a2dbee712 WIP more metadata reporting w/ burnettk a0081bdf7 some basics to add metadata to reports w/ burnettk cullerton fcc5bce3e fixed issue ensuring active tasks are up to date w/ burnettk cullerton 3ef318e61 added script to save process instance metadata and fixed permissions issue w/ burnettk cullerton 46038eae3 only delete active tasks if needed w/ burnettk cullerton 3b6255147 Merge pull request #64 from sartography/group_query 3abdf8872 get rid of Project Lead group ded78d9fe Getting ./bin/pyl to pass c51e56e9b Query fix with the gang 38c37b927 everybody gets access to read processes e2a3d67eb put sasha and manuchehr in demo group 61a2d858e upgrade keycloak 47b551b8a make sasha, harmeet, manuchehr, and admin have desired permissions for demo 3ecfe6ae4 add demo group access to the customer-contracts to give us 5 tiles for the dmeo. 327981e63 adding the username to the report tables c90a0a330 Performance improvement in listing all process models. d32575033 Don't create a processor for every thing all the time. 2f639352a Getting ./bin/pyl to pass c8f561159 Merge branch 'main' into task_json fe5f9995b Just save task_json 8f2784828 no global read since that gives configuration as well e351f033e do not allow starting vendor invoice approval process for demo users 2e97efdbb Change permissions per request -- want everyone to have access to 4 process models. ff63418ca Change permissions per request -- want everyone to have access to 4 process models. 6b4bcfd34 Merge branch 'main' of github.com:sartography/spiff-arena into main bc6d80513 Change permissions changed from vendor to core-contributor for everyone. dfed48057 upgrade keycloak 0f0f56e45 display name instead of id, margin under table sections, Download xml to Download 9af377307 lint fe5d2fdec exclude instances you started in with_tasks_completed_by_me bb76eeee5 lint e30f12fab in completed tab, show display name, and filter by all stopped statuses rather than just complete 57a720c97 tests passing dc0665c26 gotta fix usage of is_model 63b654c22 working on tests aa4277d98 oh my god why were these ever instance methods 875bd1576 remove column 6081f6637 renames aa2333f27 start adding display name and removing garbage a9d5e121b add fin1, lead1, and Tasks actioned by me to Tasks completed by me e32c3830b Fix the postgres job (#61) adcfc53f4 Fix for updating xero token in the background (#60) bd4f5d247 updated breadcrumb to use display name w/ burnettk 6b94bb260 update permissions per feedback in demo 71c1f7974 rename process_groups_list to process_group_list and fix lint d4a1d0552 add perm to process instance report list 4f78b1958 some more perm updates for core user w/ burnettk 8fb5fd3c3 Merge branch 'main' of github.com:sartography/spiff-arena b43a06f51 give core user access to instance tasks w/ burnettk 06ba17be1 Start of system report filters (#57) 213221214 Update oauth redirect url (#58) 75d3c0cea filter process models based on user permissions on the backend if specified w/ burnettk acc88b9a9 created new users for keycloak and fixed some permissions for core user w/ burnettk cullerton 6eb24f10c Allow switching between user defined reports (#56) d7cb24a56 fixed broken test 8f9d918ef added recursive option to process model list to recurse or not and fix some ui components 2b47eb7f5 upgrade apscheduler and fix mispelling 2f312e2ab pyl is passing 4fedc046d Merge branch 'main' of https://github.com/sartography/spiff-arena e6230cb79 pyl is passing w/ burnettk e5f7f5096 added a script to add a user to a group w/ burnettk 33897da2c mypy 7a9954d74 sort process groups by display name w/ burnettk cullerton 7e9331dd3 Merge branch 'main' into move-group-or-model d87f47aaa allow getting all process models, process instances should not save when they are initialized, and fixed some cypress tests w/ burnettk 8ffd6203c use correct separator. de7ebb6f5 Merge branch 'main' of github.com:sartography/spiff-arena into main bf6645960 Remove MoneyType from dependencies to avoid a new dependency on a rust complier when upgrading to pytno 11. 9455366f5 lint 7866730f2 see if this solves the windows build problem 98e07cc85 add id_for_file_path helper method for process groups fc476e3cc run_pyl 72da67f00 eliminate security issue by removing py 818bce07e update mysql-connector-python 37444f8bf asst syntax cleanup 7bde5d8cc mypy ea82bf583 removed print statement and unused line of code 9717fb112 test for move model d07114593 move model 38dc4570d process group move api endpoint git-subtree-dir: spiffworkflow-backend git-subtree-split: ecbe97049cbf46d1d7d240cb80051290de56fa7d
2022-12-10 23:39:01 -05:00
pytest = "*"
coverage = {extras = ["toml"], version = "^6.1"}
safety = "^2.3.1"
mypy = ">=0.961"
typeguard = "^2.13.2"
xdoctest = {extras = ["colors"], version = "^1.0.1"}
sphinx = "^5.0.2"
sphinx-autobuild = ">=2021.3.14"
pre-commit = "^2.20.0"
flake8 = "^4.0.1"
black = ">=21.10b0"
flake8-bandit = "^2.1.2"
# 1.7.3 broke us. https://github.com/PyCQA/bandit/issues/841
bandit = "1.7.2"
flake8-bugbear = "^22.10.25"
flake8-docstrings = "^1.6.0"
flake8-rst-docstrings = "^0.2.7"
# flask-sqlalchemy-stubs = "^0.2"
pep8-naming = "^0.13.2"
darglint = "^1.8.1"
reorder-python-imports = "^3.9.0"
pre-commit-hooks = "^4.0.1"
sphinx-click = "^4.3.0"
Pygments = "^2.10.0"
pyupgrade = "^3.1.0"
furo = ">=2021.11.12"
[tool.poetry.scripts]
spiffworkflow-backend = "spiffworkflow_backend.__main__:main"
[tool.pytest.ini_options]
# ignore deprecation warnings from various packages that we don't control
filterwarnings = [
# note the use of single quote below to denote "raw" strings in TOML
# kombu/utils/compat.py:82
'ignore:SelectableGroups dict interface is deprecated. Use select.',
# flask_marshmallow/__init__.py:34
# marshmallow_sqlalchemy/convert.py:17
'ignore:distutils Version classes are deprecated. Use packaging.version instead.',
# connexion/spec.py:50
'ignore:Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release',
# connexion/decorators/validation.py:16
'ignore:Accessing jsonschema.draft4_format_checker is deprecated and will be removed in a future release.',
# connexion/apis/flask_api.py:236
"ignore:'_request_ctx_stack' is deprecated and will be removed in Flask 2.3",
"ignore:Setting 'json_encoder' on the app or a blueprint is deprecated and will be removed in Flask 2.3",
"ignore:'JSONEncoder' is deprecated and will be removed in Flask 2.3",
"ignore:'app.json_encoder' is deprecated and will be removed in Flask 2.3"
]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["spiffworkflow_backend", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 50
[tool.mypy]
strict = true
disallow_any_generics = false
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
plugins = "sqlmypy"
# We get 'error: Module has no attribute "set_context"' for sentry-sdk without this option
implicit_reexport = true
# allow for subdirs to NOT require __init__.py
namespace_packages = true
explicit_package_bases = false
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"