1223 Commits

Author SHA1 Message Date
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
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
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
e3caf24a9b Removed redundant parameter for AlarmController, AlarmQuery and RestClient.getAlarms 2021-04-19 17:08:54 +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
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
Andrii Shvaika
f1d89ace5d Removed invalid dependency 2021-04-16 14:29:57 +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
Andrew Shvayka
e08d1b2c07
Feature/event filters
* Event filter implementation

* Removed redundant imports

* convert createdTime to column name

* UI: Added ui to filter events parameters

* Case sensitivity fixed, boolean Is Error added

* UI: Added support event filter for error

* Improvement for implementation of Event Filter

* UI: Refactoring event filter

* UI: Add trim

* Filter added for all event types

* UI: Updated filter events for new API

* Refactoring

* Code cleaning. Debug Rule Chain added

* Removed redundant casts in JpaBaseEventDao, correct created_time check

* Removed redundant abstract method in DebugEvent

* refactoring of the filter queries

* Filters for debug events

* UI: Refactoring event table panel

Co-authored-by: AndrewVolosytnykhThingsboard <avolostnykh@thingsboard.io>
Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
Co-authored-by: AndrewVolosytnykhThingsboard <77969531+AndrewVolosytnykhThingsboard@users.noreply.github.com>
2021-04-15 12:05:04 +03:00
nickAS21
d6979e54da
lwm2m: back: Write Attributes - start (#4402)
* 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
2021-04-15 11:53:45 +03:00
Igor Kulikov
168b8d86eb
Merge pull request #4368 from YevhenBondarenko/develop/3.3-lwm2m-queue-mode
lwm2m queue mode
2021-04-14 15:55:18 +03:00
Viacheslav Klimov
fdd126303a Validate more entities' fields 2021-04-13 14:31:40 +03:00
Igor Kulikov
54ba69a82c Fix code style issues 2021-04-13 13:09:19 +03:00
Igor Kulikov
29f64d9380 Update banner. Fix lwm2m transport jks config path 2021-04-13 11:49:15 +03:00
nickAS21
c634859e90
lwm2m: front start add attributes Lwm2m (#4388)
* lwm2m: front start add attributes Lwm2m

* lwm2m: front finish add attributes Lwm2m for resources

* lwm2m: front add attributes Lwm2m for resources if isAttribte or isTelemetry

* lwm2m: front add attributes Lwm2m for objects if isAttribte or isTelemetry

* lwm2m: back add resource one

* lwm2m: back fix bug resource controller test
2021-04-12 13:16:43 +03:00
Volodymyr Babak
c5f5acdba1 Improved disconnect process - try 5 times before force close session 2021-04-09 19:53:46 +03:00
Volodymyr Babak
770d3f91f2 Code review changes 2021-04-09 19:38:45 +03:00
Volodymyr Babak
df6f4c9924 Merge remote-tracking branch 'upstream/master' into develop/3.3-edge 2021-04-09 19:04:26 +03:00
ShvaykaD
dc87550835
Extract coap-server component to separate module to be used in coap transport and core (CoAP integrations).
* init commit: coap-server component

* move coap-server to separate module

* fix typo
2021-04-09 13:06:43 +03:00
Igor Kulikov
a207e31841 Merge with master 2021-04-09 12:40:43 +03:00
Igor Kulikov
4a63660e1d Version set to 3.3.0-SNAPSHOT 2021-04-09 12:37:08 +03:00
YevhenBondarenko
bb90b2f137 lwm2m queue mode 2021-04-06 07:38:52 +03:00
ShvaykaD
2344d6d62f
Fixed RPC string params in protobuf payload type. Reverted changes from the previous fix (#4356)
* Revert "added a fix for string value RPC params: removed redundant escaped characters"

This reverts commit 1891af54

* removed redundant escape characters for string RPC params in Proto payload

* cleanup code
2021-04-02 12:25:05 +03:00
Volodymyr Babak
3e085d370c Make alarm condition serializable 2021-03-31 22:31:45 +03:00
nickAS21
0c12f202fe lwm2m: back fix bug double "" in name 2021-03-31 17:48:31 +03:00
Volodymyr Babak
7044e3e40f Merge remote-tracking branch 'upstream/master' into develop/3.3-edge 2021-03-30 19:35:58 +03:00
Viacheslav Klimov
593f95a7af
Provide additional validation for entities (#4326)
* Provide additional validation for entities

* Refactor

* Create test for NoXssValidator

* Refactor dependencies
2021-03-30 18:29:55 +03:00
ShvaykaD
fd3e18f18b
CoAP DTLS support (#4316)
* dtls init commit

* added fixes after review

* fix typo

* changed translation for DeviceCredentialsType.X509_CERTIFICATE
2021-03-30 18:28:03 +03:00
nickAS21
090babdf70 lwm2m: back add resource(s) 2021-03-30 13:26:50 +03:00
nickAS21
2fcf5fd7c6 lwm2m: front/back fix bug update profile 2021-03-29 12:50:50 +03:00
nickAS21
ba4d2ff480
lwm2m: notification in transport, add, update, del models (#4309)
* lwm2m: notification in transport, add, update, del models

* lwm2m: notification in transport, add, update, del models2
2021-03-26 17:32:26 +02:00
ShvaykaD
1891af54b3 added a fix for string value RPC params: removed redundant escaped characters 2021-03-25 12:16:55 +02:00
nickAS21
fda871392b
lwm2m: test model2 (#4298)
* lwm2m: test model2

* lwm2m: test model2 (fix test)
2021-03-24 19:23:40 +02:00
nickAS21
367be12455
lwm2m: back transport clear cash (#4294)
* lwm2m: back transport clear cash

* lwm2m: back transport del old models

* lwm2m: back transport edit yml old models

* lwm2m: back transport remove lock

* lwm2m: back transport remove lock2
2021-03-24 15:58:27 +02:00
Yevhen Bondarenko
0d62b2890c
[3.3] added tests for resources (#4282)
* added TbResourceService test

* fix ResourceService test

* created TbResourceControllerSqlTest

* fixed BaseTbResourceServiceTest
2021-03-24 11:03:13 +02:00
nickAS21
7ea6c7163a
lwm2m: back transport newKey fix bug object id=19 (#4291) 2021-03-23 15:17:56 +02:00
Viacheslav Klimov
e5c4feaa83 Create assign/unassign device event when claiming/reclaiming device 2021-03-23 14:12:18 +02:00