Skip to content

Commit

Permalink
Cleaned up data configs (#1234)
Browse files Browse the repository at this point in the history
* Update index.ts

* Update campaignUtils.ts
  • Loading branch information
ansh-egov authored Dec 4, 2024
1 parent 55ab1a2 commit 72061ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions health-services/project-factory/src/server/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,15 @@ const config = {
boundaryCodeMandatory: 'HCM_ADMIN_CONSOLE_BOUNDARY_CODE_MANDATORY',
boundaryCodeOld: "HCM_ADMIN_CONSOLE_BOUNDARY_CODE_OLD",
boundaryTab: process.env.BOUNDARY_TAB_NAME || "HCM_ADMIN_CONSOLE_BOUNDARY_DATA",
// Default criteria for generating different tabs
generateDifferentTabsOnBasisOf: process.env.SPLIT_BOUNDARIES_ON || "ADMIN_DISTRITO",
// default configurable number of data of boundary type on which generate different tabs
numberOfBoundaryDataOnWhichWeSplit: process.env.SPLIT_BOUNDARIES_ON_LENGTH || "2",
boundaryRelationShipDelay: 3500
},
facility: {
facilityTab: process.env.FACILITY_TAB_NAME || "HCM_ADMIN_CONSOLE_FACILITIES",
facilitySchemaMasterName: process.env.FACILITY_SCHEMA_MASTER || "facilitySchema",
},
user: {
userTab: process.env.USER_TAB_NAME || "HCM_ADMIN_CONSOLE_USER_LIST",
userSchemaMasterName: process.env.USER_SCHEMA_MASTER || "userSchema",
userDefaultPassword: process.env.USER_DEFAULT_PASSWORD || "eGov@123",
userPasswordAutoGenerate: process.env.USER_PASSWORD_AUTO_GENERATE || "true",
mapUserViaCommonParent: process.env.MAP_USER_VIA_COMMON_PARENT || false,
Expand Down Expand Up @@ -167,7 +163,7 @@ const config = {
unfrozeTillRow: process.env.UNFROZE_TILL_ROW || "10000",
unfrozeTillColumn: process.env.UNFROZE_TILL_COLUMN || "50",
moduleName: process.env.MODULE_NAME || "HCM-ADMIN-CONSOLE",
readMeTab: "HCM_README_SHEETNAME",
readMeTab: process.env.READ_ME_TAB || "HCM_README_SHEETNAME",
userMainBoundary: "mz",
userMainBoundaryType: "Country",
idgen: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3535,10 +3535,7 @@ async function getFinalValidHeadersForTargetSheetAsPerCampaignType(
"COMMON",
400,
"VALIDATION_ERROR",
`${getLocalizedName(
config?.boundary?.generateDifferentTabsOnBasisOf,
localizationMap
)} level not present in the hierarchy`
`${differentTabsBasedOnLevel} level not present in the hierarchy`
);
}
const columnFromSchemaOfTargetTemplate = await generateDynamicTargetHeaders(
Expand Down

0 comments on commit 72061ac

Please sign in to comment.