63 Commits

Author SHA1 Message Date
jasquat
aa285a86f3
Feature/group mapping from keycloak (#457)
* some basics to set a user groups based on info in keycloak w/ burnettk

* test for adding groups from token now passes

* do not remove users from groups when running refresh_permissions if specified

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-09-07 11:17:40 -04:00
jasquat
b66288b17f
Feature/business end states (#333)
* WIP: some updates to support new spiff w/ burnettk

* unit tests are passing

* all tests except message tests are passing

* fixed usage of catch message event w/ burnettk

* messages are working again w/ burnettk

* uncommented remaining message tests w/ burnettk

* fixed cypress tests w/ burnettk

* use main for spiffworkflow

* translated mysql last milestone query to sqlalchemy w/ burnettk

* fixed last milestone query so instances still return if no milestone found and moved some code from the main report method to own methods

* added some comments

* added last milestone column to process instances table

* display last milestone in instance list table w/ burnettk

* remove 3 characters when truncating last milestone for ellipsis

* make sure we have a current processor so we don't return null

* remove sleep

* The background processor now only picks up processes that were last updated more than a minute ago to avoid conflicting with the interstitial page.  With the understanding that we can rmeove this limitation when we can refactor to allow the backend processes to provide updates on what they are doing.

* pyl w/ burnettk

* cache last milestone on instances

* pyl

* added test for last milestone and added it to the proces instance show page w/ burnettk

* fixed broken test w/ burnettk

* fixed last milestone header

* removed duplicated column

* fixed broken test

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Kevin Burnett <18027+burnettk@users.noreply.github.com>
Co-authored-by: danfunk <daniel.h.funk@gmail.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-09-07 10:10:44 -04:00
jasquat
2d8e262681
fixed is_empty metadata filter and added test to ensure they all work w/ burnettk (#437)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-08-21 22:00:01 +05:30
jasquat
48f29afa2a
Feature/extensions api (#423)
* added api and test to run a process model and return task data synchronously w/ burnettk

* added test to make sure we can access db models from extensions api w/ burnettk

* added extensions api to elevated permissions

* fixed permission tests

* do not add extensions permission to all permission for a pg or pm w/ burnettk

* added configs for extensions api w/ burnettk

* added the basis for an extensions list api w/ burnettk

* added tests for extenstions api and do not use serialized as a property

* allow giving a body to an extension when running and some support in frontend to use extensions

* added ability to display markdown and rjsf on extensions page

* added ability to submit the extension form and display the resulting task data

* made frontend extension urls have 2 pieces of information so we can specify multiple routes for the same process-model w/ burnettk

* do not save process instances when running extensions w/ burnettk

* add extension input to a task not the process w/ burnettk

* pyl w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-08-02 14:02:53 +05:30
jasquat
22e53ab23d
Feature/autosave and null form data (#346)
* autosave form data on change w/ burnettk

* tests are now passing and pyl

* do not do anything on autosave success w/ burnettk

* merged autosave and null form data branches together w/ burnettk

---------

Co-authored-by: jasquat <jasquat@users.noreply.github.com>
2023-06-26 18:26:56 +05:30
Kevin Burnett
febca3bc0b
add mccabe linter and auto fixes (#302)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-06-08 14:26:33 -07:00
jasquat
35864d8abe
removed useless class and def comments from python code w/ burnettk 2023-05-31 16:28:06 -04:00
burnettk
274892125d
remove useless comments matching filenames 2023-05-30 12:21:50 -04:00
burnettk
0c23076adc
get compatible with ruff pyupgrade 2023-05-27 14:59:52 -04:00
burnettk
aeb7caa531
let ruff sort imports and ditch duplicative pre-commit linters 2023-05-26 20:01:08 -04:00
jbirddog
ca891259f7
Support custom run at time when creating an instance (#270) 2023-05-23 09:52:01 -04:00
jasquat
58b06751ae
fixed tests related to new permissions w/ burnettk 2023-05-22 14:58:51 -04:00
jasquat
1c0d62d366
remove api usages from script tests and pyl w/ burnettk 2023-05-22 14:09:17 -04:00
jasquat
b575ef09de
added missing permissions to elevated perm macro and removed api calls from unit tests 2023-05-22 13:50:32 -04:00
jasquat
ffc6e8720e
fixed tests w/ burnettk 2023-05-02 17:09:29 -04:00
jasquat
7109f0b69d
tests are now passing and pyl w/ burnettk 2023-04-28 10:07:21 -04:00
jbirddog
a1a54c54bb
Trip safe asserts in tests, various process instance queue improvements (#199) 2023-03-31 10:59:09 -04:00
burnettk
5452d6be50
add test for filtering columns and clarify that we are doing unit tests with api, whoops 2023-03-24 18:11:11 -04:00
jasquat
4b64f725f4
increase line length from 88 to 119 for black w/ burnettk 2023-03-15 16:24:08 -04:00
jbirddog
b8e0a8f665
Move process instance locking to new queue table (#177) 2023-03-14 13:12:01 -04:00
Dan
bd150dfff9 Merges 2023-01-19 13:26:13 -05:00
Dan
628c59dde9 Lots of adjustments from running pyl
Main change is in the ErrorDisplay.tsx to assure all error information is provided. and index.css to make it "pretty"
2023-01-19 12:36:45 -05:00
jasquat
26de48193c do not allow overwriting process models and process groups w/ burnettk 2023-01-18 14:40:03 -05:00
jasquat
336fb1d8d2 do not resolve entities when parsing xml w/ burnettk 2023-01-17 14:58:54 -05:00
Dan
127eb7868c Removing dependency on flask-bpmn and taking it out of SpiffArena
Slightly updating the APIError code for recent updates to SpiffWorkflow's error refactoring.
2023-01-17 12:56:06 -05:00
jasquat
23a93d8155 added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk 2023-01-05 17:29:28 -05:00
jasquat
5f30564c85 basic support to find a process instance by id w/ burnettk 2023-01-05 14:59:59 -05:00
burnettk
918057e489 upgrade black, give it the preview flag, and let it rip on long strings 2022-12-30 23:08:00 -05:00
jasquat
36c395e074 do not force permissions to use the v1.0 path prefix but it can be used if desired w/ burnettk 2022-12-21 12:13:33 -05:00
jasquat
b51f9ba5a1 merged in main and resolved conflicts w/ burnettk 2022-12-20 15:06:34 -05:00
jasquat
2ada0814b1 renamed test process instance create method w/ burnettk 2022-12-20 11:19:04 -05:00
Dan
6ca754f8a4 When loading permissions and the user does not exist, add records to the UserGroupAssignmentWaiting table that can be picked up later.
Request "profile" scope over OpenID so we can get a few more bits of information when avilable.
Add a "clear_perissions" script
Add an "add_permissions" script
Add an "add_permissions" script
When logging in for the first time, check for any awaiting permissions and assign them.
Add "enumerate" as a whitelisted function to React Schema
Add a "display_name" to the user table

Add a test for adding a new permission
Add a test for adding a user to group
Adding a test for deleting all permissions.
Adding a display name for the user table
2022-12-15 14:40:31 -05:00
jasquat
ab430b5843 pyl passes 2022-12-08 13:47:30 -05:00
Dan
d80e4b3456 Merge branch 'main' into feature/create_containers 2022-12-06 18:06:09 -05:00
jasquat
731bf6737d cleaned up more api routes for permissions w/ burnettk 2022-12-05 16:06:08 -05:00
Dan
88a94ec6da running py_pl -- mainly reordering imports. 2022-12-05 12:29:19 -05:00
burnettk
ecee3c4548 lint 2022-11-25 00:46:43 -05:00
burnettk
069f717ee7 tests passing 2022-11-25 00:08:38 -05:00
burnettk
fe4f3a6af4 gotta fix usage of is_model 2022-11-24 16:28:10 -05:00
burnettk
5f7182c5d6 working on tests 2022-11-24 13:01:53 -05:00
burnettk
37fcc547f7 remove column 2022-11-24 12:28:53 -05:00
burnettk
f8e78d352d start adding display name and removing garbage 2022-11-24 11:51:31 -05:00
jasquat
ecf96166b1 created new users for keycloak and fixed some permissions for core user w/ burnettk cullerton 2022-11-22 13:01:08 -05:00
jasquat
67d6a01161 pyl is passing w/ burnettk cullerton 2022-11-18 16:45:44 -05:00
mike cullerton
cf09b2258b precommit 2022-11-18 15:50:20 -05:00
mike cullerton
fe582261fe Cleanup - renaming frenzy, use os.path.abspath 2022-11-17 16:35:28 -05:00
jasquat
21e3786377 fixed broken test w/ burnettk 2022-11-15 17:49:46 -05:00
burnettk
d25c37153a pyl 2022-11-11 11:39:15 -05:00
mike cullerton
1a6da88504 removed duplicate code 2022-11-11 08:17:50 -05:00
mike cullerton
677ffc4130 renamed and reordered some methods in base_test.py 2022-11-11 08:02:35 -05:00