ThingsBoard
31936b09d2
ThingsBoard 4.4
2 months ago
Dmytro Skarzhynets
89f1a6068a
chore: adopt SPDX license headers and upgrade license-maven-plugin to 5.1.2
3 months ago
Viacheslav Klimov
686b0a3be4
Address review findings for OR key filter conditions
- Mark force-added entity-field filter mappings as ignored under OR so
EntityDataAdapter keeps the response shape identical to AND (applied
to both findEntityDataByQuery and validateEntityCountQuery paths).
- Skip the ON-clause filter in toLatestJoin when forceLeftJoin=true to
avoid duplicating the predicate that buildQuery already emits at the
middle layer under OR (different bound parameter names, same filter).
- Document the empty-predicate drop in buildQuery (safe under AND,
narrowing under OR) and the defensive vacuously-true return in
RepositoryUtils.checkKeyFilters.
- Explain why validateEntityCountQuery uses the nullable
getKeyFiltersOperation() rather than the OrDefault helper.
- Add regression test asserting latest[ENTITY_FIELD] under OR only
contains keys declared in entityFields.
8 months ago
dashevchenko
c66da7e18d
edqs: fixed entity filtering by string data points
8 months ago
Viacheslav Klimov
caac757f18
Implement OR logic in EDQS checkKeyFilters with DRY helper extraction
- Extract evaluateSingleFilter helper to avoid duplicating filter evaluation logic
- Add 3-arg checkKeyFilters overload accepting ComplexOperation parameter
- OR mode: any matching filter includes entity (short-circuit on first true)
- AND mode: all filters must match (short-circuit on first false, unchanged behavior)
- Null operation defaults to AND for backward compatibility
- Update checkFilters to pass query.getKeyFiltersOperation() through to checkKeyFilters
9 months ago
Viacheslav Klimov
ce68c8fca5
Add ComplexOperation field to EDQS query model and propagate through toNewQuery
- Add keyFiltersOperation field to EdqsQuery base class
- Update EdqsCountQuery and EdqsDataQuery constructors to accept and propagate ComplexOperation
- Propagate keyFiltersOperationOrDefault in both toNewQuery overloads in RepositoryUtils
9 months ago
Viacheslav Klimov
8246097fb4
Create unified ComplexOperation enum and update all references
- Add top-level ComplexOperation enum in query package
- Delete duplicate alarm.rule.condition.expression.ComplexOperation
- Remove nested ComplexFilterPredicate.ComplexOperation enum
- Update imports in 8 files across common/data, common/edqs, edqs, and application
9 months ago
Sergey Matvienko
1b190b84e5
RocksDB log ingested init path on debug level
11 months ago
Viacheslav Klimov
5b5b4dff6b
Update license header
11 months ago
dashevchenko
86843cea4d
remove temporary logging
1 year ago
dashevchenko
dd47813d2b
added logging to find bugs
1 year ago
Vladyslav_Prykhodko
e3967e31fc
Sync edqs and sql logics to display entity name
1 year ago
Andrii Shvaika
95cad64f50
Add support of displayName in EDQS
1 year ago
VIacheslavKlimov
1097005178
Refactor Kafka admin usage
1 year ago
dashevchenko
52bfd78174
fixed filter implementation for numeric entity field saved as str
1 year ago
Andrii Landiak
a843c86227
EDQS: human readable response on failed to send kafka msg
1 year ago
Volodymyr Babak
b0a8b9fc25
EDQS - ignore case for name and not ignore for filters
1 year ago
Volodymyr Babak
969b0fec00
Edqs - sql like queries case insensitive
1 year ago
Volodymyr Babak
3288ec257f
EDQS SQL like query updates to be in sync with legacy
1 year ago
Volodymyr Babak
e752902cfc
Fixed case sensitive matcher
2 years ago
Volodymyr Babak
dd9d954c2f
EDQS - added SQL like style for filter contains/starts with/ends with
2 years ago
Volodymyr Babak
2bd7b4d01d
EDQS - fixed relations query in case multiple previous path are present
2 years ago
Volodymyr Babak
aaead18263
Fixed case sensitive matcher
2 years ago
Volodymyr Babak
e21850f571
EDQS - added SQL like style for filter contains/starts with/ends with
2 years ago
Volodymyr Babak
1692c9b92a
EDQS - fixed relations query in case multiple previous path are present
2 years ago
Volodymyr Babak
36a2b3f666
KafkaEdqsStateService - added versionsStore.shutdown()
2 years ago
Volodymyr Babak
1d5c4ac7ab
VersionsStore - added try/catch for cleanup task
2 years ago
Volodymyr Babak
ccdcbc6350
VersionsStore - use long intead of Long to decrease heap size
2 years ago
Volodymyr Babak
46a58ca82b
Edqs - VersionStore - Use local cache instead of caffeine to reduce memory heap size
2 years ago
ViacheslavKlimov
eaa0073003
Cancel currently running tasks when the job is discarded
2 years ago
dashevchenko
071baaaad3
fixed customer creation for NULL customer id
2 years ago
ViacheslavKlimov
acae24e960
Fix EntityNameQueryProcessor
2 years ago
ViacheslavKlimov
eaab758c20
Fix EDQS state topic prefix usage
2 years ago
ViacheslavKlimov
069f052122
Refactoring and improvements for EDQS
2 years ago
ViacheslavKlimov
ef65dd9026
Fix missing queue prefixes
2 years ago
ViacheslavKlimov
14f24d2497
Fix readiness status for local EDQS
2 years ago
ViacheslavKlimov
b97c1888f1
EDQS readiness check; refactor API enabling
2 years ago
ViacheslavKlimov
f8bf512a0a
Introduce PartitionedQueueResponseTemplate with consumer per partition; use it for EDQS requests processing
2 years ago
dashevchenko
3e41cbef87
fixed customer id check for Customer
2 years ago
dashevchenko
32611a19c6
fixed customer id check for CustomerData
2 years ago
ViacheslavKlimov
de855e5236
Minor improvements for EDQS
2 years ago
ViacheslavKlimov
557776bfb7
Minor refactoring for EdqsStatsService
2 years ago
ViacheslavKlimov
7090610168
Fix EDQS stats collector names
2 years ago
ViacheslavKlimov
b806a41e62
More stats for EDQS
2 years ago
ViacheslavKlimov
d1f0ec5033
Additionally check for string compression threshold on EDQS side
2 years ago
IrynaMatveieva
580c0074d3
used tpi in main consumer manager
2 years ago
ViacheslavKlimov
16eb027956
EDQS: configurable string compression threshold; fix stats service condition
2 years ago
ViacheslavKlimov
a91d9faad9
Fix EDQS tests init
2 years ago
ViacheslavKlimov
e967a99430
Change log levels in DefaultEdqsStatsService
2 years ago
ViacheslavKlimov
33fd8af17e
Add EDQS query stats; improvements
2 years ago