Skip to content

Commit

Permalink
HCMPRE-646: added changes (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishq-egov authored Sep 23, 2024
1 parent 1ed7c59 commit 6498f88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,7 @@ public class ProjectConfiguration {

@Value("${project.task.no.resource.validation.status}")
private List<String> noResourceStatuses;

@Value("${project.attendance.feature.enabled:true}")
private Boolean isAttendanceFeatureEnabled;
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void validateCreateProjectRequest(ProjectRequest request) {
//Verify MDMS Data
// TODO: Uncomment and fix as per HCM once we get clarity
// validateRequestMDMSData(request, tenantId, errorMap);
validateAttendanceSessionAgainstMDMS(request,errorMap,tenantId);
if(config.getIsAttendanceFeatureEnabled()) validateAttendanceSessionAgainstMDMS(request,errorMap,tenantId);

//Get boundaries in list from all Projects in request body for validation
Map<String, List<String>> boundariesForValidation = getBoundaryForValidation(request.getProjects());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,7 @@ project.location.capture.kafka.create.topic=save-location-capture-project-topic
project.location.capture.consumer.bulk.create.topic=save-location-capture-project-bulk-topic

#---------No resource statuses ------------#
project.task.no.resource.validation.status=ADMINISTRATION_FAILED, BENEFICIARY_REFUSED, CLOSED_HOUSEHOLD, NOT_ADMINISTERED
project.task.no.resource.validation.status=ADMINISTRATION_FAILED, BENEFICIARY_REFUSED, CLOSED_HOUSEHOLD, NOT_ADMINISTERED

#---------Attendance Feature ------------#
project.attendance.feature.enabled=true

0 comments on commit 6498f88

Please sign in to comment.