3281 Commits

Author SHA1 Message Date
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
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
Andrew Shvayka
b276d5e3da
Merge pull request #10145 from dashevchenko/queueStatsEntity
Entity for queue statistics
2024-04-02 12:19:33 +03:00
Andrew Shvayka
1e62ed98fa
Merge pull request #10453 from dashevchenko/sortProblemFix
Added default sorting by id for PageLink
2024-04-01 18:57:07 +03:00
Andrii Landiak
fe5b4606eb Improvement: do not use 2 queries for single_entity 2024-04-01 16:51:31 +03:00
Andrii Landiak
87e564f8c0 Use stringUtils to check if search text is not null and is not empty 2024-04-01 16:39:44 +03:00
Andrii Landiak
596d0f1135 Improvement optimization is not perfroming while text search is not null 2024-04-01 15:46:01 +03:00
Andrii Landiak
2888ac5db9 Improve EntityDataQuery using 2 query: filter and sort to find entityIds and using entityIds as List to map with telemetry and entity fields 2024-04-01 12:32:32 +03:00
ViacheslavKlimov
9d1f751f3a Fix race condition on tenant creation; refactoring 2024-03-29 15:20:56 +02:00
IrynaMatveieva
841729bca3 removed unnecessary object creation 2024-03-29 10:51:20 +02:00
dashevchenko
6c911637ae merged with master 2024-03-27 19:04:34 +02:00
Volodymyr Babak
cb9236ff78
Merge pull request #10239 from AndriiLandiak/feature/edge-oauth-support
Edge - OAuth2 support
2024-03-27 14:52:01 +02:00
dashevchenko
1f1a9c5a25 updated asset/device delete methods to delete only alarms originated by entity 2024-03-27 13:06:03 +02:00