169 Commits

Author SHA1 Message Date
YevhenBondarenko
60be820915 merge with master 2024-01-15 18:51:00 +01:00
Igor Kulikov
c5a72ed8df Update license header to 2024 year. 2024-01-09 10:46:16 +02:00
Igor Kulikov
bc35df1dd7 Version set to 3.6.3-SNAPSHOT 2023-12-27 12:58:15 +02:00
YevhenBondarenko
feb44656f1 merge with master 2023-12-26 00:58:31 +01: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
4ed64439a0 Merge remote-tracking branch 'origin/hotfix/3.6.1' 2023-11-16 13:53:15 +02:00
Andrii Shvaika
a4bac1e794 Implement cache for the entity creation request 2023-11-15 15:57:58 +02:00
Andrii Shvaika
df24c363ce Version set to 3.6.2-SNAPSHOT 2023-11-13 17:07:32 +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
58f99f30b6 Merge with master 2023-10-27 15:38:21 +03: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
Andrii Shvaika
5a2bc396f2 Merge with hotfix/3.6 2023-10-25 15:43:12 +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 Shvaika
e768afc948 Merge 3.6 -> 3.7 2023-09-28 12:20:06 +03:00
Andrii Shvaika
dd4b874b5f Version set to 3.6.1-SNAPSHOT 2023-09-27 17:38:27 +03:00
Igor Kulikov
8cefca23ac Version set to 3.6.1-SNAPSHOT 2023-09-25 11:27:00 +03:00
Viacheslav Klimov
e7b259ce8e
Merge branch 'develop/3.6' into fix/snmp 2023-09-07 13:03:48 +03:00
Igor Kulikov
98c245e293 Switch to version 3.6.0 2023-09-05 18:28:15 +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
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
ViacheslavKlimov
5862b417aa Add custom topic properties configuration 2023-07-28 12:06:04 +03:00
ViacheslavKlimov
926f484230 Device events 2023-06-22 18:19:37 +03:00
YevhenBondarenko
7f9a9c7fb3 merge with develop/3.6 2023-06-05 15:58:16 +02:00
YevhenBondarenko
db6f310284 migration to spring boot 3.1 2023-06-05 15:24:47 +02:00