Skip to content

Commit

Permalink
HCMPRE-646: added changelog for boolean flag to enable attendance fea…
Browse files Browse the repository at this point in the history
…ture, set to true as default for hcm, added code level comments
  • Loading branch information
kanishq-egov committed Sep 23, 2024
1 parent 1980449 commit 5819783
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions health-services/project/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ All notable changes to this module will be documented in this file.

## 1.1.5 - 2024-08-07
- Added UserAction functionality with support for Location capture.
- Added a boolean flag to enable attendance features, set to true by default.

## 1.1.4 - 2024-05-29
- Integrated Core 2.9LTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public void validateCreateProjectRequest(ProjectRequest request) {
//Verify MDMS Data
// TODO: Uncomment and fix as per HCM once we get clarity
// validateRequestMDMSData(request, tenantId, errorMap);

//Verify if Attendance feature is enabled
if(config.getIsAttendanceFeatureEnabled()) validateAttendanceSessionAgainstMDMS(request,errorMap,tenantId);

//Get boundaries in list from all Projects in request body for validation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,5 @@ project.location.capture.consumer.bulk.create.topic=save-location-capture-projec
project.task.no.resource.validation.status=ADMINISTRATION_FAILED, BENEFICIARY_REFUSED, CLOSED_HOUSEHOLD, NOT_ADMINISTERED

#---------Attendance Feature ------------#
# Enable/Disable attendance feature
project.attendance.feature.enabled=true

0 comments on commit 5819783

Please sign in to comment.