3
0
Commit Graph

38 Commits

Author SHA1 Message Date
Vivek Patel 2cf27a1666 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:39:18 +05:30
Peter Grlica 34aaad7800 Refactored pipelines, errors 2021-08-26 10:36:38 +02:00
Vivek Patel e4a59a5f03 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-08-24 14:08:39 +05:30
Denis Arh 14b3f07941 Allow appending to KVV values (kvv.field[] = val) 2021-08-16 21:46:58 +02:00
Peter Grlica 767f86f01a Added match() regex matching to expr 2021-08-16 12:58:22 +02:00
Tomaž Jerman 98c16227b2 Define TypedValue comparators; Make parser init more flexible 2021-08-16 09:15:15 +02:00
Vivek Patel 9d272d5bda Fixes string expressions int param casting issue in workflow 2021-08-03 03:55:09 +05:30
Denis Arh a7e2eec9fd Improve expr types, add r/w locking 2021-07-14 10:49:32 +02:00
Denis Arh 20e05280b3 System wide RBAC changes 2021-07-08 11:42:18 +02:00
Vivek Patel 044d02bb76 Adds expr functions for KV, KVV, Vars manipulation
- Adds/Refactors methods for Set, Merge, Filter, Delete
- Renames expr/Vars.Merge to MustMerge, updates its usage
- Appends kvFunctions to parser in pkg/expr
- Update/Fixes tests and example testable
2021-05-21 06:58:52 +02:00
Denis Arh 9e2d4e9b8b Make sure vars-to-json does not crash if value is nil 2021-05-04 21:52:35 +02:00
Denis Arh 99d5f75419 Ensure CastToFloat gets untyped value 2021-04-03 08:26:17 +02:00
Tomaž Jerman 7c759ceef8 Allow Reader to cast to String 2021-04-02 14:37:31 +02:00
Tomaž Jerman 1f6a83280b Add Slice alongside Dict 2021-04-02 13:32:07 +02:00
Denis Arh daba028d7b Recheck untyped value for Dict implementation 2021-04-01 21:10:51 +02:00
Denis Arh b458746167 Prevent wf exec if wf/trigger are disabled (when not tracing) 2021-04-01 21:10:51 +02:00
Denis Arh fdf916b7f9 Rework/simplify expr.Vars handling 2021-04-01 21:10:51 +02:00
Denis Arh d49f4fbbad Additional tests & bool handling 2021-03-30 20:07:20 +02:00
Denis Arh e49f09405b Rework render vars, allow (R)Vars as input arg 2021-03-30 16:18:34 +02:00
Denis Arh 333b2f344f More improvements on expr vars & rec values 2021-03-30 15:53:13 +02:00
Denis Arh 597c18fd16 Improvments on expressions, gw tests 2021-03-30 14:58:04 +02:00
Denis Arh 723c361171 Use built-in len function for wf exec 2021-03-30 14:58:04 +02:00
Tomaž Jerman eaa6d8f75f Fix the join expr function to work with typed Arrays 2021-03-29 12:23:50 +02:00
Denis Arh 4a58d9c7cb Fixed array & type handlign for gval&expr 2021-03-27 15:24:53 +01:00
Denis Arh b428752412 More strict variable handling in assigners/converers 2021-03-25 08:15:23 +01:00
Tomaž Jerman 7e81c6bd17 Workflow tweaks
* Allow Reader for email subject,
* Remove valid ID constraint check.
2021-03-24 16:00:19 +01:00
Denis Arh 587ac403ad Properly encode ID (for JSON) 2021-03-23 22:03:07 +01:00
Tomaž Jerman dc008af2b4 Expand expr/func_time signatures to allow values and ponters 2021-03-23 10:54:27 +01:00
Denis Arh c80ffd0c0e Cleanup expr tests 2021-03-20 14:47:33 +01:00
Peter Grlica 49e5610af3 Added time, array, num and generic gval functions 2021-03-18 17:05:48 +01:00
Denis Arh 79ed77a379 Fixed typos across the codebase (can not, cannot) 2021-03-17 17:25:05 +01:00
Denis Arh 7e78867733 Implement delay & prompt steps 2021-03-12 13:12:07 +01:00
Denis Arh 1fa6c6cb9b Improve event-types <> workflow 2021-03-12 13:12:07 +01:00
Denis Arh 13b57c8d72 Automation workflow implementation 2021-03-12 13:12:07 +01:00
Tomaž Jerman ed6c4291d8 Extend pkg/expr functions 2020-12-14 12:37:44 +01:00
Denis Arh 01da39a484 Fix broken value expr tests 2020-11-30 20:31:02 +01:00
Denis Arh 791b002ed9 Support for basic expr functions (num, date, str) 2020-11-30 20:31:02 +01:00
Denis Arh 61469330f3 Add pkg/expr for unified expression handling 2020-11-30 20:31:02 +01:00