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
2024-04-03 15:41:18 +03:00
2018-10-25 15:11:03 +03:00
2024-01-16 11:43:44 +02:00
2024-04-04 12:56:17 +03:00
2024-02-06 22:40:27 +01:00
2024-01-15 18:51:00 +01:00
2024-02-15 17:09:55 +02:00
2024-01-16 11:43:44 +02:00
2024-04-04 12:56:17 +03:00
2016-12-01 11:38:15 +02:00
2022-11-10 23:48:08 +01:00
2024-04-04 12:56:17 +03:00
2023-09-18 12:51:01 +03:00
2023-05-16 17:33:26 +03:00

ThingsBoard

Join the chat at https://gitter.im/thingsboard/chat ThingsBoard Builds Server Status

ThingsBoard is an open-source IoT platform for data collection, processing, visualization, and device management.

Documentation

ThingsBoard documentation is hosted on thingsboard.io.

IoT use cases

Smart energy Smart energy

Fleet tracking Fleet tracking

Smart farming Smart farming

IoT Rule Engine IoT Rule Engine

Smart metering Smart metering

Getting Started

Collect and Visualize your IoT data in minutes by following this guide.

Support

Licenses

This project is released under Apache 2.0 License.

Languages
Java 56%
TypeScript 25.1%
HTML 9%
JavaScript 7.1%
SCSS 2.1%
Other 0.6%