eclipse / kapua

Eclipse Public License 2.0
222 stars 160 forks source link

:sparkles: [Messaging] Introduced configuration to optionally skip Device.id resolution for KapuaDataMessage #4058

Closed Coduz closed 2 months ago

Coduz commented 2 months ago

This PR intrduces a new Setting for KapuaKuraDataTranslator to skip optionally the Device.id resolution form the DataChannel.clientId

Related Issue None

Description of the solution adopted Added a new Setting to control whether the Device.id resolution will be performed or not.

Screenshots If applicable, add screenshots to help explain your solution

Any side note on the changes made This can improve performances in certain scenarios

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 6.66667% with 14 lines in your changes missing coverage. Please review.

Project coverage is 16.81%. Comparing base (6083dcf) to head (8bf666e).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/eclipse/kapua/pull/4058/graphs/tree.svg?width=650&height=150&src=pr&token=1P4N4CApH8&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse)](https://app.codecov.io/gh/eclipse/kapua/pull/4058?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse) ```diff @@ Coverage Diff @@ ## develop #4058 +/- ## ============================================= - Coverage 16.81% 16.81% -0.01% Complexity 22 22 ============================================= Files 2006 2008 +2 Lines 52101 52113 +12 Branches 4386 4387 +1 ============================================= + Hits 8762 8763 +1 - Misses 42946 42957 +11 Partials 393 393 ``` | [Files](https://app.codecov.io/gh/eclipse/kapua/pull/4058?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse) | Coverage Δ | | |---|---|---| | [...e/kapua/translator/KapuaKuraTranslatorsModule.java](https://app.codecov.io/gh/eclipse/kapua/pull/4058?src=pr&el=tree&filepath=translator%2Fkapua%2Fkura%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Ftranslator%2FKapuaKuraTranslatorsModule.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-dHJhbnNsYXRvci9rYXB1YS9rdXJhL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvdHJhbnNsYXRvci9LYXB1YUt1cmFUcmFuc2xhdG9yc01vZHVsZS5qYXZh) | `97.95% <100.00%> (+0.04%)` | :arrow_up: | | [...ranslator/setting/TranslatorKapuaKuraSettings.java](https://app.codecov.io/gh/eclipse/kapua/pull/4058?src=pr&el=tree&filepath=translator%2Fkapua%2Fkura%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Ftranslator%2Fsetting%2FTranslatorKapuaKuraSettings.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-dHJhbnNsYXRvci9rYXB1YS9rdXJhL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvdHJhbnNsYXRvci9zZXR0aW5nL1RyYW5zbGF0b3JLYXB1YUt1cmFTZXR0aW5ncy5qYXZh) | `0.00% <0.00%> (ø)` | | | [...translator/kura/kapua/TranslatorDataKuraKapua.java](https://app.codecov.io/gh/eclipse/kapua/pull/4058?src=pr&el=tree&filepath=translator%2Fkapua%2Fkura%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Ftranslator%2Fkura%2Fkapua%2FTranslatorDataKuraKapua.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-dHJhbnNsYXRvci9rYXB1YS9rdXJhL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvdHJhbnNsYXRvci9rdXJhL2thcHVhL1RyYW5zbGF0b3JEYXRhS3VyYUthcHVhLmphdmE=) | `0.00% <0.00%> (ø)` | | | [...slator/setting/TranslatorKapuaKuraSettingKeys.java](https://app.codecov.io/gh/eclipse/kapua/pull/4058?src=pr&el=tree&filepath=translator%2Fkapua%2Fkura%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Ftranslator%2Fsetting%2FTranslatorKapuaKuraSettingKeys.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-dHJhbnNsYXRvci9rYXB1YS9rdXJhL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvdHJhbnNsYXRvci9zZXR0aW5nL1RyYW5zbGF0b3JLYXB1YUt1cmFTZXR0aW5nS2V5cy5qYXZh) | `0.00% <0.00%> (ø)` | |