Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Device Management INVENTORY-V1 #3264

Merged
merged 15 commits into from
Mar 15, 2021

Conversation

Coduz
Copy link
Contributor

@Coduz Coduz commented Mar 5, 2021

This PR introduces the support for Kura INVENTORY-V1 request handler.

The main use of this request handler is to list different types of packages present on the device.

Listable packages are:

System Packages: .rpm, .deb, and etc.
OSGi Bundles: this overlaps a bit with DEPLOY-V2/bundles request handler.
Deployment packages: this overlaps a bit with DEPLOY-V2/packages request handler
All packages: a list of all types of packages including the specific ones above.

Related Issue
None

Description of the solution adopted
Implemented new management services.
Implemented REST api resource and OpenAPI documentation files
Implemented Console management tab

Screenshots
If applicable, add screenshots to help explain your solution

Any side note on the changes made
While implementing this feature a bit of refactoring and cleanup has been performed on the following components

  • Device Event Console Tab: mainly renaming unclear "history" name references.
  • Device Request and Response messages: mainly cleaning up inheritance between classes to allow reuse of code
  • Device Management Model: moved classes to appropriated packages
  • Javadoc improvements

@Coduz Coduz added the Enhancement This PR/Issue improves an part of Kapua label Mar 5, 2021
@Coduz Coduz requested a review from lorthirk March 5, 2021 11:02
@Coduz Coduz requested a review from stefanomorson March 5, 2021 11:02
@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #3264 (125a191) into develop (f6ac4d3) will decrease coverage by 23.60%.
The diff coverage is 3.58%.

Impacted file tree graph

@@              Coverage Diff               @@
##             develop    #3264       +/-   ##
==============================================
- Coverage      49.32%   25.72%   -23.61%     
+ Complexity       762      660      -102     
==============================================
  Files           1455     1467       +12     
  Lines          29749    29937      +188     
  Branches        2498     2504        +6     
==============================================
- Hits           14675     7701     -6974     
- Misses         14244    21636     +7392     
+ Partials         830      600      -230     
Impacted Files Coverage Δ Complexity Δ
...ources/v1/resources/DeviceManagementInventory.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...eclipse/kapua/app/api/web/JaxbContextResolver.java 0.00% <ø> (-77.78%) 0.00 <0.00> (-2.00)
...service/device/management/message/KapuaMethod.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...nagement/message/notification/OperationStatus.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...management/message/response/KapuaResponseCode.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...anagement/message/response/ResponseProperties.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...ment/message/xml/KapuaAppPropertiesXmlAdapter.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ice/device/call/kura/model/asset/AssetMetrics.java 88.88% <ø> (ø) 4.00 <0.00> (?)
...e/device/call/kura/model/bundle/BundleMetrics.java 88.88% <ø> (ø) 4.00 <0.00> (?)
...device/call/kura/model/command/CommandMetrics.java 95.23% <ø> (ø) 4.00 <0.00> (?)
... and 581 more

Coduz added 15 commits March 12, 2021 09:39
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
@Coduz Coduz force-pushed the feature-inventoryV1 branch from 7466d49 to 99e9674 Compare March 12, 2021 08:39
@Coduz Coduz changed the title Feature Inventory v1 [Feature] Device Management INVENTORY-1 Mar 12, 2021
@Coduz Coduz changed the title [Feature] Device Management INVENTORY-1 [Feature] Device Management INVENTORY-V1 Mar 12, 2021
@Coduz Coduz merged commit a3db71e into eclipse-kapua:develop Mar 15, 2021
@Coduz Coduz deleted the feature-inventoryV1 branch March 15, 2021 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This PR/Issue improves an part of Kapua
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant