Dmytro Skarzhynets
b43a90d1df
Separate create alarm node tests from clear alarm node tests, refactor existing and add more create alarm node tests
2024-04-10 15:24:58 +03:00
IrynaMatveieva
5a3e16f28d
added test to check node when there are no matching attributes
2024-04-10 13:40:36 +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
9c740e147d
added tests for copy to view node
2024-04-09 13:46:41 +03:00
Viacheslav Klimov
19c2c5e955
Merge pull request #10300 from irynamatveieva/fix-calculate-delta-rule-node
...
Added property to ignore delta in output messages if it is zero
2024-04-09 13:13:14 +03:00
Viacheslav Klimov
9cc0e9da7c
Merge pull request #10349 from irynamatveieva/feature/mqtt-node
...
MQTT node: added ability to send string without quotes.
2024-04-09 13:08:00 +03:00
ShvaykaD
827c898179
added test givenConcurrentAccess_whenOnMsg_thenGetFromDBInvokedOnce
2024-04-02 12:38:37 +03:00
ShvaykaD
95fad7bf1b
moved SemaphoreWithTbMsgQueue to separate file & updated logic in CalculateDeltaNode
2024-04-01 12:36:49 +03:00
ShvaykaD
85d229be2d
convert ValueWithTs to a record & replace usages of Collections.singletonList to List.of & use single key search for async method
2024-03-29 12:05:44 +02:00
dashevchenko
dae4f313e2
merged with master
2024-03-26 19:09:21 +02:00
Igor Kulikov
dc6ab4d411
Fix conflicts
2024-03-26 18:05:52 +02:00
Sergey Matvienko
add2bea56a
Check alarm status node: added tenant and ruleChainName to the log to make a log useful in multi-tenant deployments
2024-03-26 09:04:37 +01:00
Sergey Matvienko
2efd411a36
Check alarm status node: log severity DEBUG for "Failed to parse alarm" for known runtime exceptions. The ERROR severity will fire only on unexpected exception types. This will prevent flooding the error logger
2024-03-25 16:13:50 +01:00
IrynaMatveieva
242b712a90
fixed conflicts
2024-03-22 12:35:59 +02:00
Iryna Matveieva
4f860f7896
Merge branch 'master' into fix-calculate-delta-rule-node
2024-03-22 12:31:40 +02:00
ViacheslavKlimov
4ed952a9d6
Merge branch 'master' into develop/3.7
2024-03-19 15:44:23 +02:00
IrynaMatveieva
837933a2e0
moved the static toPlainText() method to the JacksonUtil class
2024-03-12 18:53:45 +02:00
IrynaMatveieva
311ef1bb8b
added a new line to the end of the file
2024-03-11 15:49:12 +02:00
IrynaMatveieva
3e8f9e3242
added ability to send string without quotes
2024-03-11 15:27:25 +02:00
IrynaMatveieva
7d4d7f97aa
restricted access modifier for CalculateDeltaTestConfig to private
2024-03-06 10:21:00 +02:00
IrynaMatveieva
c18cef5eda
changed variable names
2024-03-05 16:37:53 +02:00
thingsboard648
96a71ad8dc
changed the check to exclude only 0 deltas from the message
2024-03-05 16:03:00 +02:00
thingsboard648
0d0ca90cf9
added property to ignore delta in output messages if it is zero
2024-03-05 10:38:19 +02:00
dashevchenko
c1093dd627
merged with master
2024-03-04 11:54:56 +02:00
Andrew Shvayka
ded647f0cb
Merge pull request #10175 from dashevchenko/alarmRuleStateFix
...
Added alarm state handling for IN, NOT_IN types of operation
2024-02-16 16:40:42 +02:00
nick
7ba158b2bc
fix_bug: any(AttributeScope.class)
2024-02-16 12:46:30 +02:00
Andrew Shvayka
d5da538e09
Merge pull request #9030 from dskarzh/feature/device-state-node
...
Device state rule node; device state service improvements
2024-02-16 12:18:39 +02:00
Andrii Shvaika
decbbcb9cd
Merge with master
2024-02-15 17:09:55 +02:00
Dmytro Skarzhynets
e55d14325a
Refactor rate limiting to be configurable and use existing class
2024-02-15 17:09:32 +02:00
Dmytro Skarzhynets
094cff6174
Tell failure if originator is not a device
2024-02-14 14:01:20 +02:00
Andrew Shvayka
10ef1bc691
Merge pull request #9970 from moliboga/master
...
Updated TbGpsGeofencingActionNode
2024-02-14 11:59:14 +02:00
dashevchenko
1749a35f04
handling predicate value as coma separated string
2024-02-13 17:14:36 +02:00
dashevchenko
b6b67bb3d5
added alarm state handling for IN, NOT_IN types of operation
2024-02-13 16:26:30 +02:00
dashevchenko
aa24da06ea
TenantIdLoaderTest fix
2024-02-09 16:13:45 +02:00
Andrii Landiak
e0e3feb0d8
Fix tests
2024-02-09 09:52:25 +02:00
YevhenBondarenko
d2961e39e7
merge with master
2024-02-06 22:40:27 +01:00
artem
b0b8e56c97
small changes
2024-02-03 22:04:20 +02:00
artem
8cdde9e67c
TbGpsGeofencingActionNodeTest:
...
added extends AbstractRuleNodeUpgradeTest
added @ExtendWith(MockitoExtension.class) and refactored
2024-02-03 21:59:33 +02:00
Artemii Molyboha
016d8734aa
Merge pull request #3 from thingsboard/master
...
pr
2024-02-03 18:47:57 +02:00
Dmytro Skarzhynets
c05d543b0a
Add test to ensure message timestamp is used as event timestamp when metadata ts property is not present
2024-02-02 16:03:35 +02:00
Dmytro Skarzhynets
691a6b5d6a
Polishing after review
2024-02-02 10:52:38 +02:00
Dmytro Skarzhynets
d1a9c4432a
Add rate limit of at most one event per second per originator in node
2024-01-30 11:56:10 +02:00
Dmytro Skarzhynets
eadcf916f5
Add optimization using separate service which routes activity actions to device state service directly, when running in monolith. Refactor rule node tests
2024-01-26 16:15:11 +02:00
artem
54203ea177
TbGpsGeofencingActionNodeTest: added asserts and additional verifications
2024-01-24 19:19:10 +02:00
artem
167d8758f6
TbGpsGeofencingActionNode: renamed key to reportPresenceStatusOnEachMessage + removed told variable + tests refactored
2024-01-24 18:28:17 +02:00
Dmytro Skarzhynets
c65a9c2e0d
Remove unnecessary originator locality check
2024-01-24 17:58:24 +02:00
Dmytro Skarzhynets
a187697765
Refactor device state node test.
2024-01-24 13:29:08 +02:00
Dmytro Skarzhynets
c9d97553b8
Update license headers with 2024 year.
2024-01-24 11:10:17 +02:00
Dmytro Skarzhynets
085187176a
Merge branch 'master' into feature/device-state-node
2024-01-24 11:03:53 +02:00
Dmytro Skarzhynets
acd7829290
Fix 'create alarm' node not sending 'ENTITY_CREATED' if severity has changed.
2024-01-18 15:55:38 +02:00