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

feat: Made PositionService dependency optional for CloudServices #5638

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

pierantoniomerlino
Copy link
Contributor

This PR modifies the CloudServices dependencies making the PositionService optional.

Related Issue: This PR fixes/closes N/A

Description of the solution adopted: In order to optimize the dependency list of the CloudService implementations, this PR removes the PoistionService static dependency and makes it optional (dynamic, 0..1). Moreover, some small improvements have been done on the code. The modifications impact only org.eclipse.kura.cloudconnection.kapua.mqtt.provider and org.eclipse.kura.cloudconnection.eclipseiot.mqtt.provider.

@pierantoniomerlino pierantoniomerlino force-pushed the optimize_deps_cloudservice branch 2 times, most recently from 09705cb to c3b23bc Compare January 8, 2025 16:08
@pierantoniomerlino
Copy link
Contributor Author

The sonar analysis fails for code coverage and duplication. This because the kapua.mqtt.provider shares some code with eclipseiot.mqtt.provider. Morever, the latter has no tests...

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2023 Eurotech and/or its affiliates and others
* Copyright (c) 2011, 2024 Eurotech and/or its affiliates and others
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy new year

@pierantoniomerlino pierantoniomerlino force-pushed the optimize_deps_cloudservice branch from 0526b41 to 01fe160 Compare January 9, 2025 10:37
@pierantoniomerlino pierantoniomerlino force-pushed the optimize_deps_cloudservice branch from 01fe160 to 395a95e Compare January 9, 2025 13:53
@MMaiero
Copy link
Contributor

MMaiero commented Jan 9, 2025

Forcing merge. The sonar part complains on code duplication due to the fact that the cloud bundles share a large amount of code. But this cannot be prevented.

@MMaiero MMaiero merged commit 80b4b9e into develop Jan 9, 2025
2 of 4 checks passed
@MMaiero MMaiero deleted the optimize_deps_cloudservice branch January 9, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants