Denis Arh
adee67f6b3
Optimize expr parser loading
2022-04-15 18:14:58 +02:00
Peter Grlica
5b40f78756
Time transform expression function accepts strings also
2022-04-13 14:07:03 +02:00
Denis Arh
c32687e061
Better handling of unresolved (type any) values
2022-02-25 16:13:39 +01:00
Vivek Patel
ef904e0cd3
Extend set/omit expr function
...
It updates 1st parameter of set expr function from merger type to interface, so It will accept constant values, also extend set/omit usage for ComposeRecordValues.
2022-02-18 00:22:21 +05:30
Peter Grlica
c8946e5e76
Fix BufferedReader, updated tests
2022-02-17 15:00:16 +01:00
Peter Grlica
e822ad7c06
Fixed read request body, added read request body wf function, added more tests
2022-02-17 15:00:16 +01:00
Tomaž Jerman
78cb155be3
Fix count expr function when typed values are used
2022-02-14 13:40:06 +01:00
Vivek Patel
760aec1c18
Update argument type of set expr function
...
It changes 3rd argument type os set expr function from TypedValue to interface, since GvalParser parses argument to native types before evaluating the expression.
2022-02-07 09:21:31 +01:00
Vivek Patel
f893e8834a
Add expr function for sorting an array
...
It allows ascending/descending sorting along with sorting of native and non-native types
2022-01-18 21:50:18 +01:00
Peter Grlica
86deaea911
Added find expr function, support for find, has of Vars
2021-12-23 14:43:37 +01:00
Peter Grlica
3473a26793
Added int caster to gval functions
2021-12-08 10:21:50 +01:00
Peter Grlica
d5001341ad
Added unix strftime support to gval functions
2021-12-08 10:21:50 +01:00
Peter Grlica
351a9b6c1c
Added base64 encoder to expressions
2021-11-02 18:40:51 +01:00
Peter Grlica
6142371a87
Added Bytes type, fixed locale regen
2021-10-19 08:56:31 +02:00
Tomaž Jerman
d388cf2f7f
Add a temporary exception to HTTP request variable encoding
2021-10-11 15:49:50 +02:00
Tomaž Jerman
873b809094
Make the expr/count function a bit more robust with typed values
2021-10-08 12:27:24 +02:00
Tomaž Jerman
2def92d41f
Tweak expr record value selection and bool casting
...
* properly handle casting of false values (empty string)
* add support for record.values.xyz expressions where values is not set
2021-10-01 12:40:23 +02:00
Tomaž Jerman
e7fb1e3e07
Tweak typed value Array casting; add missing selected prop
2021-09-27 10:42:35 +02:00
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