spiff-arena/migrations/versions/4d75421c0af0_.py

334 lines
19 KiB
Python
Raw Normal View History

Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
"""empty message
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
Revision ID: 4d75421c0af0
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
Revises:
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
Create Date: 2022-12-06 17:42:56.417673
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
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
revision = '4d75421c0af0'
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('group',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('name', sa.String(length=255), nullable=True),
sa.Column('identifier', sa.String(length=255), nullable=True),
sa.PrimaryKeyConstraint('id')
)
op.create_table('message_model',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('identifier', sa.String(length=50), nullable=True),
sa.Column('name', sa.String(length=50), nullable=True),
sa.PrimaryKeyConstraint('id')
)
op.create_index(op.f('ix_message_model_identifier'), 'message_model', ['identifier'], unique=True)
op.create_index(op.f('ix_message_model_name'), 'message_model', ['name'], unique=True)
op.create_table('permission_target',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('uri', sa.String(length=255), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('uri')
)
op.create_table('spec_reference_cache',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('identifier', sa.String(length=255), nullable=True),
sa.Column('display_name', sa.String(length=255), nullable=True),
sa.Column('process_model_id', sa.String(length=255), nullable=True),
sa.Column('type', sa.String(length=255), nullable=True),
sa.Column('file_name', sa.String(length=255), nullable=True),
sa.Column('relative_path', sa.String(length=255), nullable=True),
sa.Column('has_lanes', sa.Boolean(), nullable=True),
sa.Column('is_executable', sa.Boolean(), nullable=True),
sa.Column('is_primary', sa.Boolean(), nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('identifier', 'type', name='_identifier_type_unique')
)
op.create_index(op.f('ix_spec_reference_cache_display_name'), 'spec_reference_cache', ['display_name'], unique=False)
op.create_index(op.f('ix_spec_reference_cache_identifier'), 'spec_reference_cache', ['identifier'], unique=False)
op.create_index(op.f('ix_spec_reference_cache_type'), 'spec_reference_cache', ['type'], unique=False)
op.create_table('spiff_logging',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('process_instance_id', sa.Integer(), nullable=False),
sa.Column('bpmn_process_identifier', sa.String(length=255), nullable=False),
sa.Column('bpmn_task_identifier', sa.String(length=255), nullable=False),
sa.Column('bpmn_task_name', sa.String(length=255), nullable=True),
sa.Column('bpmn_task_type', sa.String(length=255), nullable=True),
sa.Column('spiff_task_guid', sa.String(length=50), nullable=False),
sa.Column('timestamp', sa.DECIMAL(precision=17, scale=6), nullable=False),
sa.Column('message', sa.String(length=255), nullable=True),
sa.Column('current_user_id', sa.Integer(), nullable=True),
sa.Column('spiff_step', sa.Integer(), nullable=False),
sa.PrimaryKeyConstraint('id')
)
op.create_table('user',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('username', sa.String(length=255), nullable=False),
sa.Column('uid', sa.String(length=50), nullable=True),
sa.Column('service', sa.String(length=50), nullable=False),
sa.Column('service_id', sa.String(length=255), nullable=False),
sa.Column('name', sa.String(length=255), nullable=True),
sa.Column('email', sa.String(length=255), nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('service', 'service_id', name='service_key'),
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
sa.UniqueConstraint('uid')
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
)
op.create_table('message_correlation_property',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('identifier', sa.String(length=50), nullable=True),
sa.Column('message_model_id', sa.Integer(), nullable=False),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['message_model_id'], ['message_model.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('identifier', 'message_model_id', name='message_correlation_property_unique')
)
op.create_index(op.f('ix_message_correlation_property_identifier'), 'message_correlation_property', ['identifier'], unique=False)
op.create_table('message_triggerable_process_model',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('message_model_id', sa.Integer(), nullable=False),
sa.Column('process_model_identifier', sa.String(length=50), nullable=False),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['message_model_id'], ['message_model.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('message_model_id')
)
op.create_index(op.f('ix_message_triggerable_process_model_process_model_identifier'), 'message_triggerable_process_model', ['process_model_identifier'], unique=False)
op.create_table('principal',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=True),
sa.Column('group_id', sa.Integer(), nullable=True),
sa.CheckConstraint('NOT(user_id IS NULL AND group_id IS NULL)'),
sa.ForeignKeyConstraint(['group_id'], ['group.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('group_id'),
sa.UniqueConstraint('user_id')
)
op.create_table('process_instance',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('process_model_identifier', sa.String(length=255), nullable=False),
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
sa.Column('process_model_display_name', sa.String(length=255), nullable=False),
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
sa.Column('process_initiator_id', sa.Integer(), nullable=False),
sa.Column('bpmn_json', sa.JSON(), nullable=True),
sa.Column('start_in_seconds', sa.Integer(), nullable=True),
sa.Column('end_in_seconds', sa.Integer(), nullable=True),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('status', sa.String(length=50), nullable=True),
sa.Column('bpmn_version_control_type', sa.String(length=50), nullable=True),
sa.Column('bpmn_version_control_identifier', sa.String(length=255), nullable=True),
sa.Column('spiff_step', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['process_initiator_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id')
)
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
op.create_index(op.f('ix_process_instance_process_model_display_name'), 'process_instance', ['process_model_display_name'], unique=False)
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
op.create_index(op.f('ix_process_instance_process_model_identifier'), 'process_instance', ['process_model_identifier'], unique=False)
op.create_table('process_instance_report',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('identifier', sa.String(length=50), nullable=False),
sa.Column('report_metadata', sa.JSON(), nullable=True),
sa.Column('created_by_id', sa.Integer(), nullable=False),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['created_by_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('created_by_id', 'identifier', name='process_instance_report_unique')
)
op.create_index(op.f('ix_process_instance_report_created_by_id'), 'process_instance_report', ['created_by_id'], unique=False)
op.create_index(op.f('ix_process_instance_report_identifier'), 'process_instance_report', ['identifier'], unique=False)
op.create_table('refresh_token',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.Column('token', sa.String(length=1024), nullable=False),
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('user_id')
)
op.create_table('secret',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('key', sa.String(length=50), nullable=False),
sa.Column('value', sa.Text(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('key')
)
op.create_table('user_group_assignment',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.Column('group_id', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['group_id'], ['group.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('user_id', 'group_id', name='user_group_assignment_unique')
)
op.create_table('active_task',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('process_instance_id', sa.Integer(), nullable=False),
sa.Column('actual_owner_id', sa.Integer(), nullable=True),
sa.Column('lane_assignment_id', sa.Integer(), nullable=True),
sa.Column('form_file_name', sa.String(length=50), nullable=True),
sa.Column('ui_form_file_name', sa.String(length=50), nullable=True),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('task_id', sa.String(length=50), nullable=True),
sa.Column('task_name', sa.String(length=50), nullable=True),
sa.Column('task_title', sa.String(length=50), nullable=True),
sa.Column('task_type', sa.String(length=50), nullable=True),
sa.Column('task_status', sa.String(length=50), nullable=True),
sa.Column('process_model_display_name', sa.String(length=255), nullable=True),
sa.ForeignKeyConstraint(['actual_owner_id'], ['user.id'], ),
sa.ForeignKeyConstraint(['lane_assignment_id'], ['group.id'], ),
sa.ForeignKeyConstraint(['process_instance_id'], ['process_instance.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('task_id', 'process_instance_id', name='active_task_unique')
)
op.create_table('message_correlation',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('process_instance_id', sa.Integer(), nullable=False),
sa.Column('message_correlation_property_id', sa.Integer(), nullable=False),
sa.Column('name', sa.String(length=255), nullable=False),
sa.Column('value', sa.String(length=255), nullable=False),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['message_correlation_property_id'], ['message_correlation_property.id'], ),
sa.ForeignKeyConstraint(['process_instance_id'], ['process_instance.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('process_instance_id', 'message_correlation_property_id', 'name', name='message_instance_id_name_unique')
)
op.create_index(op.f('ix_message_correlation_message_correlation_property_id'), 'message_correlation', ['message_correlation_property_id'], unique=False)
op.create_index(op.f('ix_message_correlation_name'), 'message_correlation', ['name'], unique=False)
op.create_index(op.f('ix_message_correlation_process_instance_id'), 'message_correlation', ['process_instance_id'], unique=False)
op.create_index(op.f('ix_message_correlation_value'), 'message_correlation', ['value'], unique=False)
op.create_table('message_instance',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('process_instance_id', sa.Integer(), nullable=False),
sa.Column('message_model_id', sa.Integer(), nullable=False),
sa.Column('message_type', sa.String(length=20), nullable=False),
sa.Column('payload', sa.JSON(), nullable=True),
sa.Column('status', sa.String(length=20), nullable=False),
sa.Column('failure_cause', sa.Text(), nullable=True),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=True),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['message_model_id'], ['message_model.id'], ),
sa.ForeignKeyConstraint(['process_instance_id'], ['process_instance.id'], ),
sa.PrimaryKeyConstraint('id')
)
op.create_table('permission_assignment',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('principal_id', sa.Integer(), nullable=False),
sa.Column('permission_target_id', sa.Integer(), nullable=False),
sa.Column('grant_type', sa.String(length=50), nullable=False),
sa.Column('permission', sa.String(length=50), nullable=False),
sa.ForeignKeyConstraint(['permission_target_id'], ['permission_target.id'], ),
sa.ForeignKeyConstraint(['principal_id'], ['principal.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('principal_id', 'permission_target_id', 'permission', name='permission_assignment_uniq')
)
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
op.create_table('process_instance_metadata',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('process_instance_id', sa.Integer(), nullable=False),
sa.Column('key', sa.String(length=255), nullable=False),
sa.Column('value', sa.String(length=255), nullable=False),
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=False),
sa.Column('created_at_in_seconds', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['process_instance_id'], ['process_instance.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('process_instance_id', 'key', name='process_instance_metadata_unique')
)
op.create_index(op.f('ix_process_instance_metadata_key'), 'process_instance_metadata', ['key'], unique=False)
op.create_table('spiff_step_details',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('process_instance_id', sa.Integer(), nullable=False),
sa.Column('spiff_step', sa.Integer(), nullable=False),
sa.Column('task_json', sa.JSON(), nullable=False),
sa.Column('timestamp', sa.DECIMAL(precision=17, scale=6), nullable=False),
sa.Column('completed_by_user_id', sa.Integer(), nullable=True),
sa.Column('lane_assignment_id', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['lane_assignment_id'], ['group.id'], ),
sa.ForeignKeyConstraint(['process_instance_id'], ['process_instance.id'], ),
sa.PrimaryKeyConstraint('id')
)
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
op.create_table('active_task_user',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('active_task_id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['active_task_id'], ['active_task.id'], ),
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('active_task_id', 'user_id', name='active_task_user_unique')
)
op.create_index(op.f('ix_active_task_user_active_task_id'), 'active_task_user', ['active_task_id'], unique=False)
op.create_index(op.f('ix_active_task_user_user_id'), 'active_task_user', ['user_id'], unique=False)
op.create_table('message_correlation_message_instance',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('message_instance_id', sa.Integer(), nullable=False),
sa.Column('message_correlation_id', sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(['message_correlation_id'], ['message_correlation.id'], ),
sa.ForeignKeyConstraint(['message_instance_id'], ['message_instance.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('message_instance_id', 'message_correlation_id', name='message_correlation_message_instance_unique')
)
op.create_index(op.f('ix_message_correlation_message_instance_message_correlation_id'), 'message_correlation_message_instance', ['message_correlation_id'], unique=False)
op.create_index(op.f('ix_message_correlation_message_instance_message_instance_id'), 'message_correlation_message_instance', ['message_instance_id'], unique=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index(op.f('ix_message_correlation_message_instance_message_instance_id'), table_name='message_correlation_message_instance')
op.drop_index(op.f('ix_message_correlation_message_instance_message_correlation_id'), table_name='message_correlation_message_instance')
op.drop_table('message_correlation_message_instance')
op.drop_index(op.f('ix_active_task_user_user_id'), table_name='active_task_user')
op.drop_index(op.f('ix_active_task_user_active_task_id'), table_name='active_task_user')
op.drop_table('active_task_user')
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
op.drop_table('spiff_step_details')
op.drop_index(op.f('ix_process_instance_metadata_key'), table_name='process_instance_metadata')
op.drop_table('process_instance_metadata')
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
op.drop_table('permission_assignment')
op.drop_table('message_instance')
op.drop_index(op.f('ix_message_correlation_value'), table_name='message_correlation')
op.drop_index(op.f('ix_message_correlation_process_instance_id'), table_name='message_correlation')
op.drop_index(op.f('ix_message_correlation_name'), table_name='message_correlation')
op.drop_index(op.f('ix_message_correlation_message_correlation_property_id'), table_name='message_correlation')
op.drop_table('message_correlation')
op.drop_table('active_task')
op.drop_table('user_group_assignment')
op.drop_table('secret')
op.drop_table('refresh_token')
op.drop_index(op.f('ix_process_instance_report_identifier'), table_name='process_instance_report')
op.drop_index(op.f('ix_process_instance_report_created_by_id'), table_name='process_instance_report')
op.drop_table('process_instance_report')
op.drop_index(op.f('ix_process_instance_process_model_identifier'), table_name='process_instance')
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
op.drop_index(op.f('ix_process_instance_process_model_display_name'), table_name='process_instance')
Squashed 'spiffworkflow-backend/' changes from 55f5c8113..52fad891c 52fad891c update spiff 3e21b7e2e Support reporting on task data (#47) 915fde676 Merge pull request #43 from sartography/send_filters 5c4e633bb Searching for call activities seems to be working now. I had the clear_caches in the wrong place previously - fixing. fa4c8cfbf Pre-pr cleanup 59c71401d Get ./bin/pyl to pass 66e8ad455 Fix status not being a list 62da25810 Add flag to indicate if user filtered 5cb7dce9d It's good to clear out he cache, but we can't do that with correlation properties due to foreign key constraints that are built up over time. So we'll just leave bad messages and correlations in the database for now -- we aren't doing a lot with messages yet anyway. 55020ed38 Merge branch 'main' of github.com:sartography/spiff-arena into send_filters 3334c7f9d update spiff 93526b03e pyl w/ burnettk cullerton 073ffb2ad added development permission for test user w/ burnettk cullerton 53a3f4c97 added some permissions for tasks 7415710d5 fixed broken test w/ burnettk f648f3999 pyl w/ burnettk b7ee3d24b added some permissions to the process model show page w/ burnettk a77ee31b4 Merge pull request #39 from sartography/feature/call_activity_selection 324f58d3f need to filter on process here, or a DMN with the same name will obscure the BPMN. 4ed558470 use id_for_file_path when using the process model id as a path for windows and added some more permission stuff to the frontend w/ burnettk 5d06af147 Assure changes to process ids are updated in the cache on a file save, and remove old references that no longer exist. Still some work to do here. 320a9c41a Getting ./bin/pyl to pass 51f02b20c Send filters back to client 167021e23 filters to_dict ec68bcb24 Merge pull request #38 from sartography/feature/call_activity_selection 71b4f65b9 pyl 866c3699e Merge process_instance_list query filters with report filters (#37) ed9936bfe Fixing a bug in SpiffWorkflow (new version in poetry.lock) fixing a test 89c17b7aa Fixing a bug in SpiffWorkflow (new version in poetry.lock) Don't explode when back-filling process models and hitting and error Assure processes are executable when setting them as the default primary process. The SpecReferenceCache now uses a unique constraint across two fields. (requires a new db) 18f45e90f added permission service to frontend to allow checking for permissions w/ burnettk bd37cfefa added configuration nav item to help reduce nav items w/ burnettk 5fcc6fc87 fix mypy typing stuff. w/ jasquat 5008626b1 run_pyl a3dcae016 Merge remote-tracking branch 'origin/main' into feature/call_activity_selection 2df8dd32d A little quick code cleanup. 58b702fa6 Adding a very simple api endpoint that just returns a list of every process known to the system. a2a0ccac2 Assure that the list of cached Spec References includes all Process Instances and DMNs (even those that are not primary) 5dcdc225a fixed failing tests w/ burnettk c121361d7 more refactoring for process instance list w/ burnettk 9bfb0f9e8 refactored pagination table to allow prefixing page options w/ burnettk b03d531ab Mostly a name change from BpmnProcessIdLookup to SpecReferenceCache. I landed on this unfortunate name because: f7698c0ed use the same file path method in spec file service w/ burnettk 2482827c4 some fixes for windows and python 3.9 w/ burnettk 822c40525 merged in main and resolved pyl issues w/ burnettk 1cdf2af95 Merge remote-tracking branch 'origin/main' into feature/task_page 66b994efd added remaining task tables w/ burnettk b7b6a97df work in spiff is approved and merged, updating dependency 37d9f7cc6 pyl w/ burnettk d96aaa846 added message correlations to message instance list api call w/ burnettk 828e41c4d Adding a display name to the BPMN Process ID Lookup Table Removing (very nearly, except for script unit tests) all the XML Parsing we were doing, see related PR on SpiffWorkflow Moved the Custom Parser into its own file to solve some circular import issues 53d5a7b44 Merge branch 'main' into feature/call_activity_selection 5161fb6e7 Merge branch 'main' of github.com:sartography/spiff-arena into main a2a203e8c add a search button to the call activity to allow finding a process id through some sort of admin interface. 430c03a58 noop, testing pre-commit hook. git-subtree-dir: spiffworkflow-backend git-subtree-split: 52fad891c58132ec8b64f56ac814409bb9e4ea4f
2022-11-20 19:48:30 -05:00
op.drop_table('process_instance')
op.drop_table('principal')
op.drop_index(op.f('ix_message_triggerable_process_model_process_model_identifier'), table_name='message_triggerable_process_model')
op.drop_table('message_triggerable_process_model')
op.drop_index(op.f('ix_message_correlation_property_identifier'), table_name='message_correlation_property')
op.drop_table('message_correlation_property')
op.drop_table('user')
op.drop_table('spiff_logging')
op.drop_index(op.f('ix_spec_reference_cache_type'), table_name='spec_reference_cache')
op.drop_index(op.f('ix_spec_reference_cache_identifier'), table_name='spec_reference_cache')
op.drop_index(op.f('ix_spec_reference_cache_display_name'), table_name='spec_reference_cache')
op.drop_table('spec_reference_cache')
op.drop_table('permission_target')
op.drop_index(op.f('ix_message_model_name'), table_name='message_model')
op.drop_index(op.f('ix_message_model_identifier'), table_name='message_model')
op.drop_table('message_model')
op.drop_table('group')
# ### end Alembic commands ###