Skip to content
Snippets Groups Projects

fix: Resolve test coverage report regression

2 files
+ 13
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -31,6 +31,7 @@ import org.eclipsefoundation.caching.service.LoadingCacheManager;
import org.eclipsefoundation.core.service.APIMiddleware;
import org.eclipsefoundation.foundationdb.client.model.SysRelationData;
import org.eclipsefoundation.foundationdb.client.model.full.FullOrganizationContactData;
import org.eclipsefoundation.utils.helper.TransformationHelper;
import org.eclipsefoundation.wg.api.FoundationDbAPI;
import org.eclipsefoundation.wg.config.WorkingGroupsConfig;
import org.eclipsefoundation.wg.helpers.WorkingGroupsHelper;
@@ -133,7 +134,7 @@ public class DefaultWorkingGroupsService implements WorkingGroupsService {
try {
List<String> documentIds = getWGPADocumentIDs().get(alias);
if (documentIds == null || documentIds.isEmpty()) {
LOGGER.warn("No agreement documents found for WG '{}', committees cannot be mapped", alias);
LOGGER.warn("No agreement documents found for WG '{}', committees cannot be mapped", TransformationHelper.formatLog(alias));
return null;
}
@@ -143,7 +144,7 @@ public class DefaultWorkingGroupsService implements WorkingGroupsService {
.toList();
// Size of 2 means only IG and CR type found, indicating invalid prefix
if (relations == null || relations.isEmpty() || relations.size() == INVALID_PREFIX_COUNT) {
LOGGER.warn("Could not find full committee relation mappings for prefix '{}'", groupPrefix);
LOGGER.warn("Could not find full committee relation mappings for prefix '{}'", TransformationHelper.formatLog(groupPrefix));
return null;
}
@@ -152,7 +153,9 @@ public class DefaultWorkingGroupsService implements WorkingGroupsService {
if (contacts == null || contacts
.stream()
.noneMatch(c -> c.getSysRelation().getRelation().toLowerCase().startsWith(groupPrefix.toLowerCase()))) {
LOGGER.error("No committee/council members found for prefix code {} in working group with alias '{}'", groupPrefix, alias);
LOGGER
.error("No committee/council members found for prefix code {} in working group with alias '{}'",
TransformationHelper.formatLog(groupPrefix), TransformationHelper.formatLog(alias));
return null;
}
@@ -281,7 +284,7 @@ public class DefaultWorkingGroupsService implements WorkingGroupsService {
.getData();
if (orgContacts.isEmpty()) {
LOGGER.warn("Could not find any OrgContacts for '{}', there may be a connection error", alias);
LOGGER.warn("Could not find any OrgContacts for '{}', there may be a connection error", TransformationHelper.formatLog(alias));
return Collections.emptyList();
}
Loading