5676 Commits

Author SHA1 Message Date
Igor Kulikov
92b1cafd12 Merge branch 'develop/3.5.2' into feature/basic-widget-config 2023-08-09 14:59:18 +03:00
Igor Kulikov
ee5bc97330 UI: Minor improvements 2023-08-09 13:07:16 +03:00
Igor Kulikov
71fe11d54d UI: Fix value cards default config. 2023-08-08 19:08:40 +03:00
Igor Kulikov
a1fb657b0c UI: Introduce timewindow style. Ability to embed widget title panel into widget template. Add pattern support for widget title, etc. 2023-08-08 18:54:07 +03:00
Andrew Shvayka
0c98b70216
Merge pull request #9052 from AndriiLandiak/feature/edge-crud-pubsub
Edge - Introduce Event Pub/Sub Model for Detecting Changes in Entities
2023-08-08 18:41:23 +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
dashevchenko
6bc9148f77 added optional nosxss validation for attribute/telemetry value 2023-08-07 11:20:53 +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
30bc082e0a reverted refactoring with "return" use in the if statement & added @Override where required in DefaultTbContext & reverted changes to TbAbstractExternalNode 2023-08-03 20:20:17 +03:00
ShvaykaD
fedeab23e8 renamed FetchTo enum to TbMsgSource and move it to util package to reuse as fetchFrom property in other nodes 2023-08-03 15:52:45 +03:00
nick
eaf8ef0f14 fix_bug: default VARCHAR length for notification_request.info = 1M (old value = 1K) 2023-08-03 12:36:15 +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
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
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
Sergey Matvienko
161d7c3eda Cassandra: unlimited cached thread pool replaced with limited pool to prevent stack memory peaks. New env CASSANDRA_QUERY_RESULT_PROCESSING_THREADS introduced. 2023-07-31 11:59:31 +02:00
imbeacon
5f8d6176a5 Fix for removing user from sysadmin level alarm unassignment 2023-07-31 07:56:31 +03:00
YevhenBondarenko
5b2918de95 minor improvements 2023-07-28 17:27:38 +02:00
YevhenBondarenko
d9c39c362e refactored due to comments 2023-07-28 14:20:33 +02: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
Igor Kulikov
787fc6ed7d Merge branch 'develop/3.5.2' into feature/basic-widget-config 2023-07-27 18:25:00 +03:00
Igor Kulikov
df8585c1b6 UI: Implement Value card widget settings. Improve widget container layout. 2023-07-27 17:18:39 +03:00
ShvaykaD
b95eae215a replaced handling of AssetProfile and DeviceProfile with HasRuleEngineProfile to match PE code version 2023-07-27 15:26:40 +03:00
ShvaykaD
2d4fbd6833 added checkMsgType util method to TbMsg & resolved other review comments 2023-07-27 14:48:53 +03:00
YevhenBondarenko
329a24c019 added sparkplug 2023-07-26 11:05:50 +02:00
YevhenBondarenko
b8253b139b fixed tests 2023-07-26 10:23:32 +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
Vladyslav_Prykhodko
1dff25518f Merge remote-tracking branch 'upstream/develop/3.5.2' into feature/check-connectivity-device 2023-07-25 10:17:32 +03:00
Igor Kulikov
26a4509be5 Merge branch 'develop/3.5.2' into feature/basic-widget-config 2023-07-24 19:51:14 +03:00
Vladyslav_Prykhodko
cef453b14a Merge branch 'publishTelemetryCommands' of github.com:dashevchenko/thingsboard into feature/check-connectivity-device 2023-07-24 10:19:28 +03:00
dashevchenko
8b19b5d169 added curl command for mqtts 2023-07-21 18:56:52 +03:00
Vladyslav_Prykhodko
03b49f1ddd Clear code 2023-07-21 18:56:06 +03:00
Igor Kulikov
9d8a9943bf UI: Add value card widget. Introduce tb-icon component to handle both font and svg (mdi) icons. 2023-07-21 18:26:14 +03:00
Vladyslav_Prykhodko
1916e56ee5 Merge branch 'publishTelemetryCommands' of github.com:dashevchenko/thingsboard into feature/check-connectivity-device 2023-07-21 14:46:44 +03:00
dashevchenko
2ad30336ea deleted valur for mqqtt docker command when creds are X509 2023-07-21 13:51:49 +03:00
Vladyslav_Prykhodko
1c9638f9c2 Merge branch 'publishTelemetryCommands' of github.com:dashevchenko/thingsboard into feature/check-connectivity-device 2023-07-21 12:59:56 +03:00
dashevchenko
d99c08fbbb changed response data structure 2023-07-21 12:52:15 +03:00
Vladyslav_Prykhodko
1b7853c0f0 Merge branch 'publishTelemetryCommands' of github.com:dashevchenko/thingsboard into feature/check-connectivity-device 2023-07-21 11:15:38 +03:00
rusikv
34033cb7b0 Fix for update JSON attribute widget required time-series data key instead attribute key 2023-07-20 17:36:55 +03:00
dashevchenko
fc499c74e3 deleted redundant imports 2023-07-20 17:22:33 +03:00
Vladyslav_Prykhodko
46b6d51c61 Merge branch 'publishTelemetryCommands' of github.com:dashevchenko/thingsboard into feature/check-connectivity-device 2023-07-20 15:38:53 +03:00
ShvaykaD
9c9cac9bd1 fix entity view delete test 2023-07-20 13:54:31 +03:00
dashevchenko
db46b7988d refactored code to take into account operating system 2023-07-20 12:33:15 +03:00
Andrew Shvayka
15b192aad9
Merge pull request #8898 from dashevchenko/resourceDeleteValidation
Resource deletion validation
2023-07-18 16:26:09 +03:00
dashevchenko
295a145d2d fixed tests 2023-07-18 11:51:18 +03:00
dashevchenko
c3e775c353 added mqtt server chain certificate 2023-07-18 11:38:41 +03:00
ShvaykaD
16739b18c2 Merge branch 'develop/3.5.2' into feature/filter-nodes-improvements 2023-07-17 16:22:42 +03:00
Andrew Shvayka
bff894c759
Merge pull request #8716 from imbeacon/fix/user-removing-unassign-alarms
[3.5.2] Added unassignment on user deleting
2023-07-17 15:23:13 +03:00