3
0

416 Commits

Author SHA1 Message Date
Tomaž Jerman
3572364ac1 Fix select value validator edgecase 2020-12-21 15:54:31 +01:00
Tomaž Jerman
ce34993b74 Round timestamps to a second accuracy
Different parts of the system (FE, API, store) may use different
standards so operations like IsStale check may fail.
2020-12-21 09:15:08 +01:00
Denis Arh
8c31bf1b86 Restructure protected routes in compose & federation 2020-12-19 08:24:32 +01:00
Denis Arh
18b11e56be Support for page navigation on records 2020-12-18 17:31:31 +01:00
Denis Arh
8fa00d04d7 Fix attachment issues on cmp&msg 2020-12-18 10:42:53 +01:00
Denis Arh
f9c1fa2680 Remove useless todos for tests 2020-12-16 09:23:12 +01:00
Tomaž Jerman
dad6be64cb Add support for legacy resource identifiers in envoy
Allow module name, chart name, page title, ... to act as identifiers.
If a value is not unique, the system fails with an error.
2020-12-14 16:24:24 +01:00
Tomaž Jerman
68cd9c218e Refactor iterator providers 2020-12-14 12:30:45 +01:00
Peter Grlica
0d88fdd139 Added rbac for federation, fixed tests, updated generated code 2020-12-13 18:53:19 +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
Tomaž Jerman
cb5793d468 Expand envoy configuration options
Better `skipIf` & `onExisting` support.
2020-12-10 18:54:31 +01:00
Denis Arh
46620d46a9 Fix record-value storing issues
Under certain conditions, values did not get removed/saved properly
2020-12-10 13:20:43 +01:00
Denis Arh
cf6f023454 Add test to cover (potential) field-perm issue
Scenario:
 - module with boolean field
 - role 1 with read-write perm on field
 - role 2 with read-only perm on field
 - role 1 record update works w/o problems
 - role 2 record update does not work when field value is set (by user w/ role1)
2020-12-08 22:06:09 +01:00
Denis Arh
cccb3ec5f8 Port types codegen to yaml.v3
v3 threats empty defs a bit differently (see changes in yaml files)
2020-12-05 07:44:49 +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
b739c5d01f Remove merge-conflict artefact 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
c19b5392c9 Fix rec. bulk operation handling 2020-11-30 20:31:02 +01:00
Denis Arh
5a64d02ea4 Use "value" for valueExpr prop for JSON encoding 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
c299a64086 Removed obsolete importer code, pkg/deinterfacer 2020-11-30 19:51:18 +01:00
Tomaž Jerman
7659652278 Remove all of the dead deprecated bits 2020-11-28 14:38:16 +01:00
Tomaž Jerman
df5ebcf24c Rework record importer with envoy 2020-11-27 18:59:25 +01:00
Denis Arh
ee2183c36f Refactoring decode/encode structure and logic 2020-11-27 11:19:15 +01:00
Tomaž Jerman
93bfa80eb0 Add base resource decoders
* yaml,
* csv.
2020-11-27 11:19:15 +01:00
Tomaž Jerman
d076dbd70f Define base Compose resources supported by envoy
* ComposeNamespace,
* ComposeModule (+ fields),
* ComposeRecord (+ values),
* RBAC permissions.
2020-11-27 11:19:15 +01:00
Denis Arh
b7de337db9 Fix sorting&paging on RDBMS store 2020-11-13 08:10:09 +01:00
Denis Arh
b82ddad83a Implement support for labels on compose resources 2020-11-06 08:32:42 +01:00
Denis Arh
fc74d44563 go vet fixes 2020-11-05 19:57:47 +01:00
Denis Arh
eca90b1fc1 Fix record update with update-denied fields
Scenario:
 - values already exist on the record
 - record is updated with users that can not update all fields
 - only values for updatable fields are provided

Access control was moved from generalValueSetValidation to procCreate/procUpdate
to allow return of record value error set.

Existing values from fields with update-deny set are copied to updating set
to ensure proper handling by RVS's Merge fn().
2020-11-05 10:39:25 +01:00
Denis Arh
92ca66cade Improve corredor auto. server error handling
Errors are now typified, node.js stack from error is accepted and converted
2020-11-05 07:57:27 +01:00
Denis Arh
111beae959 Safe errors 2020-11-04 15:13:53 +01:00
Denis Arh
ecb7f52c31 Improve error creation & handling by API 2020-11-04 14:18:33 +01:00
Denis Arh
02c2ffc195 Refactor and simplify store upgrade proc running 2020-10-22 14:05:16 +02:00
Denis Arh
31bf551621 Fix compose module tests 2020-10-12 15:22:35 +02:00
Denis Arh
b534308143 Fix pagination cursor dec/enc + finish impl 2020-10-12 15:20:55 +02:00
Denis Arh
4c45aa6d1a Replace nodemon with fswatch, improve test tasks 2020-09-30 12:29:44 +02:00
Denis Arh
b4a1331ae5 Remove namespace dbg 2020-09-18 08:13:39 +02:00
Denis Arh
7508659165 RBAC refactored (pkg renamed, init improved) 2020-09-18 07:56:58 +02:00
Denis Arh
d21cd72f7c Simplify access to system user service 2020-09-18 07:56:58 +02:00
Denis Arh
6154d36976 Fix & improve provisioning procedures 2020-09-16 17:31:51 +02:00
Denis Arh
1c2f4de28c Optimize RBAC service loading 2020-09-16 07:37:06 +02:00