528 Commits

Author SHA1 Message Date
Jon Herron
1c6439ab59 Add cumulative task data size to script 2023-02-22 10:39:35 -05:00
burnettk
7ae03bec27
copy env so we are doing additive stuff rather than completely rewriting it 2023-02-21 22:00:02 -05:00
jasquat
d059665431
more git config updates w/ burnettk 2023-02-21 16:43:52 -05:00
jasquat
df3b713ce4
disable strict host checking for git commands w/ burnettk 2023-02-21 16:42:11 -05:00
jasquat
b8b4734aea
fixed tests w/ burnettk 2023-02-21 15:28:54 -05:00
jasquat
2e0be30cbe
give access to download process data files if a user has access to start a process model w/ burnettk 2023-02-21 15:08:19 -05:00
72a29aa327
backend: specify --rebase when using git pull
Otherwise it fails with:
```
Pulling without specifying how to reconcile divergent branches is discouraged.
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-21 19:58:38 +01:00
2f88ba3013
backend: fix use of SSH private key for git ops
Primarily this is supposed to fix the `git pull` aciton triggered by
webhooks from GitHub. But in addition to that the point is to simplify
that committing wrapper which has far too much in it.

Instead of passing everything as CLI arguments one should make use of
already supported environment variables and the `env` argument to
`subprocess` functions like `run()`. Writing extra logic in the wrapper
only makes it unnecessarily complicated.

By passing both user, email, and the SSH options in `run_shell_command`
we avoid the need to repeat the same boilerplate to provide Git config
and SSH credentials.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-21 19:58:36 +01:00
Dan
7b16625cff run_pyl 2023-02-20 12:34:42 -05:00
Dan
5171e53240 * SpiffWorkflow event_definitions wanted to return a message event's correlation properties mested within correlation keys. But messages are directly related to properties, not to keys - and it forced a number of conversions that made for tricky code. So Messages now contain a dictionary of correlation properties only.
* SpiffWorkflow did not serialize correlations - so they were lost between save and retrieve.

* When comparing Correlation Property values - we are storing these values as strings in the database and can't convert them back to integers later, so I'm changing everying everywhere to compare after conversion to a string.  Don't feel great about this one.
* By using an SQL Alchemy join table, there is a lot of db queries we don't need to write.
* A few handy fucntions on db models to make it easier to work with correlations.
* Updated tests because I changed some of the BPMN models we were testing against.
* Database migration to use the new constraint names with the alternate form of the join table between correlation mesages to instance messages.
2023-02-20 11:50:35 -05:00
burnettk
5704c96356
delint 2023-02-20 10:58:04 -05:00
d4a90e208b
backend/git_service: accept webhook test requests
https://docs.github.com/en/webhooks-and-events/webhooks/testing-webhooks

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-20 13:11:21 +01:00
a79d25f7e7
backend/git_service: check repo URLs from webhook
Since we are cloning a private repo we are using `ssh_url` in our case.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-20 13:02:54 +01:00
Dan
28ac9ef872 * Re-work message tests so I could wrap my simple head around what was happening - just needed an example that made sense to me.
* Clear out complex get_message_instance_receive how that many-to-many works.
* Create decent error messages when correlations fail
* Move correlation checks into the MessageInstance class
* The APIError could bomb out ugly if it hit a workflow exception with not Task Spec.
2023-02-18 13:09:58 -05:00
Dan
50d3ee544b Merge branch 'main' into feature/message_fixes 2023-02-17 12:01:38 -05:00
Dan
948deb97bc work in progress -
* Link between message instance and correlations is now a link table and many-to-many relationships as recommended by SQLAlchemy
* Use the correlation keys, not the process id when accepting api messages.
2023-02-17 10:45:01 -05:00
jasquat
012396b01e
pyl 2023-02-16 14:38:19 -05:00
burnettk
6f0c977f7e
use _GIT_SOURCE_BRANCH instead of _GIT_BRANCH 2023-02-16 14:10:31 -05:00
burnettk
93da627b24
update configs for publish feature 2023-02-16 13:47:26 -05:00
jasquat
1f2a5e2ddf
pyl 2023-02-16 07:39:40 -05:00
jasquat
47807a6a0c
Merge remote-tracking branch 'origin/main' into feature/update_configs_with_prefix 2023-02-16 07:17:39 -05:00
burnettk
78fee35028
remove unused import 2023-02-16 06:34:03 -05:00
burnettk
84c77395d4
all tests pass w/ spiff lib upgrade, thanks for the help elizabeth 2023-02-15 22:56:12 -05:00
jasquat
78360de25f
updated secret config names as well w/ burnettk 2023-02-15 17:17:47 -05:00
jasquat
497389ceb9
updated configs to use the prefix using the script w/ burnettk 2023-02-15 17:07:12 -05:00
jasquat
f9a7e40488
updated default user group var name for better prefix w/ burnettk 2023-02-15 16:43:40 -05:00
jasquat
a6a1f06941
save task data to spiff step details when copmleting a user task as well w/ burnettk jbirddog 2023-02-15 15:34:51 -05:00
jasquat
3a00f09baa append OPEN_ID to TENANT_SPECIFIC_FIELDS for clarification on what it is from w/ burnettk 2023-02-15 11:12:30 -05:00
jasquat
c8801094a5 do not remove the default user group when refreshing permissions w/ burnettk 2023-02-15 11:09:04 -05:00
Dan
c1c5d02547 The aud in a json web token can be a string or an array -- so also deal with the case that it is an array 2023-02-14 19:39:35 -05:00
jasquat
18a1b83e60 commit user if it has changed any attributes w/ burnettk 2023-02-14 15:08:25 -05:00
jasquat
f7f7b60eb6 fix for mypy on python 3.9 w/ burnettk 2023-02-14 11:34:45 -05:00
jasquat
386f1c926d give some leeway to iat when validating auth w/ burnettk 2023-02-14 10:51:11 -05:00
jasquat
6e49fcc975 add in debug logging when failing to login to help debug auth failures 2023-02-14 09:59:29 -05:00
Dan
03f8b62599 run_pyl 2023-02-13 10:38:21 -05:00
Dan
674380001f This should fix the len issue - though there may be better ways to fix
this.
This reverts commit d1e2d292111c9e81b0fc9177c8f7546a8a6e8462.
2023-02-13 10:13:51 -05:00
Dan
d1e2d29211 Revert "more finally for better len"
This reverts commit 44e2e910782a635b037d0f0c6fa25b366e9480b3.
2023-02-13 10:12:31 -05:00
Dan
44e2e91078 more finally for better len
added a fixme for raising errors
fixed up an error message
2023-02-13 10:10:23 -05:00
jbirddog
ddcecb21c4
Save logs in finally (#134) 2023-02-10 09:18:04 -05:00
jasquat
fd8134706d link to the spiff step from a task on the frontend and use the correct db in ci 2023-02-09 17:07:36 -05:00
jasquat
ac9813790c pyl w/ burnettk 2023-02-09 16:03:26 -05:00
jasquat
b8870601d1 call activities are also working w/ burnettk 2023-02-09 15:52:00 -05:00
jasquat
d99598f5c0 tasks and subprocesses can are setting the task states properly now when getting task data w/ burnettk jbirddog 2023-02-09 15:29:45 -05:00
jasquat
e9ee885efb pyl w/ burnettk 2023-02-09 10:28:36 -05:00
Jon Herron
bec263d24d Merge branch 'save_step_data' of github.com:sartography/spiff-arena into save_step_data 2023-02-09 09:45:50 -05:00
Jon Herron
ffb468d6bb Fix bug where deletes from the environment were not removed from the task data as well 2023-02-09 09:45:31 -05:00
jasquat
8796e42d5e Merge remote-tracking branch 'origin/main' into save_step_data 2023-02-09 09:37:03 -05:00
Dan Funk
81da8c30a6
Merge pull request #132 from sartography/feature/no_more_current_user
Feature/no more current user
2023-02-08 18:23:25 -05:00
jasquat
03d163b1e0 updated controller to use spiff step details to find correct task data to show w/ burnettk 2023-02-08 17:31:20 -05:00
Dan
9eb2eb28df run_pyl 2023-02-08 17:10:57 -05:00