3441 Commits

Author SHA1 Message Date
nick
32fae3a4b6 tbel: add gecodeToJson(String.class) 2023-08-09 11:33:22 +03:00
YevhenBondarenko
2427539f22 merge with develop/3.5.2 2023-08-08 01:46:52 +02: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
1a93db75e0 Improvements for Microsoft Teams notifications 2023-08-04 17:33:11 +03:00
imbeacon
8e20c6e519 Added gateway launch command 2023-08-04 15:17:05 +03:00
imbeacon
30dac22b60 Initial commit for gateway commands 2023-08-04 14:29:51 +03:00
Andrew Shvayka
173e229da1
Merge pull request #8786 from ShvaykaD/feature/filter-nodes-improvements
Filter nodes improvements && fixes for enrichment rule nodes && added TbMsgType enum and enforced use of it in corresponding places.
2023-08-04 13:57:10 +03:00
ShvaykaD
ad847ff40c changed checkType and checkTypeOneOf to isTypeOf and isTypeOneOf 2023-08-03 20:22:58 +03:00
imbeacon
fc7e1d88e6 Optimized imports 2023-08-03 15:15:36 +03:00
ViacheslavKlimov
0f13d46144 Add more tests 2023-08-03 13:54:59 +03:00
imbeacon
2dfe20e9ca Merge remote-tracking branch 'upstream/develop/3.5.2' into customer-removing-alarm-unassign 2023-08-03 10:44:52 +03:00
imbeacon
ed5b528964 Updated unassign for alarms, on user removing to be transactional 2023-08-03 10:40:50 +03:00
ShvaykaD
c2ce40cd39 added rpc sequential strategies: init commit 2023-08-02 16:05:18 +03:00
nick
698dfba952 tbel: rollback validation switch 2023-08-01 14:56:50 +03:00
ViacheslavKlimov
c087359077 Move messages to other queue on deletion; improvements 2023-08-01 13:57:32 +03:00
Vladyslav_Prykhodko
5c0fb5e9b4 Merge remote-tracking branch 'upstream/develop/3.5.2' into feature/account-notification-settings 2023-08-01 10:45:16 +03:00
Andrew Shvayka
581c02bf6b
Merge pull request #8938 from thingsboard/feature/check-connectivity-device
Added check connectivity in device
2023-07-31 18:50:02 +03:00
Andrew Shvayka
f618599d15
Merge pull request #8998 from smatvienko-tb/feature/kafka-producer-append-debug-headers
TbKafkaProducerTemplate will add analytics headers for each message on debug or trace log level
2023-07-31 17:26:01 +03:00
Andrew Shvayka
a8d0968cc3
Merge pull request #8983 from smatvienko-tb/feature/onRateLimit-TbMsgPackCallback-skipAllRateLimited
Rule engine: ack all rate limited failures
2023-07-31 17:17:36 +03:00
Vladyslav_Prykhodko
b8954da47b Merge branch from develop/3.5.2 2023-07-31 15:50:43 +03:00
Andrii Shvaika
75fd37428a Merge with master 2023-07-31 13:59:20 +03:00
YevhenBondarenko
ac2aac8aa7 refactored due to comments 2023-07-31 13:51:03 +03:00
YevhenBondarenko
948f517898 added zk restart node tests 2023-07-31 13:50:57 +03:00
YevhenBondarenko
ce9552e1a8 improvements 2023-07-31 13:50:49 +03:00
YevhenBondarenko
68149d9673 added recalculetePartitions delay for node restart 2023-07-31 13:50:41 +03:00
Andrew Shvayka
deb90d5356
Merge pull request #8775 from YevhenBondarenko/feature/recalculate-partitions-improvements
added recalculatePartitions delay for node restarting
2023-07-31 13:45:48 +03:00
YevhenBondarenko
d9c39c362e refactored due to comments 2023-07-28 14:20:33 +02:00
ViacheslavKlimov
5862b417aa Add custom topic properties configuration 2023-07-28 12:06:04 +03:00
Vladyslav_Prykhodko
2d2117e9ac Merge remote-tracking branch 'upstream/develop/3.5.2' into feature/check-connectivity-device 2023-07-28 10:11:54 +03:00
Sergey Matvienko
4f99d75e15 license:format for new classes 2023-07-27 21:38:02 +02:00
Sergey Matvienko
e75307c2be ExceptionUtil.lookupExceptionInCause refactored from recursion to a loop. Tests added 2023-07-27 21:38:02 +02:00
Sergey Matvienko
825eaf640c RuleEngineException cause added to be able to analyse cause by rate limit exceptions 2023-07-27 21:38:02 +02:00
Sergey Matvienko
859c820dc3 AbstractRateLimitException introduced in common/data for all rate limit related exceptions 2023-07-27 21:38:02 +02:00
Sergey Matvienko
dfe21e3b00 ExceptionUtil moved to the common/util package 2023-07-27 21:38:02 +02:00
Sergey Matvienko
1b565e01ce Rule engine: ack all rate limited failures (draft) 2023-07-27 21:38:02 +02:00
Sergey Matvienko
2cccd0951a TbKafkaProducerTemplate: addAnalyticHeaders optimized 2023-07-27 19:43:06 +02:00
ViacheslavKlimov
137cc18099 Auto offset reset config for Kafka 2023-07-27 19:58:31 +03:00
ViacheslavKlimov
55775f2815 Consumer group per isolated tenant's queue; remove sleeping for Kafka consumer 2023-07-27 18:33:03 +03:00
ShvaykaD
2d4fbd6833 added checkMsgType util method to TbMsg & resolved other review comments 2023-07-27 14:48:53 +03:00
Sergey Matvienko
c3e9ab5991 TbKafkaProducerTemplate will add headers for each message when log level: DEBUG - producerId and thread name; TRACE - stacktrace first 10-2=8 lines 2023-07-26 20:45:42 +02:00
imbeacon
f9a621bcfb Merge remote-tracking branch 'upstream/develop/3.5.2' into fix/removing-relations 2023-07-26 11:18:38 +03:00
YevhenBondarenko
3c6c565732 added docker coap commands and refactoring 2023-07-26 10:06:38 +02:00
ViacheslavKlimov
6db3171ffb Refactoring 2023-07-25 16:16:48 +03:00
ViacheslavKlimov
fa61783ac6 Log topics list on unsubscribe 2023-07-25 15:44:25 +03:00
ViacheslavKlimov
3b86c8c1f5 Refactor HashPartitionService.resolve(..) 2023-07-25 15:44:25 +03:00
ViacheslavKlimov
1ee3c24532 Refactor HashPartitionService.resolve(..) 2023-07-25 15:44:25 +03:00
ViacheslavKlimov
bfd8ff934f Use system queue with same name instead of Main when missing 2023-07-25 15:44:24 +03:00
ViacheslavKlimov
c1a07db64a Fix tenant profile update handling 2023-07-25 15:44:16 +03:00
ViacheslavKlimov
18ce96fd10 Ability to update isolated processing option in tenant profile 2023-07-25 15:43:34 +03:00
Vladyslav_Prykhodko
d54320bc79 Merge remote-tracking branch 'upstream/develop/3.5.2' into feature/microsoft-teams-notifications 2023-07-25 12:40:09 +03:00