142 Commits

Author SHA1 Message Date
IrynaMatveieva
a652b31d7f implementation processing notification 2025-01-24 15:41:00 +02:00
IrynaMatveieva
5641626443 added processNotification impl 2025-01-24 10:53:13 +02:00
Andrii Shvaika
4c71b9d5f6 WIP: Cluster mode implementation 2025-01-23 13:56:44 +02:00
IrynaMatveieva
2080b439a7 added entity added/deleted events handling 2024-11-28 11:28:51 +02:00
IrynaMatveieva
31103e90e3 added implementation to handle update entity profiles events 2024-11-22 17:17:59 +02:00
IrynaMatveieva
3072861a8f implemented methods for calculated field update/delete in cluster service 2024-11-13 17:42:55 +02:00
Andrii Landiak
5602807dbe
Introduce Edge queue to handle edge notification messages 2024-08-29 12:51:20 +03:00
Andrii Landiak
c6ee0bff19
Add edgeIdsCache to decrease number of calls to db for findRelatedEdgeByEntityId 2024-08-27 12:41:39 +03:00
IrynaMatveieva
74ac5a949f added rule engine controller and send rest api call reply node 2024-05-14 10:05:41 +03:00
ViacheslavKlimov
55dc23b9ff Merge with hotfix/3.6.2 2024-02-09 11:38:40 +02:00
ViacheslavKlimov
a571153b7c Single update message for multiple queues 2024-01-24 18:08:01 +02:00
Andrii Shvaika
a3471c367a Merge PR#9968 2024-01-16 11:35:31 +02:00
Igor Kulikov
c5a72ed8df Update license header to 2024 year. 2024-01-09 10:46:16 +02:00
Volodymyr Babak
d329df0323 Merge remote-tracking branch 'upstream/master' into feature/broadcast-logs-improvement 2024-01-02 19:37:39 +02:00
dashevchenko
ba2e877a08 refactoring: moved proto files and converter classes to separate module - proto 2023-11-30 13:06:44 +02:00
Andrew Shvayka
db3e5ba105
Merge pull request #9616 from YevhenBondarenko/fix/prod-2445
Fixed assign device to tenant
2023-11-29 16:40:42 +02:00
YevhenBondarenko
80fc2d9b86 improvements 2023-11-16 15:06:00 +01:00
Andrii Shvaika
a4bac1e794 Implement cache for the entity creation request 2023-11-15 15:57:58 +02:00
YevhenBondarenko
316a09854c implemented device actor delete msg and fixed assign to tenant 2023-11-12 22:15:57 +01:00
Volodymyr Babak
6358b0be90 Admin settings update. @author AndriiLandiak 2023-11-09 18:16:40 +02:00
Andrii Shvaika
c7874aa7e1 Merge branch 'hotfix/3.6' 2023-11-01 12:52:39 +02:00
Andrii Shvaika
268b9cc468 Reserve failed event 2023-11-01 12:35:20 +02:00
Andrii Shvaika
659ebc0340 Reserve deactivated event 2023-11-01 12:32:20 +02:00
Andrii Shvaika
d2cda21d25 Merge hotfix branch 2023-11-01 10:24:37 +02:00
Andrew Shvayka
3ec2e0956f
Merge pull request #9185 from AndriiLandiak/feature/edge-sync-improvement
Edge Synchronization improvement using EdgeId
2023-10-31 17:54:28 +02:00
Andrii Landiak
ddfac584a0 Make componentLifecycle bytes deprecated. Cleaning code with a single line for TbClusterService 2023-10-31 09:58:41 +02:00
dashevchenko
86f8965eab fixed thingsboard.yml 2023-10-30 12:21:30 +02:00
dashevchenko
62703d3583 merged with upstream 2023-10-30 12:19:24 +02:00
Andrii Shvaika
b4fa0b81ab Deprecated some old structures 2023-10-27 15:36:59 +03:00
Andrii Shvaika
e20523b502 Attribute scope check improvement 2023-10-26 19:02:56 +03:00
Andrii Shvaika
d78bb26a73 Merge with hotfix/3.6 2023-10-26 17:11:29 +03:00
Andrii Shvaika
694b6bf851 Refactoring: new data structures and message flow
Local Subscription Service refactoring

Refactoring of the proto structures

Bug fixing after refactoring

Minor improvements and bug fixes

Improvements to avoid additional DB calls

Bug fixes after refactoring

Cluster mode improvements
2023-10-26 17:07:16 +03:00
Andrii Landiak
be4c408324 Merge remote-tracking branch 'upstream/hotfix/3.6' into feature/core-proto-subtype-implementation 2023-10-25 16:30:43 +03:00
Andrew Shvayka
5c404649f3
Merge pull request #9453 from thingsboard/re-consumer-service-refactoring
Rule Engine consumer service refactoring
2023-10-24 13:24:19 +03:00
Andrii Shvaika
b2098fc112 Fix compatibility between CE and PE 2023-10-24 12:30:17 +03:00
Andrii Shvaika
0571f7e6dd Fix compatibility between CE and PE 2023-10-24 12:24:01 +03:00
ViacheslavKlimov
60900a0b96 Merge branch 'hotfix/3.6' into re-consumer-service-refactoring
# Conflicts:
#	application/src/main/java/org/thingsboard/server/service/queue/DefaultTbRuleEngineConsumerService.java
2023-10-23 16:41:38 +03:00
Andrii Landiak
f01cbe0e36 Refactoring ToCoreNotificationMsg: implement replacement for raw bytes messages 2023-10-23 10:10:02 +03:00
ViacheslavKlimov
cf951ee2b2 Multiple improvements for Rule Engine consumer services 2023-10-19 11:09:34 +03:00
Sergey Matvienko
92a2a90a0b ComponentLifecycleMsgProto implemented as replacement of raw byte encoding 2023-10-18 18:06:40 +02:00
Volodymyr Babak
38dabc7f38 Merge remote-tracking branch 'upstream/master' into feature/edge-sync-improvement 2023-10-12 15:16:40 +03:00
Andrii Landiak
61c9eb977f Merge remote-tracking branch 'upstream/develop/3.6' into feature/broadcast-logs-improvement 2023-09-13 11:57:17 +03:00
Andrii Landiak
e2520ae0f5 Provide edgeId for EdgeEventSourcingListener to handle cloud entities updated on Edge and process to other Edges 2023-09-05 09:38:48 +03:00
ViacheslavKlimov
2109d36f7e Merge branch 'develop/3.5.2' into fix/snmp
# Conflicts:
#	common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/DefaultTransportService.java
2023-08-25 12:37:47 +03:00
Andrii Landiak
85361c609a EntityStateListener: process entity broadcasting service to handle all event 2023-08-21 15:32:19 +03:00
Andrii Shvaika
ca6095402f Merge with master 2023-08-17 12:19:02 +03:00
ViacheslavKlimov
6751820e0a Dedicated Rule Engines for tenant profile 2023-08-14 12:57:53 +03:00
ViacheslavKlimov
f32e2f6fde Refactoring after review 2023-08-10 12:03:15 +03:00
Andrii Landiak
8faa1410b6
Edge crud notification: implement event publisher strategy to process pubsub model for detecting changes in entities
* Improve edge notification for entities' CRUD operations. Use service layer to notify instead of TbService

* Improve queue service, delete unused class for edge event updates

* Improve alarm delete and add handle fox delete dao event notification

* Refactoring: provide notification for relations and alarms. Improve logic and bad edge event type using

* Add entity type to SaveEvent to process correct message type to edge

* Improve relation service publish event

* Introduce EdgeEventSourcing service instead of saving edge events on controller/service layers. Part #2

* Improved stability of device edge test

* Push credential updated event only in case update

* Add tenantId to saveUser signature to send correct notification for listener

* Fix tests to send correct notification msg to edge

* Fix tests with correct action type

* Add delete msg to edge for customer

* Refactor ActionEntityEvent to use lombok builder

* Remove unnecessary comments

* Added edgeSynchronizationManager into BaseAlarmProcessor and BaseRelationProcessor

* Fixed license header

* Remove notification to edge from Version Control Service

* Fixed alarm del processing - find related edges inside edge processor

* Fix controller test for publish event to listener if entity was deleted

* Added check for edge imitator messages during login as tenant admin

* Refactoring: Added filtering of relation on EdgeEventSourcingListener

* Refactored to be in sync with PE

* Refactored edge test to be in sync with PE edge test changes

* EdgeControllerTest - moved await block into separate method to reuse it

* Fixed EdgeControllerTest

* Fixed testAssignEdgeToCustomerFromDifferentTenant test

* testSyncEdge - make stable

* Refacroting - update utils method name to pop* in EdgeControllerTest

* testSyncEdge - fixed order and nubmer of edge events

* testGetEdgeEvents - check by pop items, and not by index to improve stability on slow machines

* testGetEdgeEvents - added check that list is empty

* Removed test debug output

* EntityServiceTest - Fixed compilation error after merge

* Improve service layer event publisher to process each notification and validate in listener

* Improve BaseAlarmService to send notification to listener

* Fix asset-device notification action to send delete to all edges

* Delete unnecessary usage of sendMsgToEdge

* Improve processEntityNotification to be in sync with changed needed for PE

* Pull request review - minor refactoring

* Fix tests after review-refactoring

* Refactor tests to be in sync with PE

* Fixed repeated update - added check for old_edge_event table existance before migration

* DeviceEdgeProcessor - do edgeSynchronizationManager as soon as possible to avoid unnecessary downlinks

* BaseEdgeProcessor - refactoring and remove duplicate methods. Introduce EdgeEventType.isAllEdgesRelated

* Organize imports

* Improve Edge test: add sync completed message to await

* Minor refactoring for EdgeProcessor notification: asset and device

* EdgeEventSourcingListener - updated logging to avoid null pointer exception

* BaseAlarmService - added check for alarm to avoid NPE. EdgeEventSourcingListener - added try/catch blocks

* EdgeEventSourcingListener - fixed error message log level

---------

Co-authored-by: Volodymyr Babak <volodymyr.babak@gmail.com>
2023-08-07 13:21:02 +03:00
ViacheslavKlimov
c087359077 Move messages to other queue on deletion; improvements 2023-08-01 13:57:32 +03:00