Vivek Patel
df119da7a2
Fix tests for record pagination
2022-09-30 20:01: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
Denis Arh
4f0d0ad6c1
Change compose record labels to meta
2022-08-11 19:33:07 +02:00
Denis Arh
345eee72cb
Various DAL codebase improvements and cleanups
2022-08-10 21:38:04 +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
Tomaž Jerman
9e1375e99a
Refactor DAL capabilities into operations and properties
2022-08-02 12:57:22 +02:00
Denis Arh
c31f706e95
Fix broken tests (add rec-mod link)
2022-08-01 19:46:45 +02:00
Denis Arh
98722f67eb
Rename ModelFilter to ModelRef
2022-07-28 12:58:40 +02:00
Tomaž Jerman
459589a69e
Fix broken tests due to DAL related introduction
2022-07-27 16:53:05 +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
cce11cf19d
Skip tests which can not yet be fixed due to envoy/reporter
2022-07-27 16:53:04 +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
ced4a26068
Fix broken es.NewStoreEncoder call
2022-06-28 16:07:30 +02:00
Tomaž Jerman
d04a08c82a
Add missing module field name validation
2022-04-26 03:04:03 +02:00
Denis Arh
773d64636f
Refactored store codegen, replace squirrel with goqu
2022-04-23 16:34:04 +02:00
Vivek Patel
195c2bb13e
Fix mimeType detection for CSV file
2022-04-20 11:30:04 +02:00
Vivek Patel
8015c39e96
Fixes record field validation translations
2022-03-22 19:29:59 +05:30
Tomaž Jerman
8e679bf97c
Improve namespace export
...
* Add RBAC rules
* add resource translations
* slight refactor
2022-02-25 16:48:25 +01:00
Denis Arh
6f19f00b29
Improve attachment uploading & constraints
2022-02-25 08:35:50 +01:00
Denis Arh
b478b37775
Add support for page config
2022-02-10 13:55:54 +01:00
Denis Arh
6c3bef0750
Refactor token-issuer (ex-jwt) to be more robust and configurable
2022-01-21 15:31:10 +01:00
Tomaž Jerman
2c873d269f
Add integration tests for namespace import/export
2022-01-18 21:50:19 +01:00
Denis Arh
59ec77e204
Refactor JWT implementation
2022-01-18 21:50:18 +01:00
Denis Arh
3ffa0ef8be
Fixing codebase after JWT lib switch
2022-01-11 15:35:05 +01:00
Denis Arh
60020f8510
Upgrade go-chi&co
2022-01-11 10:53:49 +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
Tomaž Jerman
aced989ae6
Fix default record module field value validation setup
2021-11-15 12:45:24 +01:00
Denis Arh
20757e58fa
Disallow use of reserved names for module fields
...
List of reserved names:
- recordID
- ownedBy
- createdBy
- createdAt
- updatedBy
- updatedAt
- deletedBy
- deletedAt
2021-10-21 13:20:50 +02:00
Denis Arh
832a4557c5
Return default language when there are no headers
...
This change also affects test setup: we need to load locale service
without any languages/translations to avoid test flakines
2021-10-07 15:24:59 +02:00
Tomaž Jerman
43fe13a128
Add integration tests for record ctx roles
2021-10-01 10:08:58 +02:00
Vivek Patel
b342ec91d8
Fixes token generation in integration test
2021-10-01 10:08:58 +02:00
Vivek Patel
a9c762aacc
Fix integration tests
...
- Extends helper for integration test with token generation
2021-09-24 19:24:00 +05:30
Tomaž Jerman
f7922d9736
Add support for namespace clone, export, import
2021-09-23 13:05:08 +02:00
Denis Arh
92f225654c
Fix access token handling in integration test
2021-09-22 21:23:42 +02:00
Denis Arh
9e87b43b33
Enforce mode & level for debug logger, cleanup test logging init
2021-09-02 15:14:08 +02:00
Denis Arh
af09848dd8
Fix tests (use translation keys)
2021-08-23 19:10:21 +02:00
Tomaž Jerman
a2b964c53e
Remove AC from ComposeRecord import
2021-07-15 14:29:30 +02:00
Denis Arh
92d2de8639
Add *.search RBAC ops check
2021-07-12 08:58:24 +02:00
Denis Arh
20e05280b3
System wide RBAC changes
2021-07-08 11:42:18 +02:00
Denis Arh
b923953ca5
Removing superuser logic
2021-07-08 11:24:12 +02:00
Denis Arh
6a6f74d4a6
Refactored resource/role logic
2021-07-08 11:22:11 +02:00
Vivek Patel
afba9a6364
Fixes attachment integration test
2021-07-04 20:00:03 +05:30
Vivek Patel
537791389e
Adds integration tests for compose, system and automation
2021-07-02 17:57:51 +05:30
Tomaž Jerman
ee850124f6
Sanitize text record values
2021-06-22 09:39:26 +02:00
Tomaž Jerman
02c6345e8e
Add tests for field-level access control
2021-06-08 14:16:22 +02:00
Tomaž Jerman
90cb471481
Fix compose record update on modules with deleted fields
2021-06-08 11:45:50 +02:00
Tomaž Jerman
a429e1c71c
Fix module field default value validation
2021-06-01 12:49:54 +02:00
Tomaž Jerman
53cf96848a
Tweak ComposeRecord exporting
...
* Fix pagination cursors
* Use service functions for AC
* Add tests
2021-05-10 10:53:13 +02:00