Commit Graph
2769 Commits
Author SHA1 Message Date
Denis Arh 53ebbe0a95 Fix array (rec values) overriding in expressions 2021-09-20 21:03:46 +02:00
Tomaž Jerman ea2aa53b39 Remove duplicate records with multi value fields 2021-09-17 11:59:09 +02:00
Tomaž Jerman dd8fdd69c6 Implement iterator chunking
Membership iterator doesn't chunk the output as the size will
always be small.
2021.3.12
2021-09-09 09:45:34 +02:00
Vivek Patel 234566b799 Updates expr function count
- It returns count based on params
- count(foo) counts all elements
- count(foo, 'bar', 'baz') counts number of bars and bazs in foo
2021-09-08 22:38:02 +05:30
Tomaž Jerman c4d8c96b22 Add function to add recipients 2021-08-29 11:48:57 +02:00
Vivek Patel e8433e2d1a Adds expr functions
- modWeek returns modify week part of the date input
- random returns random number between range if given
- sub returns diff between two dates in milliseconds
2021.3.11
2021-08-24 15:11:49 +05:30
Tomaž Jerman 777637d50d Add missing handle validation to templates 2021-08-23 10:13:53 +02:00
Tomaž Jerman d69b4c3f04 Rework workflow step scheduling to improve stacktraces
The initial implementation caused them to be flaky when working
with loops.
2021-08-17 09:12:19 +02:00
Denis Arh 1faae47562 Prevent triggering deleted workflows, fixes #198 2021-08-06 15:22:54 +02:00
Denis Arh c9e065e459 Implement split-credentials-check auth flow 2021-08-05 20:05:27 +02:00
Denis Arh 43d15fafda Refactor auth tests to allow setting customization 2021-08-05 19:06:42 +02:00
Andre Perry 37f48302f3 Add ValidConfiguration and test for external auth provider 2021-08-05 19:04:04 +02:00
Jože Fortun bffb2b6aa0 Remove spew import from records 2021-08-04 11:22:38 +02:00
Vivek Patel b135bbf0cb Fixes string expressions int param casting issue in workflow 2021-08-03 03:59:10 +05:30
Denis Arh 450a3054c2 Fix setting record with default values 2021-08-02 14:54:56 +02:00
Tomaž Jerman 77f9c36d38 Add role membership workflow handlers 2021-07-30 10:24:43 +02:00
Tomaž Jerman d251661f1a Improve default auth client handling
Prevent default auth clients from changing their handle, being
deleted, or de-activated.
2021-07-30 10:20:23 +02:00
Tomaž Jerman 801e4c79aa Handle special \n string case for YAML exports 2021-07-27 14:45:27 +02:00
Tomaž Jerman a26e5e26cd Fix nil ptr error when rendering documents with no vars 2021-07-27 12:35:34 +02:00
Denis Arh ffb297f8b1 Fix nil-pointer panic in auth flow 2021-07-23 13:23:12 +02:00
Denis Arh f126334c06 Fix non-OIDC IdP skip due to invalid req. check 2021-07-23 06:39:20 +02:00
Denis Arh 93e3c4798c Fix deferred workflow execution
This fix addresses execution of deferred workflows
and access control when setting run-as user.

Some additional standardisation on how we write
mutex/lock code.
2021-07-21 12:01:13 +02:00
Denis Arh 518e5e33dc Fix user creation via wf 2021.3.10 2021-07-16 12:31:41 +02:00
Denis Arh 89707b3ff9 Add dev/debug friendly version of sync.RWMutex 2021.3.9 2021-07-14 21:24:46 +02:00
Denis Arh c6bee31af1 Fix external auth provider management 2021-07-14 21:23:50 +02:00
Denis Arh f73c429c18 Fix wf session locking & canceling issue 2021-07-14 08:26:07 +02:00
Denis Arh 1853939a64 Improve expr types, add r/w locking 2021-07-13 17:09:00 +02:00
Denis Arh bc7e4ad540 Workflow execution testing 2021-07-13 17:01:56 +02:00
Vivek Patel a5aec519db Tweak adoc templates
- Updates path for generated docs
- Adds adoc codegen for expression and fixes expr_types.gen.adoc.tpl
2021-07-09 02:11:56 +05:30
Peter Grlica d9a00a9110 Encode stripped html special chars 2021.3.8 2021-07-02 12:06:05 +02:00
Denis Arh 5d5402d2bb Refactor workflow execution, prevent couple of race conditions 2021-07-02 11:45:20 +02:00
Tomaž Jerman d12b28d2e4 Fix WF handler closure lapsus 2021-07-02 11:45:20 +02:00
Denis Arh 9e17135715 Fix boot-time race condition with settings notification 2021-07-02 11:45:20 +02:00
Tomaž Jerman af0563c052 Add CSP to attachments to prevent XSS 2021.3.7 2021-06-22 09:47:21 +02:00
Tomaž Jerman 83afe8ed15 Sanitize text record values 2021-06-22 09:47:21 +02:00
Tomaž Jerman fb83872f48 Add bluemonday for XSS sanitizer 2021-06-22 09:46:03 +02:00
Tomaž Jerman 064c18095e Fix field access control for default values 2021-06-21 14:43:28 +02:00
Vivek Patel 120446966d Improves record-value manipulation
This will fix WF issue for accessing record's value via selectors & gval expressions
2021-06-21 15:24:24 +05:30
Vivek Patel b70ba4e6a4 Adds validation for corredor steps in workflow
- Adds check at workflow step level for corredorExec function
- Adds `disabled` flag for corredor related functions from `workflows/functions` api response if corredor is disabled
2021-06-14 12:28:42 +05:30
Tomaž Jerman 90e8764c44 Add tests for field-level access control 2021-06-08 14:07:50 +02:00
Tomaž Jerman 7f56c38952 Fix compose record update on modules with deleted fields 2021-06-08 11:41:21 +02:00
Vivek Patel f8a1b78b98 Fixes type casting of IDs to string in UserFilter struct 2021.3.6 2021-06-07 18:12:54 +05:30
Tomaž Jerman 2a5fab633b Revert "Fix dup records on multi-value field"
This reverts commit 5309db9a86.
2021-06-07 10:33:34 +02:00
Tomaž Jerman e59afa483f Fix module field default value validation 2021-06-01 12:49:21 +02:00
Tomaž Jerman 7ff730caf2 Rework README and CONTRIBUTING 2021-05-31 09:40:17 +02:00
Denis Arh d3cfd859e9 Fix broken federation encoder tests 2021.3.5 2021-05-25 18:42:40 +02:00
Denis Arh d0539eaf7f Fix broken record sorting test 2021-05-25 18:42:40 +02:00
Denis Arh 598fb3173e Fix index creation (add if-not-exists) & query logging 2021-05-25 18:42:40 +02:00
Tomaž Jerman c018379b04 Improve workflow error handling
- prevent the try-catch step from ending the exec session
- prevent pre-run validation checks to cycle the exec
2021-05-25 08:59:32 +02:00
Denis Arh 5309db9a86 Fix dup records on multi-value field 2021-05-25 06:14:53 +02:00