175 Commits

Author SHA1 Message Date
YevhenBondarenko
272e3e8d6a merge with feature/attr_tskv_version 2024-07-09 16:02:52 +02:00
YevhenBondarenko
d6367c9680 added version to timeseries and attribute protos 2024-07-09 15:19:01 +02:00
ViacheslavKlimov
4302b63fd9 Merge remote-tracking branch 'origin/feature/attr_tskv_version' into feature/entities-version 2024-07-09 14:13:30 +03:00
ViacheslavKlimov
b894cbc5d2 Fix Caffeine's getAndPutInTransaction; add compute method to VersionedTbCache 2024-07-09 14:13:14 +03:00
ViacheslavKlimov
6190c30662 Merge remote-tracking branch 'origin/feature/attr_tskv_version' into feature/entities-version 2024-07-09 13:19:02 +03:00
ViacheslavKlimov
cf821515fb Refactoring for versioned caches 2024-07-09 13:17:25 +03:00
ViacheslavKlimov
7fb5f268c7 Merge remote-tracking branch 'origin/feature/attr_tskv_version' into feature/entities-version
# Conflicts:
#	common/data/src/main/java/org/thingsboard/server/common/data/HasVersion.java
2024-07-05 15:03:39 +03:00
YevhenBondarenko
77a420b6d6 fixed versioned caffeine cache 2024-07-04 19:02:19 +02:00
YevhenBondarenko
0b51baf38d LUA script improvements and used versioned cache for latest ts 2024-07-03 16:03:19 +02:00
YevhenBondarenko
6c417f209f Merge remote-tracking branch 'smatvienko-tb/feature/latest-ts-redis-cache-aside-dao' into feature/attr_tskv_version 2024-07-02 12:56:33 +02:00
YevhenBondarenko
6162060e88 fixed insert result and used expiration 2024-07-01 12:24:27 +02:00
YevhenBondarenko
118407d982 implemented versioned cache 2024-06-26 15:51:32 +02:00
Igor Kulikov
468c007882 Version set to 3.7.1-SNAPSHOT 2024-06-20 15:53:41 +03:00
ViacheslavKlimov
c554246218 Ignore tenant not found for Cassandra rate limits 2024-05-06 14:21:40 +03:00
Andrew Shvayka
c8bc0f6793
Merge pull request #10527 from thingsboard/feature/rule-node-caches-replacement
Replacement of local cache in rule nodes with cached entity service APIs
2024-05-02 16:02:06 +03:00
Oleksandra Matviienko
63df92e995 JUnit5 migration in common. Junit-platform.properties and logback-test.xml where added to java resource directories if needed.
Signed-off-by: Oleksandra Matviienko <al.zzzeebra@gmail.com>
2024-04-26 23:55:17 +02:00
ShvaykaD
ba195d1a1d move upgrade to java & refactoring after review 2024-04-22 20:24:20 +03:00
Sergey Matvienko
a4469f6953 TsLatestRedisCache: added LUA upsert script. load script, eval, evalsha, test for script sha, fetch latest by zRange Redis command 2024-04-17 12:14:42 +02:00
Sergey Matvienko
034b480a6c RedisTbTransactionalCache refactored to make doGet using the rawKey and the Redis connection precalculated slot based on hash 2024-04-16 16:47:27 +02: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
Sergey Matvienko
44096a7cb7 TS latest dao put to Redis WIP 2024-04-08 14:57:20 +02:00
Sergey Matvienko
9466578c91 WIP CachedRedisSqlTimeseriesLatestDao.java 2024-04-03 11:46:03 +02:00
Sergey Matvienko
3a86913e24 RedisTbTransactionalCache refactored deprecated methods 2024-04-03 10:05:01 +02:00
Andrew Shvayka
1673d3d065
Merge pull request #9225 from dashevchenko/tls_for_redis
Added ssl support for redis
2024-02-08 14:02:40 +02:00
YevhenBondarenko
d2961e39e7 merge with master 2024-02-06 22:40:27 +01:00
dashevchenko
6a755ab0b7 deleted java keystore type of creds support 2024-02-06 15:10:09 +02:00
ViacheslavKlimov
a729967a93 Fix DefaultRateLimitService init 2024-01-26 16:06:50 +02:00
ViacheslavKlimov
3ee8a8c56d Refactor rate limit service 2024-01-26 12:17:37 +02:00
dashevchenko
e27ef320e7 updated env variable name and descriptions 2024-01-22 12:31:01 +02:00
dashevchenko
9af96ad5be resolved conflicts after merge 2024-01-18 14:39:14 +02:00
dashevchenko
b33d1f9c69 Merge remote-tracking branch 'upstream/develop/3.7' into tls_for_redis 2024-01-18 12:19:53 +02:00
Andrii Shvaika
5acf527f1a Version set to 3.7.0-SNAPSHOT 2024-01-16 11:43:44 +02:00
YevhenBondarenko
60be820915 merge with master 2024-01-15 18:51:00 +01:00
Igor Kulikov
c5a72ed8df Update license header to 2024 year. 2024-01-09 10:46:16 +02:00
YevhenBondarenko
61602330ec merge with 3.7 2023-12-28 12:16:14 +01:00
Igor Kulikov
bc35df1dd7 Version set to 3.6.3-SNAPSHOT 2023-12-27 12:58:15 +02:00
YevhenBondarenko
feb44656f1 merge with master 2023-12-26 00:58:31 +01:00
YevhenBondarenko
8ccd70fc65 Used ProtoUtils instead of ProtoWIthFSTService for serialization 2023-12-20 17:33:04 +01:00
YevhenBondarenko
5b9eae4a6f license format 2023-12-14 20:08:52 +01:00
YevhenBondarenko
5869378c2c Implemented Json serialization, added custom serializer for the Device redis cache 2023-12-14 20:02:53 +01:00
YevhenBondarenko
8ac80476ad added encode/decode time stats and refactoring 2023-11-27 23:13:03 +01:00
YevhenBondarenko
d6b56177a2 fst stats in Grafana 2023-11-21 16:00:30 +01:00
Andrew Shvayka
36739e7469
Merge pull request #9591 from dashevchenko/cacheFix
Transactional cache issue
2023-11-16 16:06:22 +02:00
Andrii Shvaika
df24c363ce Version set to 3.6.2-SNAPSHOT 2023-11-13 17:07:32 +02:00
dashevchenko
6551658bfc updated TbTransactionalCache with method that retrieve but doesn`t put value in cache 2023-11-10 13:17:23 +02:00
Andrii Shvaika
162bf8a1f2 Device Cache fix 2023-11-06 17:36:38 +02:00
Andrii Shvaika
33abe0ebe5 Fix cache key for device cache 2023-11-06 14:34:50 +02:00
Andrii Shvaika
dd4b874b5f Version set to 3.6.1-SNAPSHOT 2023-09-27 17:38:27 +03:00
Igor Kulikov
8cefca23ac Version set to 3.6.1-SNAPSHOT 2023-09-25 11:27:00 +03:00
dashevchenko
b92f543833 updated default value for redis ssl config 2023-09-19 12:03:44 +03:00