9 Commits

Author SHA1 Message Date
Andrew Shvayka
c8bc0f6793
Merge pull request #10527 from thingsboard/feature/rule-node-caches-replacement
Replacement of local cache in rule nodes with cached entity service APIs
2024-05-02 16:02:06 +03:00
Oleksandra Matviienko
63df92e995 JUnit5 migration in common. Junit-platform.properties and logback-test.xml where added to java resource directories if needed.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-26 23:55:17 +02:00
Shvaika Dmytro
cad3011938
Replacement of local cache in rule nodes with cached entity service APIs. (#9552)
* added customer cache && refactored assign/unassing to/from customer nodes

* refactoring of customer action nodes & added common tests

* added tests for upgrade

* updated controller & service tests for customer api

* replaced findCustomerByTenantIdAndTitle with cacheable method

* add new line to end of ../upgrade/3.6.2/schema_update.sql file

* added cache for find user by tenant id and email & relation action nodes refactoring

* fixed synchronization issue & refactored logic & refactored node upgrade tests

* fixed testSaveUserWithSameEmail test in the UserControllerTest. Removed empty space & added exclamation mark

* updated tests for create relation node && added two tests for delete relation node

* replaced Lists with EnumSets where it was possible & replaced MethodSource with EnumSource where it was possible & added test for upgrade for both create and delete relation nodes

* updated upgrade tests & added tests for delete relation node

* refactoring

* updated create & delete relation nodes descriptions

* updated default config for delete relation node

* minor improvements for custom action nodes after self review

* added upgrade for customers with the same titles

* replaced parameterized test annotation when deleteForSingleEntity is false

* fix typo in reSaveCustomerWithNewTitle upgrade logic

* fixes after review & additional improvements

* fixed testAssignAndUnassignEntityViewToCustomer test

* updated upgrade logic & changed logic of public customers lookup

* fixed dao method & added test

* renamed method to findPublicCustomerByTenantId

* fix typo in the find public customer query

* added @Serial annotation for serialVersionUID & rollback saveAndFlush to save in UserServiceImpl

* fixes to async find or create logic

* fixed after review

* fix typo

* set Transactional annotation to findOrCreatePublicCustomer
2024-04-10 12:31:24 +03:00
Igor Kulikov
c5a72ed8df Update license header to 2024 year. 2024-01-09 10:46:16 +02:00
Igor Kulikov
cbdc4517e4 Update license header year to 2023 2023-01-31 10:43:56 +02:00
Andrii Shvaika
923dcff8e5 No more transaction cache 2022-06-22 10:31:32 +03:00
Andrii Shvaika
9f3f2985ab Redis Cache implementation 2022-05-06 19:12:41 +03:00
Igor Kulikov
da4c742872 Update license year to 2022 2022-01-17 14:07:46 +02:00
Sergey Matvienko
ea217d2a4e cache: Transaction aware cache to synchronize cache put/evict operations with ongoing Spring-managed transactions. 2021-08-11 12:45:54 +03:00