3
0
Commit Graph

1069 Commits

Author SHA1 Message Date
Tomaž Jerman
40dbbae730 Add an internalFilter wrapping struct for filter.Filter
The struct simplifies filter manipulation when performing
analysis and optimization.
2022-09-01 16:55:20 +02:00
Tomaž Jerman
61051e998e Define tester & evaluator interfaces for asserting/computing attrs 2022-09-01 16:55:20 +02:00
Tomaž Jerman
985c063d89 Expand pkg/filter for easier paging cursor construction/use
* Add a cursor method to return an ql.ASTNode representation.
* Add a package function to construct a cursor from an arbitrary
  value input.
2022-09-01 16:55:20 +02:00
Tomaž Jerman
689be25a89 Cover ASTNode.String() nil ptr edgecase 2022-09-01 16:55:20 +02:00
Denis Arh
5d45846fdd Prevent panic in locale/LocalizedList fn 2022-08-29 07:39:25 +02:00
Denis Arh
258068bdfb Improve model-by-ref handling 2022-08-28 12:41:06 +02:00
Denis Arh
4bb8270189 Fix DAL implementation with Envoy 2022-08-23 08:12:38 +02:00
Tomaž Jerman
6799d3f8de Fix global value store URL construction with custom paths 2022-08-22 15:59:49 +02:00
Peter Grlica
91252ac93d Fixed apigw payload processer invalid function registration 2022-08-22 14:41:59 +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
554ae45ddf Various DAL connection improvements & config reorg 2022-08-15 16:57:42 +02:00
Denis Arh
ff69698027 Properly implement model cache management on DAL RDMBS 2022-08-12 16:50:12 +02:00
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
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
8ec05a032c Optimize hostname detection
When corteza is running inside docker container
HOSTNAME env var is set to container ID and this effectively
misconfigures URLs and domain names.

HOSTNAME and HOST are now removed and default hostname is now
'localhost' (no longer 'local.cortezaproject.org')
2022-08-04 15:41:35 +02:00
Vivek Patel
75b7d78eac Fix SMTP values in settings on server restart
It addresses issue with SMTP_* setting value, which were overwritten by values from env on server restart and also, removed default value of SMTP_HOST and SMTP_PORT, which were also causing the same issue.
2022-08-04 18:06:29 +05:30
Denis Arh
609bb5fe00 Rename json tag for operation property 2022-08-03 18:00:46 +02:00
Denis Arh
4faed45a98 Fix Join-Gateway step scope corruption 2022-08-03 12:34:15 +02:00
Denis Arh
14026ec47e Workflow sessions can be canceled via API 2022-08-03 12:33:14 +02:00
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
bba02ec9df Implement base valuestore for env variables
* Base facility to store generic values,
* integrate with templates,
* integrate with workflows.
2022-08-02 13:13:28 +02:00
Tomaž Jerman
9e1375e99a Refactor DAL capabilities into operations and properties 2022-08-02 12:57:22 +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
508dddd304 Implement generic package for revisions 2022-07-31 16:29:28 +02:00
Denis Arh
04e93ede90 Cleanup compose module fields configs 2022-07-31 16:05:06 +02:00
Denis Arh
0ae4311003 Add generic filter build for filter.Filter 2022-07-31 11:50:31 +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
7d91b4eaaf Improve error message when database is misconfigured 2022-07-28 19:57:28 +02:00
Denis Arh
020b2c75b4 Moved pkg/decoder under fed/service/decoder 2022-07-28 19:44:20 +02:00
Denis Arh
a59f1dd361 Remove wrapping function from scheduler's watch() 2022-07-28 19:41:11 +02:00
Denis Arh
f170760765 Fix RBAC rule filtering 2022-07-28 18:06:19 +02:00
Denis Arh
05bdf6a1d4 Handle RBAC trace req on wildcard resource with contextual roles 2022-07-28 15:55:06 +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
34c767127f Fix DAL terminology (remove "record") 2022-07-28 14:16:01 +02:00
Denis Arh
55b4f4ece7 Remove wrapError utility func 2022-07-28 13:02:15 +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
f725624697 Move DAL iterator interface and add IteratorEncodeJSON 2022-07-28 11:04:56 +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
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
978c538748 Make DAL Purge method not remove the primary store since its invalid 2022-07-27 16:53:04 +02:00
Tomaž Jerman
db4bdbe4ba Make DAL sensitivity level removal graceful
It does not error out if it does not exist like with other
resources.
This makes it more consistent and easier to work with in tests.
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