73 Commits

Author SHA1 Message Date
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
jasquat
e562ae1c93
Merge pull request #275 from sartography/feature/process_model_unit_tests
Feature/process model unit tests
2023-05-23 15:55:47 -04:00
jbirddog
ca891259f7
Support custom run at time when creating an instance (#270) 2023-05-23 09:52:01 -04:00
jasquat
75b6c58bed
Merge remote-tracking branch 'origin/main' into feature/process_model_unit_tests 2023-05-22 15:17:49 -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
f694c7b1f1
no reason to instantiate a ProcessModelService 2023-05-17 10:16:09 -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
burnettk
bcf798f299
fix two issues, one where we were not sorting after globbing, and another where we forgot about process groups 2023-03-16 12:34:44 -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
c4ba9f398d Making sure we create informative messages when encountering jinja2 syntax errors. 2023-01-25 14:13:21 -05:00
jasquat
c488615dcf pyl w/ burnettk 2023-01-19 15:37:55 -05: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
mike cullerton
897615d0fd Rename CAT_JSON_FILE, WF_JSON_FILE, add_spec, update_spec 2022-11-17 12:08:42 -05:00