eclipse / kapua

Eclipse Public License 2.0
222 stars 160 forks source link

✨ [Core] Implemented StorableNotFoundException #4042

Open Coduz opened 3 months ago

Coduz commented 3 months ago

This PR introduces a new StorableNotFoundException meant to be thrown when a Storable is not found. This exception is similar to KapuaEntityNotFountException, but for Storable classes.

Related Issue None

Description of the solution adopted

Screenshots None

Any side note on the changes made None

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 5.12821% with 37 lines in your changes missing coverage. Please review.

Project coverage is 16.67%. Comparing base (1835162) to head (c4e607c).

:exclamation: Current head c4e607c differs from pull request most recent head da423fb

Please upload reports for the commit da423fb to get more accurate results.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/eclipse/kapua/pull/4042/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/4042?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse) ```diff @@ Coverage Diff @@ ## develop #4042 +/- ## ============================================== + Coverage 0 16.67% +16.67% - Complexity 0 22 +22 ============================================== Files 0 2017 +2017 Lines 0 52221 +52221 Branches 0 4415 +4415 ============================================== + Hits 0 8707 +8707 - Misses 0 43110 +43110 - Partials 0 404 +404 ``` | [Files](https://app.codecov.io/gh/eclipse/kapua/pull/4042?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse) | Coverage Δ | | |---|---|---| | [...service/storable/exception/StorableErrorCodes.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=service%2Fcommons%2Fstorable%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fservice%2Fstorable%2Fexception%2FStorableErrorCodes.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-c2VydmljZS9jb21tb25zL3N0b3JhYmxlL2FwaS9zcmMvbWFpbi9qYXZhL29yZy9lY2xpcHNlL2thcHVhL3NlcnZpY2Uvc3RvcmFibGUvZXhjZXB0aW9uL1N0b3JhYmxlRXJyb3JDb2Rlcy5qYXZh) | `100.00% <100.00%> (ø)` | | | [.../app/api/core/model/data/JsonDatastoreMessage.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=rest-api%2Fcore%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fapp%2Fapi%2Fcore%2Fmodel%2Fdata%2FJsonDatastoreMessage.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-cmVzdC1hcGkvY29yZS9zcmMvbWFpbi9qYXZhL29yZy9lY2xpcHNlL2thcHVhL2FwcC9hcGkvY29yZS9tb2RlbC9kYXRhL0pzb25EYXRhc3RvcmVNZXNzYWdlLmphdmE=) | `95.65% <0.00%> (ø)` | | | [...a/app/api/resources/v1/resources/DataChannels.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=rest-api%2Fresources%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fapp%2Fapi%2Fresources%2Fv1%2Fresources%2FDataChannels.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-cmVzdC1hcGkvcmVzb3VyY2VzL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvYXBwL2FwaS9yZXNvdXJjZXMvdjEvcmVzb3VyY2VzL0RhdGFDaGFubmVscy5qYXZh) | `0.00% <0.00%> (ø)` | | | [...ua/app/api/resources/v1/resources/DataClients.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=rest-api%2Fresources%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fapp%2Fapi%2Fresources%2Fv1%2Fresources%2FDataClients.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-cmVzdC1hcGkvcmVzb3VyY2VzL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvYXBwL2FwaS9yZXNvdXJjZXMvdjEvcmVzb3VyY2VzL0RhdGFDbGllbnRzLmphdmE=) | `0.00% <0.00%> (ø)` | | | [...a/app/api/resources/v1/resources/DataMessages.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=rest-api%2Fresources%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fapp%2Fapi%2Fresources%2Fv1%2Fresources%2FDataMessages.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-cmVzdC1hcGkvcmVzb3VyY2VzL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvYXBwL2FwaS9yZXNvdXJjZXMvdjEvcmVzb3VyY2VzL0RhdGFNZXNzYWdlcy5qYXZh) | `0.00% <0.00%> (ø)` | | | [...ua/app/api/resources/v1/resources/DataMetrics.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=rest-api%2Fresources%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fapp%2Fapi%2Fresources%2Fv1%2Fresources%2FDataMetrics.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-cmVzdC1hcGkvcmVzb3VyY2VzL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvYXBwL2FwaS9yZXNvdXJjZXMvdjEvcmVzb3VyY2VzL0RhdGFNZXRyaWNzLmphdmE=) | `0.00% <0.00%> (ø)` | | | [...pse/kapua/service/datastore/model/ChannelInfo.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=service%2Fdatastore%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fservice%2Fdatastore%2Fmodel%2FChannelInfo.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-c2VydmljZS9kYXRhc3RvcmUvYXBpL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvc2VydmljZS9kYXRhc3RvcmUvbW9kZWwvQ2hhbm5lbEluZm8uamF2YQ==) | `0.00% <0.00%> (ø)` | | | [...ipse/kapua/service/datastore/model/ClientInfo.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=service%2Fdatastore%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fservice%2Fdatastore%2Fmodel%2FClientInfo.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-c2VydmljZS9kYXRhc3RvcmUvYXBpL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvc2VydmljZS9kYXRhc3RvcmUvbW9kZWwvQ2xpZW50SW5mby5qYXZh) | `0.00% <0.00%> (ø)` | | | [...apua/service/datastore/model/DatastoreMessage.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=service%2Fdatastore%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fservice%2Fdatastore%2Fmodel%2FDatastoreMessage.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-c2VydmljZS9kYXRhc3RvcmUvYXBpL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvc2VydmljZS9kYXRhc3RvcmUvbW9kZWwvRGF0YXN0b3JlTWVzc2FnZS5qYXZh) | `0.00% <0.00%> (ø)` | | | [...ipse/kapua/service/datastore/model/MetricInfo.java](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree&filepath=service%2Fdatastore%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Feclipse%2Fkapua%2Fservice%2Fdatastore%2Fmodel%2FMetricInfo.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse#diff-c2VydmljZS9kYXRhc3RvcmUvYXBpL3NyYy9tYWluL2phdmEvb3JnL2VjbGlwc2Uva2FwdWEvc2VydmljZS9kYXRhc3RvcmUvbW9kZWwvTWV0cmljSW5mby5qYXZh) | `0.00% <0.00%> (ø)` | | | ... and [5 more](https://app.codecov.io/gh/eclipse/kapua/pull/4042?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse) | | ... and [2002 files with indirect coverage changes](https://app.codecov.io/gh/eclipse/kapua/pull/4042/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=eclipse)