3
0
Commit Graph

728 Commits

Author SHA1 Message Date
Denis Arh
764cfd63fd Make rec-rev-searching code easier to debug 2022-08-28 12:42:38 +02:00
Denis Arh
013f25ec77 Generate fresh IDs for rec rev. models 2022-08-28 12:42:05 +02:00
Tomaž Jerman
dac927ba4a Make namespace name sortable to unbreak reporter modals 2022-08-25 12:20:45 +02:00
Denis Arh
4bb8270189 Fix DAL implementation with Envoy 2022-08-23 08:12:38 +02:00
Denis Arh
7d661e84be Fix button translations on record-list block 2022-08-21 17:35:21 +02:00
Denis Arh
fb8765ff39 Improved default-connection handlong on module reload 2022-08-21 16:41:38 +02:00
Denis Arh
818f0ccb9b Generate models for all resources
Some refactoring of CUE files
2022-08-21 15:54:03 +02:00
Denis Arh
1eff906a44 Reorganized and split (rbac) resource type codegen 2022-08-17 19:28:34 +02:00
Denis Arh
ccfb4c09bb Restructured CUE resource definitions (struct, attributes) 2022-08-17 19:12:20 +02:00
Denis Arh
554ae45ddf Various DAL connection improvements & config reorg 2022-08-15 16:57:42 +02:00
Denis Arh
b5267bcbf9 Add 'meta' to list of skiped system fields (revisions) 2022-08-12 16:50:12 +02:00
Denis Arh
cb99d2999b Add action recording for sensitive data search 2022-08-11 19:52:27 +02:00
Denis Arh
01f860f7f6 Rename record.FindSensitive fn to SearchSensitive 2022-08-11 19:50:01 +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
5892250cdf Properly convert Constraints on record filter 2022-08-09 20:52:15 +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
1ac06a374b Ignore modules with invalid connection ID 2022-08-08 13:54:44 +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
Denis Arh
8dfb72cc8d Ensure record ID is valid when fetching revisions 2022-08-03 18:00:46 +02:00
Denis Arh
4fa0e561c1 Wrap 'response' around revisions return value 2022-08-03 18:00:46 +02:00
Vivek Patel
cffe4b2c68 Fix Action logs placeholders for record
It was broken for creation of record due to misplace for action-log prop.
2022-08-03 18:32:25 +05:30
Tomaž Jerman
9c6edc7fd8 Revert record value counter change requiring module
The change breaks tests which use the older, "simpler" interface.
2022-08-02 12:57:25 +02:00
Tomaž Jerman
9e1375e99a Refactor DAL capabilities into operations and properties 2022-08-02 12:57:22 +02:00
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
Vivek Patel
d4fbc33f3d Fix Action logs placeholders for resources
Mainly, It was broken for creation of most resources due to misplace for action-log prop.
2022-08-01 22:51:08 +05:30
Denis Arh
89eefa5bc2 Use model/attribute terminology in CUE files 2022-08-01 19:01:19 +02:00
Denis Arh
353d6ad37d Unified CUE file names 2022-08-01 18:22:55 +02:00
Denis Arh
885e633ba2 Improve (cue) codegen performance 2022-08-01 18:17:31 +02:00
Denis Arh
54060f5ff8 Add user credentials management endpoints 2022-08-01 15:19:47 +02:00
Denis Arh
c9442260c5 Add support for revisions on compose records 2022-08-01 08:55:46 +02:00
Denis Arh
39bf9b75ea Deprecate ACTIONLOG_COMPOSE_RECORD_ENABLED 2022-08-01 08:55:46 +02:00
Denis Arh
04e93ede90 Cleanup compose module fields configs 2022-07-31 16:05:06 +02:00
Denis Arh
c710aa079d Reduce code & refactor Scan & Value fn 2022-07-30 16:11:06 +02:00
Denis Arh
a58eb1e052 Restructure config on compose module 2022-07-30 15:11:13 +02:00
Denis Arh
773fe7a602 Prevent error when wildcard resources are requested for RBAC trace 2022-07-28 15:01:16 +02:00
Denis Arh
98722f67eb Rename ModelFilter to ModelRef 2022-07-28 12:58:40 +02:00
Denis Arh
816e3ab041 Add cast2 package for simpler type-casting & value setting 2022-07-28 11:11:10 +02:00
Denis Arh
20cfc5b4e4 Cleanup record-value type, use Clone() 2022-07-28 11:11:10 +02:00
Denis Arh
8fa9f3b058 Remove record changing code from DAL (soft-delete) 2022-07-28 11:11:10 +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
8e5ffab785 Add missing values to record Organize filter construction
Previous version defaulted filter's module and namespace references
if not provided; the new one does not which would cause all the
records to be used.
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
cbc92dcc63 Fix module field update logic when records exist
The logic will need to be adjusted for DAL model issues, but the
current functionality is preserved with this.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
b890f50098 Improve record value setter to utilize module when possible 2022-07-27 16:53:04 +02:00