Vivek Patel
5e087748ab
Fix locale.ErrorMetaKey case type
...
Add method to convert string to kebab-case and apply fix to actions.gen.go.tpl for locale.ErrorMetaKey generation.
2022-10-22 15:47:21 +05:30
Vivek Patel
81d6a484a1
Fix settings password constraints validations
...
Fixes validation for constraint values, which are integer type instead of string
2022-10-21 20:55:39 +05:30
Denis Arh
a8d2fef3cc
Fix broken compose-record reference check
...
Pre DAL code ignored module ID when doing record lookup. This fix
ensures proper module ID is used (one from the module field options)
when doing lookup
2022-10-19 15:05:59 +02:00
Denis Arh
41056a1db0
Moving DAL related REST tests to test/system
2022-10-12 08:23:09 +02:00
Denis Arh
bb6f0e9082
Fix typo in tests (forbiden => forbidden)
2022-10-12 08:23:09 +02:00
Vivek Patel
df119da7a2
Fix tests for record pagination
2022-09-30 20:01:37 +05:30
Vivek Patel
6469cb1ea0
Fix data privacy request list test
...
Add dateTime sorting back to test
2022-09-30 19:37:37 +05:30
Vivek Patel
ef72ffa373
Fix total and page navigation for records
...
Introduce helper func(IteratorPaging) to count total and create page navigation for records and also fixes timezone and milliseconds fir dateTime field value for query.
2022-09-30 18:29:38 +05:30
Vivek Patel
9d46f5c234
Add duplicate detection for compose record values
...
For now only case-sensitive detection is supported, there are 2 type of duplicate detection, one is strict mode which will throw an error on record save if there is any duplicate record with matching value and non-strict mode will only show a warning and won't prevent record saving.
2022-09-21 19:24:43 +05:30
Tomaž Jerman
40bce0b2c6
Fix remaining tests
2022-09-20 12:10:37 +02:00
Denis Arh
eb41408f20
Fix dal-connection tests (add missing RBAC ops)
2022-09-19 18:36:25 +02:00
Denis Arh
fbf6c785f8
Fix broken workflow tests
2022-09-19 18:27:38 +02:00
Denis Arh
4990d52972
Fix broken dal/conn tests
2022-09-19 17:57:20 +02:00
Tomaž Jerman
d65bd241b7
Fix role unarchiving caused by updatng wrong vars
2022-09-13 10:09:18 +02:00
Vivek Patel
f0bf220666
Temporarily disable make test.all command for dev.2 release
2022-09-07 17:24:15 +05:30
Denis Arh
a32a580a28
Add support for exec-workflow step type
2022-09-01 15:27:58 +02:00
Denis Arh
554ae45ddf
Various DAL connection improvements & config reorg
2022-08-15 16:57:42 +02:00
Denis Arh
4f0d0ad6c1
Change compose record labels to meta
2022-08-11 19:33:07 +02:00
Denis Arh
6980543e15
Rename rel_module column on compose_records (from module_id)
2022-08-10 21:38:04 +02:00
Denis Arh
345eee72cb
Various DAL codebase improvements and cleanups
2022-08-10 21:38:04 +02:00
Denis Arh
1a358dd255
Fix broken system tests when updating primary conn
...
We no longer compare config changes on primary connection
Just override the values from the old one
2022-08-09 20:52:21 +02:00
Denis Arh
df97fb676b
Improve handling modules with issues
...
Allow adding incomplete (no or invalid connection) to DAL service
to avoid crashes.
2022-08-09 20:29:50 +02:00
Denis Arh
cbfb1d49bd
Refactor model ident validation
2022-08-08 13:25:32 +02:00
Denis Arh
015d8ada6e
Refactor module-model conversion
...
Remove redundant parts of config (eg partititoned flag),
refactored and cleand-up field-to-attribute conversion
2022-08-08 13:19:01 +02:00
Vivek Patel
12fd426ec7
Add validation for password while updating system settings
...
Also, adds setting actions file and updated all settings errors to translated error
2022-08-05 17:42:08 +05:30
Denis Arh
8e42876010
Return workflow session ID when executing wf
...
It also fixes missimplemented async exec.
2022-08-03 12:33:14 +02:00
Tomaž Jerman
9e1375e99a
Refactor DAL capabilities into operations and properties
2022-08-02 12:57:22 +02:00
Vivek Patel
452fd1ca9d
Add QL Functions for RDBMS drives
...
It will translate dateTime functions inside query as per the driver language.
2022-08-02 16:17:53 +05:30
Tomaž Jerman
4f46426c5f
Fix DAL CRUD tests
2022-08-02 09:21:45 +02:00
Denis Arh
c31f706e95
Fix broken tests (add rec-mod link)
2022-08-01 19:46:45 +02:00
Denis Arh
a58eb1e052
Restructure config on compose module
2022-07-30 15:11:13 +02:00
Denis Arh
f170760765
Fix RBAC rule filtering
2022-07-28 18:06:19 +02:00
Denis Arh
98722f67eb
Rename ModelFilter to ModelRef
2022-07-28 12:58:40 +02:00
Vivek Patel
fef77a7a47
Refactor rules endpoint
...
- Removes specific params
- Improves RuleSet.FilterResource to accept multiple resources
- Rework FindRules method in access-controller tpl
2022-07-27 22:43:07 +05:30
Tomaž Jerman
459589a69e
Fix broken tests due to DAL related introduction
2022-07-27 16:53:05 +02:00
Tomaž Jerman
a78c917226
Temporarily remove timestamp sorting params due to cursor issues
2022-07-27 16:53:04 +02:00
Tomaž Jerman
5391944f6e
Fix permission clone tests failing due to endpoint refactor
2022-07-27 16:53:04 +02:00
Tomaž Jerman
1ddb770f39
Fix record owner management logic and tests
...
* The service improperly checked record value errors causing
invalid owner update attempts to pass.
* Fixed invalid tests due to RBAC internal logic corrections and
missing initial record ownership.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
76b99bd0ed
Umbrella commit for generic commits
...
* Removed f.Check requirement from compose/dalutils.
* Added ref to original module when preparing target records for
DAL value setter processing (helps with properly setting Ref field).
* Updated codegen & added missing imports.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
cce11cf19d
Skip tests which can not yet be fixed due to envoy/reporter
2022-07-27 16:53:04 +02:00
Tomaž Jerman
fe27e4bf90
Temporarily remove envoy and reporter tests until they are reworked
2022-07-27 16:53:04 +02:00
Vivek Patel
b41504dbe3
Improve KV related expr types, add r/w locking
...
Also extended filter for compose record values
2022-07-27 14:00:18 +05:30
Vivek Patel
f160d391f5
Add filters to permissions for role route
...
It allows filtering for specific rules and also the rules which are applied to the resource, and not to a specific resource.
Introduces generic methods for RuleSet and FindRules method to access_control generation template.
2022-07-19 17:30:26 +05:30
Tomaž Jerman
149d75578a
Fix/improve DAL integration tests
2022-07-18 18:53:11 +02:00
Denis Arh
39046c52d0
Harden RBAC and refactor check tracking
...
- stricter rule checking when multiple roles have permissions on same
resource
- tracking (prev: evaluation) is refactored to stand out less than
previous solution
- performance optimization on certain situations (earlier fn return)
2022-07-14 11:07:10 +02:00
Denis Arh
d209ca3788
Additional integration tests for record reporter
2022-07-14 07:28:06 +02:00
Tomaž Jerman
2bddfd6af2
Add missing access control for NS dup
2022-07-04 12:56:26 +02:00
Denis Arh
bdd9318f93
Refactor and improve DAL implementation and init
...
Changes:
- Boot initialization follows standard impl
- Improved DAL connection management (adding, reloading, removing)
- Cleaner and more detailed logging
- Primary store connection is now reused when added to DAL
2022-07-01 18:13:54 +02:00
Denis Arh
ced4a26068
Fix broken es.NewStoreEncoder call
2022-06-28 16:07:30 +02:00
Tomaž Jerman
3b2710a210
Fix improper request kind type casting
2022-06-15 09:53:16 +02:00