6788 Commits

Author SHA1 Message Date
Sergey Matvienko
3236d3ce9e remote js-executor: producer compression: CompressionTypes.GZIP 2021-04-23 15:04:00 +03:00
Sergey Matvienko
c94dc5972e remote js-executor: parameter added TB_KAFKA_ACKS="1" 2021-04-23 15:04:00 +03:00
Sergey Matvienko
a569058c29 remote js-executor: added metric response sent to queue ms in debug level; parameter added SLOW_QUERY_LOG_BODY="true" to enable log bloat 2021-04-23 15:04:00 +03:00
Sergey Matvienko
c9f3562b58 remote js-executor: parameter added KAFKA_CLIENT_ID 2021-04-23 15:04:00 +03:00
Sergey Matvienko
d25d13d7c0 remote js-executor: added slow query log, log config on service start 2021-04-23 15:04:00 +03:00
Sergey Matvienko
a477cad1b7 QueueController has return queue list from yaml config (TbQueueRuleEngineSettings). Tip: queue list consumes UI on device profile details 2021-04-23 12:23:31 +03:00
Viacheslav Klimov
5465703d2d Handle tenant and customer deletion for TbApiUsageStateService 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
8c9213cff5 Provide querying by customer for API usage states 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
6b008e52cb Refactor 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
030d80d05a CustomerId to TbMsg and SessionInfo 2021-04-22 13:15:19 +03:00
Andrii Shvaika
0ff4e6ac0d Improvements to the TbMsg to support CustomerId 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
3db3385571 Enable/disable usage stats per customer from config 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
9d045e231b Refactor DefaultTbApiUsageClient 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
62979e8006 Refactor 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
ecf86b53ba Provide usage stats for sysTenant; refactor 2021-04-22 13:15:19 +03:00
Viacheslav Klimov
f89b30777e Initial implementation for per-customer api usage stats 2021-04-22 13:15:19 +03:00
Vladyslav_Prykhodko
9900cc3d97 Updated ui rule node 2021-04-22 10:33:51 +03:00
AndrewVolosytnykhThingsboard
c7269528fa
[PROD-881] Dynamic alarm severity in Create Alarm Rule Node (#4393)
* Dynamic alarm severity feature added

* Tests for dynamic alarm severity added

* Removed redundant imports

* Join front-end part

* Refactoring: create of method processAlarmSeverity, remove incorrect solution and process severity in correct places

* Correct updating of alarm parsed from msg data

* Removed redundant operations

* Correct exceptions throwing
2021-04-21 15:05:45 +03:00
ShvaykaD
321fb731a6
Support of server-side RPC requests via protobuf for CoAP and MQTT
* rpc response schema added

* rpc request proto

* fixed device profile validation

* fix error messages
2021-04-20 11:14:27 +03:00
nickAS21
51b0d50542
Lwm2m discovery (#4438)
* Lwm2m: fix bug delete zero updateAttribute

* Lwm2m: front add select binding

* Lwm2m: discovery only for test

* Lwm2m: remove type_cast_enabled from the main branch.

* Lwm2m: remove type_cast_enabled from the main branch.

* Lwm2m: remove type_cast_enabled from the main branch.

* Lwm2m: remove double code.
2021-04-20 10:44:11 +03:00
Sergey Matvienko
cb9450104e device count performance for 100k+ devices per tenant. Added additional tests for the DeviceService 2021-04-19 21:50:36 +03:00
AndrewVolosytnykhThingsboard
91e0a77afd Fixed incorrect adding of additional parameters to URL in getAlarms method 2021-04-19 17:08:54 +03:00
AndrewVolosytnykhThingsboard
e3caf24a9b Removed redundant parameter for AlarmController, AlarmQuery and RestClient.getAlarms 2021-04-19 17:08:54 +03:00
AndrewVolosytnykhThingsboard
5d64775f67 Correct call of dependent methods 2021-04-19 17:08:54 +03:00
AndrewVolosytnykhThingsboard
fad1040f24 Refactoring: offset added to request URL 2021-04-19 17:08:54 +03:00
AndrewVolosytnykhThingsboard
a100d07daf Fixed incorrect RestClient method getAlarms 2021-04-19 17:08:54 +03:00
Sergey Matvienko
e17ba0531d rule chain: fixed conflict after cherry-pick. removed createRelation and deleteRelation. It moved to the AbstractEntityService before 2021-04-19 13:21:55 +03:00
Sergey Matvienko
8b653d7065 rule chain. implemented save/update/delete @Transactional. Added sync DAO methods to run in transaction. Moved loadRuleChainMetaData outside of saveRuleChainMetaData transaction 2021-04-19 13:21:55 +03:00
Sergey Matvienko
27788790df dependency upgrade: grpc.version up to 1.36.0. explicitly added protobuf-java-util due to grpc not depends on it anymore 2021-04-19 13:18:55 +03:00
Andrii Shvaika
e7fd07652e Removed code duplicates and fixed one minor issue 2021-04-19 13:16:55 +03:00
Valerii Sosliuk
b8291be084 Update Latest TS by timestamp
There is a bug when the historic data arrives and overrides the value
with morerecent timestamp in ts_kv_latest table. This PR adds
possibility to update the ts_kv_latest table only if the value that
arrives has the newer timestamp than the one that is already in
ts_kv_latest
2021-04-19 12:53:40 +03:00
Sergey Matvienko
3228312cdb alarms count: performance fix based on pg_stat analysis. Counters queries refactored as two subqueries: inner join (count with relations) + left 'anti' join (count without relations). AlarmServiceSqlTest passed. CE 2021-04-19 12:41:44 +03:00
Sergey Matvienko
08d9ea302f logback: logger template added for Top Rule Nodes by max execution time 2021-04-19 12:41:19 +03:00
Sergey Matvienko
562637ad34 ZKDiscoveryService: fix potential outdated server info on recalculatePartitions. info logs added on application event 2021-04-19 12:40:22 +03:00
Sergey Matvienko
e64b1074a7 queue consumer: added queue check on the very first poll in the lifecycle before any subscribe method calls 2021-04-19 12:40:22 +03:00
Sergey Matvienko
b35ce062a7 queue consumer: implemented nonblocking subscribe method to prevent locks on repartition event. moved message decoding out of the lock to reduce locking time. using monotonic time instead wall-clock. added debug messages 2021-04-19 12:40:22 +03:00
Igor Kulikov
3362ab37da Fix show dashboard logo in fullscreen mode 2021-04-16 17:58:49 +03:00
Igor Kulikov
9d8c144e74
Merge pull request #4428 from vvlladd28/improvement/dashboard-logo/translate
UI: Refactoring dashboard logo translation
2021-04-16 15:51:47 +03:00
Vladyslav_Prykhodko
a4347776ad UI: Refactoring dashboard logo translation 2021-04-16 15:40:44 +03:00
Igor Kulikov
5d9ea35fd9
Merge pull request #4284 from TTvanWillegen/master
UI: Added show logo option in dashboard settings [Issue #3544]
2021-04-16 15:31:29 +03:00
Vladyslav_Prykhodko
9b2009a501 UI: Refactoring dashboard logo 2021-04-16 14:59:35 +03:00
Andrii Shvaika
e508925168 Fix for statistics collection period 2021-04-16 14:34:39 +03:00
Andrii Shvaika
f1d89ace5d Removed invalid dependency 2021-04-16 14:29:57 +03:00
Vladyslav_Prykhodko
936171b80b UI: Improvement event statistics filter 2021-04-16 12:17:13 +03:00
nickAS21
4a6e0c7aae
Lwm2m fix bug 19 (#4422)
* lwm2m: back: Write Attributes - start

* lwm2m: front: fis bug disable instances

* lwm2m: transport: attr/discavery start

* lwm2m: transport: attributeLwm2m after update profile

* lwm2m: transport: attributeLwm2m after update profile (no delete attribute)

* Lwm2m: back: test

* Lwm2m: back: test2

* Lwm2m: back: test3

* Lwm2m: transport fix bug Write attribute through the shared attribute does not work for Object 19
2021-04-16 12:12:11 +03:00
Andrii Shvaika
2df1177ed9 Replace StringUtils with our implementation 2021-04-16 11:16:59 +03:00
Igor Kulikov
8f63eb5222
Merge pull request #4418 from volodymyr-babak/edge/refactoring
Do not print disconnect error msg inside tests
2021-04-15 20:13:42 +03:00
Volodymyr Babak
b034fe04e6 Fix test wait condition 2021-04-15 16:33:57 +03:00
Volodymyr Babak
cc1b42f93d Merge branch 'master' of github.com:thingsboard/thingsboard into edge/refactoring 2021-04-15 16:31:20 +03:00
Volodymyr Babak
f2eea6d82b Do not print disconnect error msg 2021-04-15 16:31:03 +03:00