From df22ad6f2c1d8e8ea9895e0e67832496c3d51145 Mon Sep 17 00:00:00 2001 From: Holash Chand Date: Mon, 6 Jan 2025 10:53:25 +0530 Subject: [PATCH 1/2] Added workflow config env for health muster roll --- .../charts/health-services/health-muster-roll/values.yaml | 6 ++++++ deploy-as-code/helm/environments/unified-health-dev.yaml | 2 +- deploy-as-code/helm/environments/unified-health-qa.yaml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml b/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml index 2ce110159..6741d1115 100644 --- a/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml +++ b/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml @@ -180,5 +180,11 @@ env: | - name: MUSTERROLL_UPDATE_ATTENDANCE_REGISTER_REVIEW_STATUS_ENABLED value: {{ index .Values "musterroll-update-attendance-register-review-status-enabled" | quote }} {{- end }} + {{- if index .Values "musterroll-workflow-enabled" }} + - name: MUSTERROLL_WORKFLOW_ENABLED + value: {{ index .Values "musterroll-workflow-enabled" | quote }} + {{- end }} + - name: MUSTERROLL_NOWORKFLOW_CREATE_STATUS + value: "APPROVAL_PENDING" diff --git a/deploy-as-code/helm/environments/unified-health-dev.yaml b/deploy-as-code/helm/environments/unified-health-dev.yaml index 38caf7671..f88e9130d 100644 --- a/deploy-as-code/helm/environments/unified-health-dev.yaml +++ b/deploy-as-code/helm/environments/unified-health-dev.yaml @@ -546,7 +546,7 @@ health-muster-roll: musterroll-validate-start-date-monday-enabled: "false" musterroll-add-bank-account-details-enabled: "false" musterroll-update-attendance-register-review-status-enabled: "true" - + musterroll-workflow-enabled: "false" transformer: diff --git a/deploy-as-code/helm/environments/unified-health-qa.yaml b/deploy-as-code/helm/environments/unified-health-qa.yaml index 3d2cffde7..b01b4bd0e 100644 --- a/deploy-as-code/helm/environments/unified-health-qa.yaml +++ b/deploy-as-code/helm/environments/unified-health-qa.yaml @@ -365,6 +365,7 @@ health-muster-roll: musterroll-validate-start-date-monday-enabled: "false" musterroll-add-bank-account-details-enabled: "false" musterroll-update-attendance-register-review-status-enabled: "true" + musterroll-workflow-enabled: "false" transformer: egov-boundary-hierarchy-name: "HIERARCHYTEST" From d77cedba93024f5415557e121cfbe49aa41425da Mon Sep 17 00:00:00 2001 From: Holash Chand Date: Wed, 8 Jan 2025 18:01:17 +0530 Subject: [PATCH 2/2] Added health muster roll config for validation of attendance register days --- .../charts/health-services/health-muster-roll/values.yaml | 8 ++++++++ deploy-as-code/helm/environments/unified-health-dev.yaml | 4 +++- deploy-as-code/helm/environments/unified-health-qa.yaml | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml b/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml index 6741d1115..8b7e19081 100644 --- a/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml +++ b/deploy-as-code/helm/charts/health-services/health-muster-roll/values.yaml @@ -186,5 +186,13 @@ env: | {{- end }} - name: MUSTERROLL_NOWORKFLOW_CREATE_STATUS value: "APPROVAL_PENDING" + {{- if index .Values "musterroll-validate-attendance-register-enabled" }} + - name: MUSTERROLL_VALIDATE_ATTENDANCE_REGISTER_ENABLED + value: {{ index .Values "musterroll-validate-attendance-register-enabled" | quote }} + {{- end }} + {{- if index .Values "musterroll-set-default-duration-enabled" }} + - name: MUSTERROLL_SET_DEFAULT_DURATION_ENABLED + value: {{ index .Values "musterroll-set-default-duration-enabled" | quote }} + {{- end }} diff --git a/deploy-as-code/helm/environments/unified-health-dev.yaml b/deploy-as-code/helm/environments/unified-health-dev.yaml index f88e9130d..3e7d49928 100644 --- a/deploy-as-code/helm/environments/unified-health-dev.yaml +++ b/deploy-as-code/helm/environments/unified-health-dev.yaml @@ -546,7 +546,9 @@ health-muster-roll: musterroll-validate-start-date-monday-enabled: "false" musterroll-add-bank-account-details-enabled: "false" musterroll-update-attendance-register-review-status-enabled: "true" - musterroll-workflow-enabled: "false" + musterroll-workflow-enabled: "true" + musterroll-set-default-duration-enabled: "false" + musterroll-validate-attendance-register-enabled: "true" transformer: diff --git a/deploy-as-code/helm/environments/unified-health-qa.yaml b/deploy-as-code/helm/environments/unified-health-qa.yaml index b01b4bd0e..a51e7b572 100644 --- a/deploy-as-code/helm/environments/unified-health-qa.yaml +++ b/deploy-as-code/helm/environments/unified-health-qa.yaml @@ -365,7 +365,9 @@ health-muster-roll: musterroll-validate-start-date-monday-enabled: "false" musterroll-add-bank-account-details-enabled: "false" musterroll-update-attendance-register-review-status-enabled: "true" - musterroll-workflow-enabled: "false" + musterroll-workflow-enabled: "true" + musterroll-set-default-duration-enabled: "false" + musterroll-validate-attendance-register-enabled: "true" transformer: egov-boundary-hierarchy-name: "HIERARCHYTEST"