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

Add Scope ID to isServiceEnabled() and isPropertyEnabled() #3000

Merged

Conversation

lorthirk
Copy link

This PR simply adds the scopeId parameter to isServiceEnabled() and isPropertyEnabled() methods signature, so that it can be used in the evaluation

Related Issue
No related issues

@lorthirk lorthirk added the Enhancement This PR/Issue improves an part of Kapua label Jun 15, 2020
@lorthirk lorthirk requested a review from Coduz June 15, 2020 15:54
@codecov
Copy link

codecov bot commented Jun 16, 2020

Codecov Report

Merging #3000 into develop will increase coverage by 0.79%.
The diff coverage is 5.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #3000      +/-   ##
=============================================
+ Coverage      56.94%   57.74%   +0.79%     
- Complexity      2598     2605       +7     
=============================================
  Files           1062     1062              
  Lines          22978    22978              
  Branches        2043     2043              
=============================================
+ Hits           13085    13268     +183     
+ Misses          8928     8759     -169     
+ Partials         965      951      -14     
Impacted Files Coverage Δ Complexity Δ
...commons/service/internal/AbstractKapuaService.java 75.00% <ø> (ø) 0.00 <0.00> (ø)
...store/internal/ChannelInfoRegistryServiceImpl.java 73.19% <0.00%> (ø) 12.00 <6.00> (ø)
...astore/internal/ClientInfoRegistryServiceImpl.java 72.63% <0.00%> (ø) 12.00 <6.00> (ø)
...ce/datastore/internal/MessageStoreServiceImpl.java 52.63% <ø> (ø) 11.00 <0.00> (ø)
...astore/internal/MetricInfoRegistryServiceImpl.java 73.19% <0.00%> (ø) 12.00 <6.00> (ø)
...onfiguration/AbstractKapuaConfigurableService.java 76.87% <20.00%> (ø) 0.00 <0.00> (ø)
...pua/broker/core/listener/ErrorMessageListener.java 70.83% <0.00%> (-8.34%) 0.00% <0.00%> (ø%)
...pse/kapua/commons/service/internal/ServiceDAO.java 73.08% <0.00%> (-1.67%) 0.00% <0.00%> (ø%)
...atch/persistence/jpa/JpaExecutionInstanceData.java 90.24% <0.00%> (+2.43%) 23.00% <0.00%> (+1.00%)
.../DeviceManagementOperationRegistryServiceImpl.java 69.64% <0.00%> (+3.57%) 14.00% <0.00%> (+2.00%)
... and 13 more

Copy link
Contributor

@LeoNerdoG LeoNerdoG left a comment

Choose a reason for hiding this comment

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

Hey @lorthirk,
there are some copyright banners to be fixed, can you take a look please?

@@ -99,7 +99,7 @@ public ChannelInfoRegistryServiceImpl() throws ClientUnavailableException {
@Override
public ChannelInfo find(KapuaId scopeId, StorableId id)
throws KapuaException {
if (!isServiceEnabled()) {
if (!isServiceEnabled(scopeId)) {

This comment was marked as resolved.

@@ -99,7 +99,7 @@ public ClientInfoRegistryServiceImpl() throws ClientUnavailableException {
@Override
public ClientInfo find(KapuaId scopeId, StorableId id)
throws KapuaException {
if (!isServiceEnabled()) {
if (!isServiceEnabled(scopeId)) {

This comment was marked as resolved.

@@ -229,7 +229,7 @@ protected void checkDataAccess(KapuaId scopeId, Actions action)
}

@Override
protected boolean isServiceEnabled() {
protected boolean isServiceEnabled(KapuaId scopeId) {

This comment was marked as resolved.

@@ -101,7 +101,7 @@ public MetricInfoRegistryServiceImpl() throws ClientUnavailableException {
@Override
public MetricInfo find(KapuaId scopeId, StorableId id)
throws KapuaException {
if (!isServiceEnabled()) {
if (!isServiceEnabled(scopeId)) {

This comment was marked as resolved.

@lorthirk lorthirk force-pushed the change-dynamicConfigurationPropertiesScope branch from 45db115 to 32539dd Compare June 16, 2020 07:31
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
@lorthirk lorthirk force-pushed the change-dynamicConfigurationPropertiesScope branch from 32539dd to 14c496a Compare June 16, 2020 08:03
@Coduz Coduz merged commit 1edc29d into eclipse:develop Jun 16, 2020
@lorthirk lorthirk deleted the change-dynamicConfigurationPropertiesScope branch June 17, 2020 15:05
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.

3 participants