2721 Commits

Author SHA1 Message Date
Andrew Shvayka
db663cb5bc
Merge pull request #9035 from imbeacon/customer-removing-alarm-unassign
Fix for alarm unassign on user or customer removed
2023-09-05 16:07:53 +03:00
Andrew Shvayka
09b74dada9
Merge pull request #9157 from thingsboard/fix/tenant-profile-serialization
Fix tenant profile update msg construction for Edge
2023-09-04 18:49:51 +03:00
Igor Kulikov
7f47472092 Merge branch 'develop/3.5.2' into feature/widget-bundles 2023-09-04 18:05:47 +03:00
Igor Kulikov
c783e44ac6 UI: Add widget panel: implement all widgets mode. 2023-09-04 18:04:20 +03:00
Andrew Shvayka
6f2334b35b
Merge pull request #9104 from thingsboard/feature/system-notifications
Notification to sysadmin when default JWT signing key is used
2023-09-04 14:18:05 +03:00
Igor Kulikov
875c8d526b Widget Bundles to Wudget Types Many to Many support for UI 2023-09-01 18:55:29 +03:00
Igor Kulikov
1fb9ba622e Widget -> Widget Bundle Many to Many support. 2023-08-31 12:09:42 +03:00
ViacheslavKlimov
724300c076 Fix tenant profile Java serialization; add test 2023-08-29 15:41:35 +03:00
Igor Kulikov
acdf5ad48c Implement ability to move widget types between widget bundles. Ability to deprecate widget type. 2023-08-28 18:54:12 +03:00
ViacheslavKlimov
c55ac0efc6 Improvements for system notifications; add test 2023-08-22 12:56:21 +03:00
Igor Kulikov
c57cb2b754 Switch to unique widget type FQN. 2023-08-18 16:14:21 +03:00
ViacheslavKlimov
ba2ded02b1 Notification to sysadmin when default JWT signing key is used 2023-08-18 13:24:57 +03:00
imbeacon
c4d12c6ba9 Refactored DefaultTbAlarmService, added improvements for alarm unassignment on user removing, updated namings and tests. 2023-08-18 12:03:27 +03:00
Andrew Shvayka
3186789f3e
Merge pull request #9062 from AndriiLandiak/feature/edge-tenant-sync
Feature/Edge: tenant and tenant profile sync up
2023-08-17 17:35:42 +03:00
Andrii Shvaika
ca6095402f Merge with master 2023-08-17 12:19:02 +03:00
imbeacon
6ae894702a Merge remote-tracking branch 'upstream/develop/3.5.2' into customer-removing-alarm-unassign 2023-08-16 14:28:04 +03:00
imbeacon
1ce4214b79 Added test for DeleteEntityEvent 2023-08-16 14:21:22 +03:00
Andrii Landiak
e53ea0f20b Merge remote-tracking branch 'upstream/develop/3.5.2' into feature/edge-tenant-sync 2023-08-16 13:44:45 +03:00
imbeacon
35b86999b1 Added timestamp to entity deleted event, to have correct assign ts in alarms after unassignment 2023-08-16 11:18:31 +03:00
imbeacon
4b8db9f37d Refactored repository method for getting assigned alarms, added limitations, logs and adopted tests for event based model alarms unassigning on user removing 2023-08-16 09:09:40 +03:00
Andrii Landiak
308674ddc7
Create entity on edge and send to cloud 2023-08-16 08:08:56 +03:00
imbeacon
19c5e50884 Updated due to comments 2023-08-15 18:24:38 +03:00
Andrew Shvayka
18a617472a
Merge pull request #8793 from thingsboard/feature/account-notification-settings
User-level notification settings
2023-08-15 17:45:49 +03:00
ViacheslavKlimov
d8896fe9dd Minor refactoring for user notification settings 2023-08-15 17:34:10 +03:00
Sergey Matvienko
3f2578b6d0 JpaNotificationDao: JavaDoc added for countUnreadByRecipientId for the reference to the idx_notification_recipient_id_unread 2023-08-15 00:39:08 +02:00
Sergey Matvienko
a8f5602036 SQL partial index added idx_notification_recipient_id_unread for cheap and fast notification count on UI 2023-08-15 00:25:50 +02:00
ViacheslavKlimov
ce06ea10ca Use user settings api instead of additionalInfo 2023-08-14 17:43:39 +03:00
Andrii Landiak
b646b7b93e Remove unnecessary sout logs in edge service test 2023-08-14 08:33:41 +03:00
ViacheslavKlimov
ae76f4ebbb Merge branch 'master' into feature/update-tenant-profile-isolation 2023-08-11 13:39:03 +03:00
imbeacon
e7543d78d4 Changed method for user removing, added user as an entity to deleted entity event 2023-08-11 07:56:08 +03:00
imbeacon
328d53dffc Changed alarms unassign method to returen ids instead of Alarm objects and changed to use entity from deleted entity event 2023-08-11 07:52:03 +03:00
Andrii Landiak
9e1ab9abae
Feature/tenant profile edge sync 2023-08-10 10:38:38 +03:00
imbeacon
c9a7ca62bc Removed uneccessary import 2023-08-10 08:33:30 +03:00
Vladyslav_Prykhodko
6e7869ffbe Merge remote-tracking branch 'upstream/develop/3.5.2' into feature/timeseries-api-improvements 2023-08-09 18:03:48 +03:00
imbeacon
97d8171f07 Refactored to use events 2023-08-09 14:49:53 +03:00
imbeacon
d4fcd4f814 Merge branch 'develop/3.5.2' of https://github.com/thingsboard/thingsboard into customer-removing-alarm-unassign 2023-08-09 14:26:47 +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
YevhenBondarenko
2427539f22 merge with develop/3.5.2 2023-08-08 01:46:52 +02:00
ViacheslavKlimov
d3710b411f Check user's additionalInfo for nullity 2023-08-07 16:50:10 +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
imbeacon
8ba6271ce0 Added ignore for exception, that can appear if sysadmin removed 2023-08-04 13:38:35 +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
imbeacon
ed5b528964 Updated unassign for alarms, on user removing to be transactional 2023-08-03 10:40:50 +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
Andrii Shvaika
75fd37428a Merge with master 2023-07-31 13:59:20 +03:00
Sergey Matvienko
9e92d10dc5 Cassandra: AbstractBufferedRateExecutor improved logging to clarify whether the Read or Write operations logged 2023-07-31 12:05:23 +02: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