Resolving 3 integration tests related to bulk import and remoing some sysouts and correcting 322.2 migration script
This commit is contained in:
-1
@@ -34,7 +34,6 @@ import org.apache.fineract.infrastructure.bulkimport.importhandler.helper.DateSe
|
||||
import org.apache.fineract.infrastructure.bulkimport.importhandler.helper.EnumOptionDataValueSerializer;
|
||||
import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
|
||||
import org.apache.fineract.infrastructure.core.data.EnumOptionData;
|
||||
import org.apache.fineract.infrastructure.core.exception.*;
|
||||
import org.apache.fineract.portfolio.loanaccount.data.*;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
-1
@@ -272,7 +272,6 @@ public class BulkImportWorkbookPopulatorServiceImpl implements BulkImportWorkboo
|
||||
if (staffId == null){
|
||||
staff =
|
||||
(List) this.staffReadPlatformService.retrieveAllStaff(null, null, Boolean.FALSE, null);
|
||||
//System.out.println("Staff List size : "+staff.size());
|
||||
}else {
|
||||
staff = new ArrayList<>();
|
||||
staff.add(this.staffReadPlatformService.retrieveStaff(staffId));
|
||||
|
||||
-1
@@ -152,7 +152,6 @@ public class CreditBureauConfigurationAPI {
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
public String getConfiguration(@PathParam("organisationCreditBureauId") final Long organisationCreditBureauId, @Context final UriInfo uriInfo) {
|
||||
// System.out.println("config triggered");
|
||||
|
||||
this.context.authenticatedUser().validateHasReadPermission(this.resourceNameForPermissions);
|
||||
|
||||
|
||||
-1
@@ -595,7 +595,6 @@ public class NotificationDomainServiceImpl implements NotificationDomainService
|
||||
List<Role> allRoles = roleRepository.findAll();
|
||||
for (Role curRole : allRoles) {
|
||||
if (curRole.hasPermissionTo(permission) || curRole.hasPermissionTo("ALL_FUNCTIONS")) {
|
||||
System.out.println(curRole + " Role has permission");
|
||||
String memberType = curRole.getName();
|
||||
topicSubscribers = topicSubscriberReadPlatformService.getSubscribers(entityId, entityType, memberType);
|
||||
}
|
||||
|
||||
-2
@@ -77,8 +77,6 @@ public class AddressWritePlatformServiceImpl implements AddressWritePlatformServ
|
||||
this.context.authenticatedUser();
|
||||
this.fromApiJsonDeserializer.validateForCreate(command.json(), true);
|
||||
|
||||
System.out.println("request " + command.json());
|
||||
|
||||
if (command.longValueOfParameterNamed("stateProvinceId") != null) {
|
||||
stateId = command.longValueOfParameterNamed("stateProvinceId");
|
||||
stateIdobj = this.codeValueRepository.getOne(stateId);
|
||||
|
||||
-1
@@ -415,7 +415,6 @@ public class ClientFamilyMembersWritePlatformServiceImpl implements ClientFamily
|
||||
|
||||
this.context.authenticatedUser();
|
||||
|
||||
System.out.println("clientFamilyMemberId "+clientFamilyMemberId);
|
||||
apiJsonDeserializer.validateForDelete(clientFamilyMemberId);
|
||||
|
||||
ClientFamilyMembers clientFamilyMember=null;
|
||||
|
||||
-5
@@ -629,12 +629,7 @@ public class LoansApiResource {
|
||||
|
||||
final ApiRequestJsonSerializationSettings settings = this.apiRequestParameterHelper.process(uriInfo.getQueryParameters(),
|
||||
mandatoryResponseParameters);
|
||||
long end = System.currentTimeMillis() ;
|
||||
System.out.println("LoansApiResource.retrieveLoan() Time took: "+(end-start));
|
||||
start = System.currentTimeMillis() ;
|
||||
String toReturn = this.toApiJsonSerializer.serialize(settings, loanAccount, this.LOAN_DATA_PARAMETERS);
|
||||
end = System.currentTimeMillis() ;
|
||||
System.out.println("LoansApiResource.retrieveLoan() Time took to Serialize: "+(end-start));
|
||||
return toReturn ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user