3850 Commits

Author SHA1 Message Date
Sergey Matvienko
c49d97f7d1 BaseTimeseriesServiceTest added overwrite TS cases and historical data load case, that fails without condition on update only if ts is the latest 2024-04-16 17:35:04 +02:00
Sergey Matvienko
551325b8c7 added CachedRedisSqlTimeseriesLatestDao and TsLatestRedisCache (prototype impl with string commands). Caffeine cache not implemented yet 2024-04-16 16:53:59 +02:00
Sergey Matvienko
9b41a4e26c SqlTimeseriesLatestDao refactored to use a common doFindLatestSync for any find request 2024-04-16 16:50:36 +02:00
Sergey Matvienko
771d15a6dd BaseTimeseriesServiceTest: 3 findLatest related tests added 2024-04-16 16:43:47 +02:00
Sergey Matvienko
3003fccf3b BaseTimeseriesServiceTest refactored 2024-04-16 16:43:20 +02:00
ViacheslavKlimov
c47946948a Single entity deletion event when tenant is deleted 2024-04-16 13:01:04 +03:00
ViacheslavKlimov
a80d4650ea Delete customers last on tenant deletion; tests fixes 2024-04-16 13:00:17 +03:00
ShvaykaD
0fb35a3844 merge with master 2024-04-16 12:40:04 +03:00
ShvaykaD
27d026821a fixed adter review 2024-04-16 11:56:56 +03:00
Volodymyr Babak
63c100b4bb
Merge pull request #10548 from AndriiLandiak/feature/edge-notification
Edge - notification support
2024-04-16 11:56:11 +03:00
ViacheslavKlimov
881a8048ce Fix EntityDaoRegistry init 2024-04-15 12:34:16 +03:00
ViacheslavKlimov
40d9789035 More tests 2024-04-12 17:24:06 +03:00
ViacheslavKlimov
79dc46a65b Merge branch 'master' into feature/housekeeper
# Conflicts:
#	application/src/main/java/org/thingsboard/server/install/ThingsboardInstallService.java
2024-04-12 15:33:56 +03:00
ViacheslavKlimov
0b18de1482 Refactor entities deletion 2024-04-12 15:32:07 +03:00
Igor Kulikov
ce44bbc248 Merge with hotfix/3.6.3 2024-04-11 17:52:26 +03:00
ViacheslavKlimov
9064bfaa76 Delete tenant entities in batches with id offset 2024-04-11 17:18:47 +03:00
ViacheslavKlimov
6c592a249e 3.6.3 to 3.6.4 upgrade script 2024-04-11 15:57:06 +03:00
Andrii Landiak
5191143c3f Provide support for Notification to Edge 2024-04-11 15:50:57 +03:00
ViacheslavKlimov
feb629f2c2 Alarms deletion in batches with id offset 2024-04-11 14:07:35 +03:00
Viacheslav Klimov
4044649c9c
Merge pull request #10414 from irynamatveieva/fix-error-msg-problem-extrenal-id
Fixed error message with external id when saving rule chain.
2024-04-10 13:25:23 +03:00
Viacheslav Klimov
80ec3609de
Merge pull request #10355 from irynamatveieva/improve-script-node
Changed the logic to be able to find the last IN event despite its order in the debug records.
2024-04-10 13:19:55 +03:00
Shvaika Dmytro
cad3011938
Replacement of local cache in rule nodes with cached entity service APIs. (#9552)
* added customer cache && refactored assign/unassing to/from customer nodes

* refactoring of customer action nodes & added common tests

* added tests for upgrade

* updated controller & service tests for customer api

* replaced findCustomerByTenantIdAndTitle with cacheable method

* add new line to end of ../upgrade/3.6.2/schema_update.sql file

* added cache for find user by tenant id and email & relation action nodes refactoring

* fixed synchronization issue & refactored logic & refactored node upgrade tests

* fixed testSaveUserWithSameEmail test in the UserControllerTest. Removed empty space & added exclamation mark

* updated tests for create relation node && added two tests for delete relation node

* replaced Lists with EnumSets where it was possible & replaced MethodSource with EnumSource where it was possible & added test for upgrade for both create and delete relation nodes

* updated upgrade tests & added tests for delete relation node

* refactoring

* updated create & delete relation nodes descriptions

* updated default config for delete relation node

* minor improvements for custom action nodes after self review

* added upgrade for customers with the same titles

* replaced parameterized test annotation when deleteForSingleEntity is false

* fix typo in reSaveCustomerWithNewTitle upgrade logic

* fixes after review & additional improvements

* fixed testAssignAndUnassignEntityViewToCustomer test

* updated upgrade logic & changed logic of public customers lookup

* fixed dao method & added test

* renamed method to findPublicCustomerByTenantId

* fix typo in the find public customer query

* added @Serial annotation for serialVersionUID & rollback saveAndFlush to save in UserServiceImpl

* fixes to async find or create logic

* fixed after review

* fix typo

* set Transactional annotation to findOrCreatePublicCustomer
2024-04-10 12:31:24 +03:00
IrynaMatveieva
864b862fc7 used Optional.ofNullable 2024-04-10 10:56:34 +03:00
Andrii Landiak
d041faae89 Micro refactoring: using java 17 2024-04-09 15:42:54 +03:00
IrynaMatveieva
d152e0b24b moved tests to RuleChainServiceTest class 2024-04-09 15:18:47 +03:00
ViacheslavKlimov
00f8fd2c35 Merge remote-tracking branch 'origin/master' into feature/housekeeper 2024-04-09 12:08:53 +03:00
Andrew Shvayka
b164eea623
Merge pull request #10499 from AndriiLandiak/improve-entity-data-query
Entity Data Query: improvement
2024-04-09 11:04:06 +03:00
Andrew Shvayka
7eb825dc3b
Merge pull request #10472 from thingsboard/fix/event-sourcing
Fix tenant creation
2024-04-09 11:01:35 +03:00
Andrew Shvayka
e7f68e3b08
Merge pull request #10420 from thingsboard/fix/mobile-notifications
Improvements for mobile notifications
2024-04-09 10:59:37 +03:00
IrynaMatveieva
4c984dc82c removed unnecessary method creation 2024-04-08 17:51:16 +03:00
dashevchenko
140f8dc489 attribute scope is prepared correctly for rule engine message metadata 2024-04-08 16:21:35 +03:00
Sergey Matvienko
44096a7cb7 TS latest dao put to Redis WIP 2024-04-08 14:57:20 +02:00
Andrii Landiak
9e1c195e59 Fix comment 2024-04-04 16:06:21 +03:00
Andrii Landiak
0252ab851a Micro improvement: fix logic for filteringKeys containsAll latestValues && entityFields. Improve test 2024-04-04 16:00:19 +03:00
Andrii Landiak
2fced834fd Improvement to entity data query: add optimization, add fetching by 1024 max 2024-04-04 14:25:08 +03:00
Andrii Shvaika
a88b1ef349 Merge hotfix/3.6.3 to master 2024-04-04 12:56:17 +03:00
Andrii Shvaika
d5cdd2b13d Merge branch 'master' of github.com:thingsboard/thingsboard 2024-04-04 12:46:10 +03:00
Oleksandra Matviienko
e00b14bf84 validateId refactoring
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 21:11:05 +02:00
Andrii Shvaika
bd2cf904e4 Merge branch 'improve-entity-data-query' of github.com:AndriiLandiak/thingsboard 2024-04-03 17:01:32 +03:00
Sergey Matvienko
6ca90a80b2 Deprecated old methods in Validator in favour the fastest ones 2024-04-03 15:30:36 +02:00
Sergey Matvienko
93adbd116c Validator: some old method usage replaced with a new ones with functions 2024-04-03 15:28:28 +02:00
Sergey Matvienko
f82d6b9db5 ValidatorTest fixed imports 2024-04-03 14:44:36 +02:00
Oleksandra Matviienko
1e83e458f6 Changes in validateIds method. Validate method for id,ids added. Minor changes in code formatting.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00
Oleksandra Matviienko
c785c8acfd Minor changes of validation methods and code formatting.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00
Oleksandra Matviienko
a993f2133a Changes according to comments
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00
Oleksandra Matviienko
816f6e35c5 Changed the usage of validate methods in Validator from methods with an errorMessage to methods with functions.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00
Oleksandra Matviienko
4eeb0b2883 UPD. Refactoring and changes according to comments.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00
Oleksandra Matviienko
c2b53479fb UPD. Refactoring and changes according to comments.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00
Oleksandra Matviienko
85e80a56ae Tests for Validator are added.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00
Oleksandra Matviienko
5e39af738b In Validator a Function provided to build an error message only if necessary.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-03 14:03:41 +02:00