Commit Graph

1239 Commits

Author SHA1 Message Date
jasquat aa87d68d50 moved more api methods to own controllers w/ burnettk 2022-12-29 15:45:34 -05:00
Elizabeth Esswein 6b78eddc82 add endpoint to reset process to earlier step 2022-12-29 15:26:29 -05:00
jasquat be5580a923 moved process groups, models, and instances api methods to own controller files w/ burnettk 2022-12-29 15:24:39 -05:00
burnettk 3933c92a5a fix bug with opening call activities when processes conflict with dmn files 2022-12-29 14:33:30 -05:00
Elizabeth Esswein 76c71a7e59 fix show previous spiff steps 2022-12-29 13:55:19 -05:00
Dan d3136f8e4b Don't freak out if git is not yet setup in the working directory. 2022-12-29 13:49:41 -05:00
Elizabeth Esswein 83e468d43c Merge branch 'main' into feature/process-navigation 2022-12-29 12:09:47 -05:00
jbirddog 42393d8d75 Make list available to script tasks (#86) 2022-12-28 17:04:47 -05:00
jasquat 0972d9790a save the process instance even if it fails to run all the way w/ burnettk 2022-12-28 14:37:04 -05:00
jasquat 626db0d780 delete human tasks when process instance is deleted w/ burnettk 2022-12-28 14:02:39 -05:00
jasquat 0cc6f2c2dc fixed some cypress tests and fixed issue where an invalid date caused the page to constantly reload w/ burnettk 2022-12-28 12:27:37 -05:00
jasquat 8aafd69db1 do not delete groups that were just added w/ burnettk 2022-12-27 16:44:58 -05:00
jasquat b33947bdaf some cypress tests w/ burnettk 2022-12-27 15:42:22 -05:00
jasquat e3d381a23a log api errors when sending to sentry w/ burnettk 2022-12-27 13:52:48 -05:00
jasquat 568c2b7f28 give read access to process-data for all permission macro w/ burnettk 2022-12-27 11:56:09 -05:00
jasquat bf1ecb87d1 added ability to view data objects from the process instance show page w/ burnettk 2022-12-27 11:45:42 -05:00
burnettk 2ba416f584 dev permissions copied from terraform deployed and terraform deployed now tiny, minor fixes 2022-12-23 23:39:48 -05:00
burnettk 18ae75fa56 link to correct instances page, fix fin users, ignore coverage files 2022-12-23 20:18:08 -05:00
burnettk 25022c35fb trim down granted permissions to just the ones that exist in the API, improve output of permissions 2022-12-23 16:49:15 -05:00
burnettk 3fd9aafe01 use spiffworkflow.org for admin and other minor permissions tweaks 2022-12-23 12:25:18 -05:00
burnettk cd623fc978 fix qa1 and add script to get perms 2022-12-22 21:29:12 -05:00
burnettk 8ed7800e56 lint and regen schema 2022-12-22 21:15:10 -05:00
burnettk 0e8f6fc04b 50 is not long enough to store our keycloak urls 2022-12-22 21:10:43 -05:00
burnettk 3178909c16 add qa1 env 2022-12-22 17:21:45 -05:00
jasquat ffcfa7b37f added test to check only privileged users can call refresh_permissions w/ burnettk 2022-12-22 17:12:21 -05:00
jasquat 833976ef02 updated permission yamls to have email addresses and look more the same w/ burnettk 2022-12-22 16:55:19 -05:00
jasquat 73356471b5 pyl passes w/ burnettk 2022-12-22 16:42:52 -05:00
jasquat 533beee8b4 removed scripts for permissions since that code has been mostly moved and superseded by refresh_permissions w/ burnettk 2022-12-22 16:19:21 -05:00
jasquat be228d4057 added script to refresh permissions w/ burnettk 2022-12-22 16:14:52 -05:00
jasquat 2b5d03bebd pyl w/ burnettk 2022-12-22 12:32:26 -05:00
jasquat 0ad3708965 added script to get all permissions for the confirmation page when adding permissions from a process model w/ burnettk 2022-12-22 12:20:34 -05:00
jasquat f4558b6167 fixed slashes to colons in permission macros w/ burnettk 2022-12-22 10:34:19 -05:00
jasquat a56734226d pyl 2022-12-22 09:59:55 -05:00
jasquat e3b9e127c1 added ALL macro for easier use with admin groups and some failure test cases 2022-12-22 09:57:13 -05:00
jasquat f669d19eab added test for perm macros w/ burnettk 2022-12-21 17:38:56 -05:00
jasquat b73699e698 added method to add permissions based on macros w/ burnettk 2022-12-21 17:14:11 -05:00
jasquat 4ac265433d Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2022-12-21 13:51:53 -05:00
Dan 1c027df7ce Merge branch 'main' of github.com:sartography/spiff-arena into main 2022-12-21 12:53:03 -05:00
Dan 91630588fa Do not require a Git Repository to start a process. 2022-12-21 12:52:56 -05:00
jasquat d12696fcd0 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 7756165b08 pyl w/ burnettk 2022-12-21 11:42:45 -05:00
jasquat dc2a976b9c default requiring permissions to run a script to True w/ burnettk 2022-12-21 11:39:12 -05:00
jasquat 71c4a2fdc4 added permission to run privileged scripts w/ burnettk 2022-12-21 11:24:38 -05:00
Dan Funk 1033159b2a Merge pull request #79 from sartography/feature/better_unit_tests
A little cleanup around the Script Unit Tests - so that it's easier to show this feature off
2022-12-21 11:09:26 -05:00
jasquat 6b886663f1 Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2022-12-20 17:00:58 -05:00
jasquat c49355dec7 pyl fixed w/ burnettk 2022-12-20 16:14:55 -05:00
jasquat 068c3f133d fixed get tasks and process instances by group w/ burnettk 2022-12-20 16:02:27 -05:00
jasquat 66ebe1ad27 pyl w/ burnettk 2022-12-20 15:47:30 -05:00
jasquat a7256622d4 fixed completed instances filter w/ burnettk 2022-12-20 15:41:01 -05:00
jasquat 0f18bb7982 merged in main and resolved conflicts w/ burnettk 2022-12-20 15:06:34 -05:00
jasquat 6a578b6f4e a little refactor w/ burnettk 2022-12-20 15:02:27 -05:00
jasquat f9fa7e5147 set the completed by user on human task w/ burnettk 2022-12-20 14:58:15 -05:00
jasquat be47b73525 added remaining filter tests w/ burnettk 2022-12-20 14:39:04 -05:00
jasquat 0d3506944c added another filter test 2022-12-20 13:50:09 -05:00
jasquat 578481416d added test for report filters w/ burnettk 2022-12-20 12:29:14 -05:00
Elizabeth Esswein 6cb0b068b4 reformat file again 2022-12-20 11:19:27 -05:00
jasquat 4d2796facf some initial changes to refactor report filters w/ burnettk 2022-12-20 11:16:06 -05:00
Elizabeth Esswein e0ce9f71ed fix more bs errors 2022-12-20 11:10:59 -05:00
Elizabeth Esswein e1d132cf68 fix lint errors 2022-12-20 11:05:46 -05:00
Elizabeth Esswein ca9587f1ad fix conflicts for like the thousandth time 2022-12-20 10:41:45 -05:00
burnettk 84749f194d fix filtering issue on completed instances tab and lint junk 2022-12-19 23:08:54 -05:00
jasquat 3c2b715492 fix getting task info for a process instance w/ burnettk 2022-12-19 17:11:39 -05:00
jasquat 90a5b0c315 added correct process instance permissions w/ burnettk 2022-12-19 16:39:35 -05:00
jasquat af03e48234 renamed active task to human task since we are no longer deleting them w/ burnettk 2022-12-19 16:23:02 -05:00
jasquat 86cb5d77a8 created process instance list and show pages to handle all and for-me w/ burnettk 2022-12-19 16:16:27 -05:00
Elizabeth Esswein ec492b3cfc fix conflicts yet again 2022-12-19 15:28:44 -05:00
jasquat 6c64e7312b merged in main and resolved conflicts w/ burnettk 2022-12-19 14:51:54 -05:00
jasquat d4ef203da7 give everybody crud for reports w/ burnettk 2022-12-19 14:47:01 -05:00
jasquat a6a84beaea fixed file upload and do not allow submitting task data to a suspended process instance w/ burnettk 2022-12-19 14:28:54 -05:00
jasquat 76481f57cd updates to disallow modifying a process instance when it is not in the correct state w/ burnettk 2022-12-19 12:55:25 -05:00
jasquat b9642bfdf7 do not allow editing task data for process instances that are not suspended and some code cleanup w/ burnettk 2022-12-19 11:54:22 -05:00
jasquat 51cfe24178 added updated and created at columns on user w/ burnettk 2022-12-19 11:25:21 -05:00
jasquat 20f378922e set the auth header when calling git commit w/ burnettk 2022-12-19 11:15:05 -05:00
Dan 3d769e185f Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2022-12-19 10:05:47 -05:00
Dan d24b53b7a1 Adding tests for the user service , and closing a few logic errors. Adding support for a single wild card for matching all users. 2022-12-19 10:05:19 -05:00
Elizabeth Esswein 71a154db1e allow marking task complete without executing 2022-12-18 10:44:42 -05:00
Elizabeth Esswein b08496f4b7 fix conflicts again 2022-12-18 10:42:19 -05:00
burnettk d358f0e708 fix tests 2022-12-17 23:25:47 -05:00
jasquat f818511226 added completed column to active task w/ burnettk 2022-12-16 16:51:49 -05:00
Elizabeth Esswein 10c92cd586 update url to allow permissions on send event 2022-12-16 16:22:59 -05:00
jasquat a32bf89930 some basic stuff for showing only relating items to user w/ burnettk 2022-12-16 16:07:40 -05:00
jasquat 87b5d9affa fixed permissions w/ burnettk 2022-12-16 15:31:05 -05:00
Dan ecc70c189f Merge remote-tracking branch 'origin/main' into feature/bpmn_user_permissions 2022-12-16 15:25:10 -05:00
Kevin Burnett 07c5fe2e91 add a test group and put natalia in it 2022-12-16 12:01:57 -08:00
jasquat e2a7a5de23 updated some text for task tables w/ burnettk 2022-12-16 14:21:04 -05:00
jasquat d0fbd20ee8 merged in main and resolved conflicts w/ burnettk 2022-12-16 13:53:43 -05:00
jasquat cd36bff524 Merge remote-tracking branch 'origin/main' into feature/better_unit_tests 2022-12-16 13:16:08 -05:00
Elizabeth Esswein 06ea528c17 fix conflicts & update event url to match other process instance urls 2022-12-16 12:53:36 -05:00
jasquat 7600e1e579 added new api endpoint to get task-info so users with access to process instances can see the tasks but not the data 2022-12-16 11:39:07 -05:00
jasquat 643f632c89 fix permissions for core on dev w/ burnettk 2022-12-15 15:55:22 -05:00
Dan 3697c86c21 Merge branch 'feature/better_unit_tests' into feature/bpmn_user_permissions 2022-12-15 15:01:59 -05:00
Dan b7d6448b8f Fixes a bug that was causing tests to be added to the incorrect task.
Clean up UI for a better experience when viewing tests.
2022-12-15 14:45:35 -05:00
Dan a75a5407ea 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 6a9272b3bb do not set git branch info on development w/ burnettk cullerton 2022-12-15 13:04:24 -05:00
jasquat e5b0311050 commit and push to github on all changes to bpmn dir w/ burnettk cullerton 2022-12-15 12:52:53 -05:00
Elizabeth Esswein e10cb73f70 reformat & fix types 2022-12-15 11:39:28 -05:00
Elizabeth Esswein 68c4aa2db1 Merge branch 'main' into feature/process-navigation 2022-12-15 11:28:46 -05:00
jasquat e33d003059 Merge branch 'main' of github.com:sartography/spiff-arena 2022-12-15 10:02:54 -05:00
jasquat cf9b2fcb56 add support to find the form for a call activity defined in another process model 2022-12-15 10:02:51 -05:00
jbirddog 494a427ce6 Fix endpoints for script task unit tests (#77) 2022-12-15 09:31:19 -05:00
Dan 8f233106e1 Merge remote-tracking branch 'origin/unit_test_404' into feature/bpmn_user_permissions 2022-12-15 07:19:19 -05:00
Jon Herron 9af47b207b Fix api endpoints for script unit tests 2022-12-14 18:23:38 -05:00
jasquat 7e520dbc01 remove assert statements from actual code w/ burnettk 2022-12-14 16:32:07 -05:00
Elizabeth Esswein 6c8cbe6f29 working but barely functional UI for manually sending events 2022-12-14 15:21:39 -05:00
jasquat 511d31b902 fixed perms for readonly for staging w/ burnettk 2022-12-14 15:03:22 -05:00
jasquat 900f452493 load the correct perm file on staging w/ burnettk 2022-12-14 14:35:08 -05:00
jasquat 562ec8efd3 added permission file for staging w/ burnettk 2022-12-14 11:00:32 -05:00
burnettk 7e39994c91 in postgres you cannot order by a non-grouped column without doing an aggregate 2022-12-13 23:21:32 -05:00
jasquat 36c509532a pyl and fix test w/ burnettk 2022-12-13 16:44:46 -05:00
jasquat f15794a2ea store subprocesses for spiff steps as well and do not save file as primary if one is already set w/ burnettk 2022-12-13 16:04:37 -05:00
jasquat 4c119caa0e some fixes to ensure we display the correct task data for the diagram elements w/ burnettk 2022-12-13 14:16:28 -05:00
Dan a9673dd4bd Assure our open-id system can return emails.
Update our data from Open ID Systems when users log in
2022-12-13 08:14:44 -05:00
Dan a665918335 Removing two fields from user table that were not used (uid, name)
Request email from open id clients, as this would provide a handy way to uniquely reference users when assigning to groups.
During Login do a lookup on email if possible -- so that permissions assignments based on email can be connected when sigining in through openid.
Don't use "open_id" for the service name on user accounts, use the iss string provided through open id,  this will allow us to support more than one open id platform.
Update the KeyCloak configuration so it is able to return email addresses for users -- which will make permission assignment easier in the future.
Removed several unused commands in the user_service class.
2022-12-12 15:43:19 -05:00
jasquat 6ae471d0e0 pyl 2022-12-12 15:36:03 -05:00
jasquat 2c1d8b62cb allow viewing the diagram for a specific process identifier 2022-12-12 15:08:09 -05:00
jasquat 33d68368be split out completed instances by group as well 2022-12-12 13:41:42 -05:00
jasquat e7873c5beb updated group api so it is not under tasks 2022-12-12 13:19:27 -05:00
jasquat 88f6ea071f pyl 2022-12-12 12:29:36 -05:00
jasquat 1582dca2d3 split group task tables by group and created component for group tables 2022-12-12 12:21:37 -05:00
jasquat b8a5690c36 strip off spaces from git service command stdout 2022-12-12 10:05:08 -05:00
burnettk 1291c8d4e7 try to fix a test on windows 2022-12-11 00:03:46 -05:00
jasquat 3cd57a1c83 pyl w/ burnettk 2022-12-09 17:30:14 -05:00
jasquat 5b2917a591 update staging configs to allow env var overrides w/ burnettk 2022-12-09 17:28:57 -05:00
jasquat 7645a5f8d6 need to set upstream when git pushing w/ burnettk 2022-12-09 17:15:53 -05:00
jasquat 0413f3cdf8 added secret verification to webhook endpoint w/ burnettk 2022-12-09 16:51:00 -05:00
jasquat bf507f8fc6 fixed mypy issue w/ burnettk 2022-12-09 15:05:10 -05:00
jasquat 7c6e5c306b Merge branch 'main' of github.com:sartography/spiff-arena 2022-12-09 15:01:58 -05:00
jasquat 87c986df0e cleaned up the git service and expanded the api git hook w/ burnettk 2022-12-09 15:01:55 -05:00
jbirddog c7322f3c8d Sort primary file to top of files list (#71) 2022-12-09 13:14:26 -05:00
jasquat 37a516d991 some base work to try to get display names searchable for process models w/ burnettk 2022-12-09 11:23:18 -05:00
burnettk 089d7d5e26 note 2022-12-08 23:57:09 -05:00
burnettk aa6fe82864 add skeleton of endpoint to receive github webhooks 2022-12-08 23:55:01 -05:00
jasquat 7b9e99ad96 some reorder w/ burnettk cullerton 2022-12-08 17:15:28 -05:00
jasquat 2081532f4a mypy w/ burnettk cullerton 2022-12-08 17:12:19 -05:00
jasquat ade7a41e7b added git creds for pushing on publish w/ burnettk cullerton 2022-12-08 16:39:23 -05:00
jasquat 832d7c5c28 merged in main and resolved conflicts w/ burnettk cullerton 2022-12-08 15:31:25 -05:00
jasquat 236e0e4ae8 favor os.path.join over hardcoding slash w/ burnettk 2022-12-08 14:08:32 -05:00
jasquat 4ce7d67328 pyl passes 2022-12-08 13:47:30 -05:00
jasquat b525e3523a added new notification component that allows links based on carbons w/ burnettk cullerton 2022-12-08 12:28:23 -05:00
mike cullerton 1e9b2e9ab9 Return URL where they can view changes and open PR 2022-12-08 09:26:10 -05:00
mike cullerton c8e8dae956 Clone into unique directory so we don't step on a previous publish that hasn't finished. 2022-12-08 09:25:27 -05:00
burnettk c5e7e91533 make process metadata saving more resilient 2022-12-08 08:44:31 -05:00
jasquat 348595c190 syntax fix w/ burnettk 2022-12-07 14:42:13 -05:00
jasquat bbcfd52137 remove staging py config file in favor of terraform configs w/ burnettk 2022-12-07 14:40:04 -05:00
jasquat b150a8a69f moved some configs from deploy scripts to terraform env config w/ burnettk 2022-12-07 14:18:49 -05:00
jasquat acf6419625 rename terraform configs from rb to py w/ burnettk 2022-12-07 14:09:33 -05:00
mike cullerton 8629375254 Add comment about the new environment variable 2022-12-07 14:00:11 -05:00
Dan 655e01a48f Merge branch 'main' into feature/create_containers 2022-12-06 18:06:09 -05:00
mike cullerton f580cadb21 Merge branch 'main' into feature/git-integration
# Conflicts:
#	spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py
2022-12-06 16:27:36 -05:00
jasquat e241ed5cd0 updated terraform permissions to match development better w/ burnettk 2022-12-06 16:20:00 -05:00