2108 Commits

Author SHA1 Message Date
Viacheslav Klimov
f51a66b585 Delete OTA update packages of device profile with cascade when this profile is deleted 2022-02-04 18:06:40 +02:00
Volodymyr Babak
ffcc5be0ae Removed edge license and cloud endpoint from edge instance - refactoring edge ce 2022-02-04 17:34:46 +02:00
van-vanich
6318c7636c fix issue with failure test, because before other tests saved and don't delete Alarm 2022-02-04 15:55:31 +02:00
van-vanich
172501e12f added test for JpaAuditLogDaoTest 2022-02-04 13:43:46 +02:00
van-vanich
2c3110c3f0 added test for testFindAssetsByTenantIdAndCustomerIdAndType() and testFindAssetsByTenantIdAndType(). Also improve and refactoring code 2022-02-04 12:56:39 +02:00
van-vanich
f5aff76d81 delete unnecessary code and refactoring test after code review. Also remove unnecessary file 2022-02-03 18:42:59 +02:00
van-vanich
62ee824530 refactoring JpaBaseComponentDescriptorDaoTest 2022-02-03 12:18:09 +02:00
van-vanich
97a9854f41 refactoring JpaWidgetsBundleDaoTest and remove unnecessary System.out.println from JpaAlarmDaoTest 2022-02-03 11:53:24 +02:00
van-vanich
ff1fa2d2ca improve and fix JpaUserDaoTest 2022-02-03 11:35:28 +02:00
van-vanich
adb062a562 improve and fix JpaWidgetTypeDaoTest 2022-02-02 18:54:40 +02:00
van-vanich
e877e71445 improve and fix JpaDeviceCredentialsDaoTest 2022-02-02 18:39:09 +02:00
van-vanich
e5f05e7327 improve and fix JpaBaseEventDaoTest 2022-02-02 18:19:42 +02:00
van-vanich
19f73c8307 refactoring JpaWidgetsBundleDaoTest 2022-02-02 17:54:27 +02:00
van-vanich
00540a8b09 improve and fix JpaWidgetsBundleDaoTest 2022-02-02 17:51:23 +02:00
van-vanich
7f104e5159 improve and fix JpaUserCredentialsDaoTest 2022-02-02 17:48:15 +02:00
van-vanich
6c92640117 delete componentDescriptors after test for JpaBaseComponentDescriptorDaoTest 2022-02-02 17:40:28 +02:00
van-vanich
770965a5d7 add fix for JpaDeviceDaoTest 2022-02-02 17:36:38 +02:00
van-vanich
3f649d8c0b remove extends AbstractTransactionalJUnit4SpringContextTests for AbstractJpaDaoTest 2022-02-02 17:29:28 +02:00
van-vanich
64f4fc8cfd changed forgotten classes with CrudRepository to JpaRepository and remove unnecessary import 2022-02-01 18:08:38 +02:00
van-vanich
6d7a40664f change CrudRepository to JpaRepository 2022-02-01 15:21:14 +02:00
Viacheslav Klimov
35528e687a Add test for deleting device profile referenced by OTA 2022-01-31 13:21:59 +02:00
Alexey Markevich
6969882a69 switch to PostgreSQL10Dialect 2022-01-28 23:54:10 +03:00
Viacheslav Klimov
d4784b3096 Prohibit deletion of device profiles that are referenced by OTA packages 2022-01-26 15:56:13 +02:00
deso-deso
80df8d1a45 fix test 2022-01-25 18:52:48 +02:00
deso-deso
54c48e1166 refactor tenantExists method 2022-01-25 13:35:47 +02:00
desoliture
6121f96a9c BaseTenantServiceTest 2022-01-25 12:43:23 +02:00
Andrew Shvayka
847630259c
Merge pull request #5947 from ViacheslavKlimov/fix/lwm2m-config-validation-npe
[3.3.3] Fix NPE during Lwm2mDeviceProfileTransportConfiguration validation
2022-01-24 13:02:12 +02:00
desoliture
27efb4adfc replace getting tenant and checking it for null to invocations of 'exists' method 2022-01-21 18:49:35 +02:00
desoliture
6d1969447b add 'exists' method in TenantService and make it cacheable, update corresponding test 2022-01-21 16:55:39 +02:00
Viacheslav Klimov
f83b16c095 Fix NPE during Lwm2mDeviceProfileTransportConfiguration validation 2022-01-21 16:45:04 +02:00
Viacheslav Klimov
d99a8066fe Refactor RateLimitsUpdater; handle rate limits disabling 2022-01-21 15:18:39 +02:00
desoliture
fdc318a526 fix RelationService and TenantServiceTest 2022-01-21 12:12:18 +02:00
desoliture
c28e13c03c remove todo 2022-01-20 17:09:20 +02:00
desoliture
16753d2f62 refactor relation service and dao(*), remove redundant todo's, refactor tests
(*): resolve immediate .get() invocation, which producing blocking (checkRelation method), by adding sync checkRelation method and refactor the usages of checkRelationAsync
2022-01-20 16:50:40 +02:00
Viacheslav Klimov
487d7165cc Rate limits to tenant profile BE refactoring 2022-01-20 14:31:02 +02:00
Viacheslav Klimov
cb071ac0a2 Merge remote-tracking branch 'origin/master' into rate-limits-to-tenant-profile
# Conflicts:
#	application/src/main/java/org/thingsboard/server/service/install/update/DefaultDataUpdateService.java
#	application/src/main/java/org/thingsboard/server/service/telemetry/DefaultTelemetryWebSocketService.java
#	dao/src/main/java/org/thingsboard/server/dao/nosql/CassandraBufferedRateReadExecutor.java
#	dao/src/main/java/org/thingsboard/server/dao/util/AbstractBufferedRateExecutor.java
#	ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.html
#	ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts
#	ui-ngx/src/app/shared/models/tenant.model.ts
2022-01-20 13:40:53 +02:00
van-vanich
dfb734d80b Merge branch 'master' into aggregationTsDao_fix 2022-01-19 18:10:58 +02:00
van-vanich
51071a7413 remove unnecessary code and add some clean code 2022-01-19 18:06:53 +02:00
desoliture
83ae5ba262 refactor 2022-01-19 16:37:51 +02:00
Andrii Shvaika
c31ee8e2da Alarm start ts from message ts 2022-01-19 16:12:16 +02:00
Andrii Shvaika
66b58549c5 Propagate alarms to Customer or Tenant without relations 2022-01-19 11:49:38 +02:00
van-vanich
d02c7ad7bf fix issue with license 2022-01-17 18:41:34 +02:00
van-vanich
0eb53da4a0 Merge branch 'master' into aggregationTsDao_fix
# Conflicts:
#	dao/src/main/java/org/thingsboard/server/dao/sqlts/AggregationTimeseriesDao.java
2022-01-17 16:38:24 +02:00
Igor Kulikov
da4c742872 Update license year to 2022 2022-01-17 14:07:46 +02:00
Andrew Shvayka
fe273d2835
Merge pull request #5907 from ViacheslavKlimov/fix/events-deletion
[3.3.3] Fix events deletion
2022-01-17 13:37:21 +02:00
desoliture
a39b56c93c replace remained tenantDao usages to tenantService 2022-01-17 13:35:28 +02:00
desoliture
d9dbd27364 refactor test for tenant deletion 2022-01-17 13:34:28 +02:00
desoliture
bbf02b5f39 add timeout for tenant deletion transaction and fix test for tenant deletion 2022-01-17 13:21:23 +02:00
desoliture
801e747b02 fix names in test for Tenant deletion 2022-01-17 12:52:04 +02:00
Viacheslav Klimov
3272db6501 Fix events deletion 2022-01-17 12:50:54 +02:00