3
0
Commit Graph

301 Commits

Author SHA1 Message Date
Tomaž Jerman
8eb062293f Refactor pkg/dal implementation
* Reworked errors to not brick the system (things keep track of
  issues.
* Reworked internal state management -- keeping invalid things
  present, cleanning up the code, utilizing issues.
* Cleanup/improve error messages
2022-06-14 12:06:13 +02:00
Tomaž Jerman
7bac115ceb Gracefully handle empty iterator close
Prevent nil panic.
2022-06-14 12:06:13 +02:00
Tomaž Jerman
d7480c8daf Fix improper data truncate expr construction 2022-06-14 12:06:13 +02:00
Tomaž Jerman
e05abe960d Add missing module filter to module field search 2022-06-14 13:17:44 +05:30
Vivek Patel
7cdf51adc4 Add data privacy request route and implementation
- Introduces new role for data-privacy-officer(Role allows user to manage data privacy requests)
- along with a new system resource for data privacy requests and its access control
- Routes as per access control to create data privacy request, list request and filter it based on their kind and status, update data privacy request status, and create/list comments on data privacy request
2022-06-14 13:17:44 +05:30
Tomaž Jerman
62e43f19d3 Add base DAL crud integration tests 2022-05-31 16:53:01 +02:00
Tomaž Jerman
4517d9b06d Tweak dal connection location for easier FE work
Default it to the empty geolocation JSON.
2022-05-30 15:59:28 +02:00
Tomaž Jerman
a70087ace8 Refactor primary DAL connection to be preserved in DB 2022-05-30 15:43:03 +02:00
Tomaž Jerman
a2606ea58d Mark additional Compose resource fields as sortable 2022-05-30 10:57:27 +02:00
Tomaž Jerman
35469c4749 Tweak DAL setup to prevent the server freezing
Errors are now logged and they don't kill the setup process.
This will be improved.
2022-05-26 18:13:54 +02:00
Tomaž Jerman
94fbe4bd44 Improve DAL sensitivity level
* Integrate with pkg/dal package
* Additional validation/constraints
2022-05-26 13:24:16 +02:00
Tomaž Jerman
ac07f133b5 Expand DAL REST API structure and exposed resources
* Cleanup DAL connection REST endpoints, remove primary connection
  endpoint.
* Make connection search endpoint return federation nodes and
  primary connection along user-defined DAL connections
* Expose DAL connection drivers
* Prepare DAL sensitivity level resource
2022-05-25 14:10:52 +02:00
Denis Arh
17406362dd Rename Connection to DalConnection 2022-05-24 14:29:22 +02:00
Denis Arh
5d172c9268 Remove suspended_at from connection unique index for handle 2022-05-23 20:33:17 +02:00
Denis Arh
b6adec8a9c Fix Role filter, add mising name attribute 2022-05-23 20:33:17 +02:00
Denis Arh
040ad02e75 Refactor and fix DAL tests
DAL tests are now moved to /tests/dal
2022-05-22 19:07:44 +02:00
Denis Arh
53b8c4951d Siletly ignore missing deleted-at state constraint.
A workaround until we can construct filter to dinamicaly
handle deleted-at state constrants (if attribute is present or not).
2022-05-22 17:39:32 +02:00
Tomaž Jerman
b85f16a368 Add slight structure rename, add supporting services
* Add system connection CRUD & service
* Simplify compose type definitions
2022-05-20 15:37:33 +02:00
Tomaž Jerman
cda3c80c74 Connect the remaining record svc CRUD operations to DAL 2022-05-20 15:37:33 +02:00
Tomaž Jerman
81dda274eb DAL service refactor & RDBMS interface tweak
* Remove Compose service related bits out of the DAL service
* Minor DB connectivity tweaks and include capabilities
* Add values column to the compose_record table
* Compose types tweaks
2022-05-20 15:37:33 +02:00
Tomaž Jerman
cb37b7beb7 Add values JSON column to compose_record table def 2022-05-20 15:37:33 +02:00
Tomaž Jerman
d255d77e54 Add missing rel_module to module field filter proc 2022-05-20 15:37:33 +02:00
Denis Arh
671a51f9f7 Refactor and renamed CRS implementation to DAL 2022-05-20 15:37:33 +02:00
Denis Arh
876e254f5f Refactor filters, add filtrable flag on data.Attribute 2022-05-20 15:37:33 +02:00
Denis Arh
c1796529eb Refactor types, add support for sortable 2022-05-20 15:37:33 +02:00
Denis Arh
31f21dace0 CRS Sorting, pagination & cleanup 2022-05-20 15:37:33 +02:00
Tomaž Jerman
1d2e928fae Connect external and internal CRS commponents 2022-05-20 15:37:33 +02:00
Denis Arh
91fc2101e1 Replace pkg/ql with pkg/qlng 2022-05-20 15:37:33 +02:00
Denis Arh
a109335c08 Searching & filtering support in CRS 2022-05-20 15:37:33 +02:00
Denis Arh
2d06cf1cf9 Initial CRS implementation for RDBMS 2022-05-20 15:37:33 +02:00
Peter Grlica
919532b820 Fixed queue and route search in admin 2022-05-19 11:19:18 +02:00
Denis Arh
47cdee0125 Refactor store migration/upgrade proc 2022-04-26 03:03:47 +02:00
Denis Arh
1c319b7891 Cleanup RDBMS code, fix metrics queries 2022-04-24 09:51:15 +02:00
Denis Arh
3e3c4560fb Pass *Store to custom RDBMS filters for more flexibility 2022-04-24 09:18:35 +02:00
Denis Arh
0dc3248f74 Make all (goqu) sql statements prepared 2022-04-24 09:17:35 +02:00
Denis Arh
ac35d569a3 Regenerated code after resource def. fix 2022-04-24 07:36:17 +02:00
Denis Arh
fc8589efaa Store config cleanup 2022-04-23 16:34:07 +02:00
Denis Arh
8f1a953697 Fix api-gw store tests, scanners & filters 2022-04-23 16:34:07 +02:00
Denis Arh
20ba475b2d Refactored base test functions for store 2022-04-23 16:34:06 +02:00
Denis Arh
a12ddd3a21 Ported remaining filters & funcs for apps, pags & res-tr 2022-04-23 16:34:06 +02:00
Denis Arh
dc325b97e1 Fix paging on store search 2022-04-23 16:34:06 +02:00
Denis Arh
773d64636f Refactored store codegen, replace squirrel with goqu 2022-04-23 16:34:04 +02:00
Peter Grlica
f41513a956 Apigw store tests 2022-03-30 12:17:30 +02:00
Tomaž Jerman
c64a98e36c Fix SQLite date formatting
* Add missing mappings,
* add validation for supported substitutions.
2022-03-22 14:47:26 +01:00
Denis Arh
0534096ad2 Fix date formatting in query 2022-03-22 14:47:12 +01:00
Peter Grlica
6e2e5506eb Removed debugging info from sql functions 2022-03-21 15:28:01 +01:00
Denis Arh
046855cb30 Fix date/time functions in record queries 2022-03-18 20:38:34 +01:00
Vivek Patel
b6ff0f9210 Fix discovery feed routes for deleted resources
Also adds lock discovery service to prevent race condition in InitResourceActivityLog
2022-03-16 15:17:46 +05:30
Denis Arh
640a90c20c Improve temporal value filtering 2022-03-15 06:43:54 +01:00
Vivek Patel
84f918a1d7 Add meta column to resource_activity_log table
Also adds resourceID filter in discovery resource routes
2022-03-07 19:26:47 +05:30