3
0
Commit Graph

38 Commits

Author SHA1 Message Date
Vivek Patel
8015c39e96 Fixes record field validation translations 2022-03-22 19:29:59 +05:30
Tomaž Jerman
d95eec9973 Make resource translation sanitization looser
Reuse record value configuration to allow rich text from
content page blocks.
2022-03-14 15:26:54 +01:00
Denis Arh
edbbf2f01b Fix bool/false value sanitization
Boolean value sanitization MUST return empty string for false boolean
value to ensure consisten behaviour when empty or false value for field
is send back and that field is read-only (via RBAC).
2021-11-21 18:07:00 +01:00
Peter Grlica
da02e9d9b1 Encode stripped html special chars 2021-10-01 10:08:58 +02:00
Denis Arh
20e05280b3 System wide RBAC changes 2021-07-08 11:42:18 +02:00
Tomaž Jerman
ee850124f6 Sanitize text record values 2021-06-22 09:39:26 +02:00
Denis Arh
28e1774cd2 Rework/cleanup log stacktrace level, add LOG_STACKTRACE_LEVEL to control it 2021-05-21 06:58:41 +02:00
Tomaž Jerman
d70916705d Post testing Envoy tweaks
* ComposeRecord encoding with reference to self,
* improved ComposeRecord reference handling,
* tweaked Select ComposeModuleField validation.
2021-04-06 23:28:08 +02:00
Denis Arh
d3c4691faa Fix datetime field type value manipulation 2021-03-23 20:41:35 +01:00
Tomaž Jerman
cfb0822858 Fix record import field mapping & validation
* Allow undefined record ref validator fn
* Remove field mapping fallback if mapping is provided
2021-03-19 08:48:58 +01:00
Tomaž Jerman
e8451fa855 Tweak value validators to not require checker functions 2021-02-24 15:24:39 +01:00
Denis Arh
cd1f25ab68 Keep ref to module on compose record 2021-02-03 12:43:22 +01:00
Tomaž Jerman
3572364ac1 Fix select value validator edgecase 2020-12-21 15:54:31 +01:00
Denis Arh
da7c4d0174 Fix option validation tests 2020-12-11 08:30:14 +01:00
Denis Arh
22061063c9 Fix select field option list value type conversion 2020-12-10 20:14:36 +01:00
Denis Arh
8296e48f89 Prevent exec of value vldt/san/fmt on val. expr fields 2020-11-30 20:31:02 +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
Denis Arh
112a72410c Implement expressions storage on module fields 2020-11-30 20:31:02 +01:00
Denis Arh
784f61cc27 Expression error logging 2020-11-30 20:31:02 +01:00
Denis Arh
3d2a3130f6 Implement value validators on fields 2020-11-30 20:31:02 +01:00
Denis Arh
d2142d6448 Implement value formatters on fields 2020-11-30 20:31:02 +01:00
Denis Arh
cf7b31cbc0 Implement value sanitizers on fields 2020-11-30 20:31:02 +01:00
Denis Arh
dcd3beeced Implement value expressions on fields 2020-11-30 20:31:02 +01:00
Denis Arh
ecb7f52c31 Improve error creation & handling by API 2020-11-04 14:18:33 +01:00
Denis Arh
4cef8eecd4 Tidy up id.Next() and time.Now() use 2020-09-16 07:37:06 +02:00
Denis Arh
24f8457d71 Rename Storable interface to Storer
See https://golang.org/doc/effective_go.html#interface-names
2020-09-09 08:40:50 +02:00
Denis Arh
e8049fe7aa Pass ctx+store to validators, refactor record (script) triggering 2020-08-27 23:21:14 +02:00
Jože Fortun
dec88dcd98 Fix number sanitizer bug 2020-07-17 13:37:11 +02:00
Denis Arh
df6909286a Improve number sanitization (precision) 2020-06-26 13:14:11 +02:00
Tomaž Jerman
ce9c997584 Respect Number field's specified precision 2020-06-26 13:14:10 +02:00
Denis Arh
526a76dd71 Add output formatter for record values 2020-03-26 20:21:13 +01:00
Denis Arh
ed445d120c Sanitization & validation refactoring (dates, refs) 2020-03-11 19:45:33 +01:00
Denis Arh
f4ce3bbbe5 Fix problems with multi-value set/del 2020-03-10 11:06:21 +01:00
Denis Arh
efb82f721d Remove obsolete automation files & references to it 2020-02-26 08:32:17 +01:00
Denis Arh
79047e9d39 Add value validators & sanitizers for all field kinds 2020-02-25 17:25:55 +01:00
Denis Arh
7ce5a13bca Refactor and improve record value sanitization & validation 2020-02-22 06:53:01 +01:00