Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HCM Admin Console v0.3 Release code changes #1082

Merged
merged 241 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
31a75f9
kafka fix for large messages
ashish-egov Aug 14, 2024
41a4038
Update genericUtils.ts
ashish-egov Aug 14, 2024
1b0627a
Update campaignValidators.ts
ashish-egov Aug 14, 2024
3391aa4
Fixed the mdms search path keys
jagankumar-egov Aug 20, 2024
c0b91fd
fix of migration script
jagankumar-egov Aug 20, 2024
be621a6
fix on repeated key
jagankumar-egov Aug 20, 2024
b6f7ef1
Update campaignApis.ts
ashish-egov Aug 21, 2024
357c3b2
Update campaignApis.ts
ashish-egov Aug 21, 2024
17d67ec
Update campaignUtils.ts
ashish-egov Aug 21, 2024
e9176d2
Update campaignUtils.ts
ashish-egov Aug 21, 2024
598415c
Update campaignUtils.ts
ashish-egov Aug 21, 2024
6f0aa6c
Merge pull request #861 from egovernments/ashish-egov-patch-1
ashish-egov Aug 21, 2024
966819a
Fix project target mapping
ashish-egov Aug 26, 2024
e4314c4
Merge pull request #866 from egovernments/ashish-egov-patch-1
nitish-egov Aug 26, 2024
a3ca543
refactored migration files fro project-factory (#867)
nitish-egov Aug 29, 2024
1b938cf
Update health-services/project-factory/src/server/api/campaignApis.ts
jagankumar-egov Aug 30, 2024
76bee2a
updated logic for regenerate if campaign type differs (#876)
nitish-egov Aug 30, 2024
e569cd5
id generation throw error update
nitish-egov Aug 30, 2024
c4f8ed6
Enhance generate template for user and facility in update ongoing ca…
nitish-egov Sep 17, 2024
f205c19
updated the campaign name logic along with handling isfailed status t…
nitish-egov Sep 17, 2024
9cedb91
updating campaign name same as parent name and number too
nitish-egov Sep 17, 2024
e4030ae
updated target template for updating ongoing campaign (#893)
nitish-egov Sep 18, 2024
bb22572
Microplan bulk user creation (#890)
ashish-egov Sep 20, 2024
50158e6
Update campaignApis.ts
ashish-egov Sep 23, 2024
237d963
Merge pull request #895 from egovernments/ashish-egov-patch-1
ashish-egov Sep 23, 2024
3c8bc66
Update campaignValidators.ts
ashish-egov Sep 23, 2024
50d7976
Merge pull request #896 from egovernments/ashish-egov-patch-1
ashish-egov Sep 23, 2024
0acfe21
changes for campaign update flow
nitish-egov Sep 25, 2024
dcf4bfb
Update campaignUtils.ts
ashish-egov Sep 25, 2024
a855c48
Merge pull request #904 from egovernments/ashish-egov-patch-1
ashish-egov Sep 25, 2024
c6b956e
Integrated required error messages
ashish-egov Sep 27, 2024
1072e98
Merge pull request #918 from egovernments/microplan-utils
ashish-egov Sep 27, 2024
3a34016
added numeric check in microplan phone number
ashish-egov Sep 27, 2024
131636b
Merge pull request #921 from egovernments/microplan-validation-enhanc…
ashish-egov Sep 27, 2024
c73f6dd
Implemented no data validation
ashish-egov Sep 27, 2024
8c43e76
added logic for creating projects , project facility and project staf…
nitish-egov Sep 30, 2024
24d88d1
added one edge case scenario
nitish-egov Sep 30, 2024
f978341
changed request limit to 1 mb
ashish-egov Sep 30, 2024
53c730f
Merge pull request #926 from egovernments/implementedRequestLimit
ashish-egov Sep 30, 2024
7f329b6
Feat : added locksheet filter for user microplan creation
ashish-egov Oct 1, 2024
35e7061
Merge pull request #931 from egovernments/locksheetFilter
ashish-egov Oct 1, 2024
61d96e4
updated logic for regenerate if campaign type differs (#876)
nitish-egov Aug 30, 2024
7ffac71
Enhancement for microplan user creation (#940)
ashish-egov Oct 7, 2024
b8e062a
some modifications for edge cases (#930)
nitish-egov Oct 8, 2024
52ed772
/* MODIFIED FOR LTS UPGRADE */
jagankumar-egov Oct 8, 2024
959d356
Microplan user enhancement
ashish-egov Oct 8, 2024
abc993a
Merge pull request #944 from egovernments/user-role-addition
ashish-egov Oct 8, 2024
4f1f5c1
Some changes regarding microplan user and boundary
ashish-egov Oct 9, 2024
127ab8f
Merge pull request #947 from egovernments/boundary-microplan
ashish-egov Oct 9, 2024
70c8b9a
added some null checks
jagankumar-egov Oct 9, 2024
bc6fa12
/* Temporay fix for project creation of LLIN since the structure of d…
jagankumar-egov Oct 9, 2024
564327a
Revert "/* MODIFIED FOR LTS UPGRADE */"
jagankumar-egov Oct 9, 2024
3fbcd79
added code to add lat long in the project-factory apis
ansh-egov Oct 10, 2024
8b02208
Changed code based on comments
ansh-egov Oct 10, 2024
69c3ff4
removed default campaignid
ansh-egov Oct 10, 2024
598d772
added code to add lat long in the project-factory apis (#951)
ansh-egov Oct 10, 2024
67ff28c
Fixed code to manage create
ansh-egov Oct 10, 2024
683d15f
Merge pull request #955 from egovernments/UCEM-807-Boundary-generation
ansh-egov Oct 10, 2024
13aaff7
fixed the build
ansh-egov Oct 11, 2024
982fd50
Merge pull request #969 from egovernments/UCEM-807-Boundary-generation
ansh-egov Oct 11, 2024
97d27cd
added for field protection on sheet data
ansh-egov Oct 14, 2024
80b30a0
Merge pull request #972 from egovernments/UCEM-808-Boundary-freezing
ansh-egov Oct 14, 2024
7a4e8f9
Facility microplan validation (#975)
ashish-egov Oct 15, 2024
5c9818b
fixes for filestore and unfreezing boundary code mandatory columns (#…
nitish-egov Oct 15, 2024
e15b3af
Update CODEOWNERS
jagankumar-egov Oct 15, 2024
a669443
Update campaignValidators.ts (#987)
ashish-egov Oct 16, 2024
ccf5c7d
some correction of error after changes from microplan code merge (#988)
nitish-egov Oct 17, 2024
c58295e
added localization fix (#993)
ashish-egov Oct 17, 2024
6b7cf00
Update campaignApis.ts (#994)
ashish-egov Oct 17, 2024
2974cdc
Added some fixes for the project transformation
jagankumar-egov Oct 17, 2024
9693d36
Update projectTypeUtils.ts
jagankumar-egov Oct 17, 2024
7ee9270
Update campaignUtils.ts
ashish-egov Oct 17, 2024
5276481
Removed date Update projectTypeUtils.ts #1006
jagankumar-egov Oct 18, 2024
abf5b88
HCEMPRE-809-Boundary-geometry-codes (#1011)
ansh-egov Oct 21, 2024
9dfdaaf
update project facility and staff mappings of exisitng facilities an…
nitish-egov Oct 21, 2024
e3c963a
added code to add lat long in the project-factory apis (#1019)
ansh-egov Oct 21, 2024
126a555
Project staff mapping correction from uuid to userserviceuuid (#1022)
nitish-egov Oct 21, 2024
f4dd750
added changes for project-resource mapping (#1028)
nitish-egov Oct 23, 2024
48beefc
Added logic to retry in project campaign create (#1031)
ansh-egov Oct 23, 2024
c41edc3
not needed to update every resource in update flow (#1036)
nitish-egov Oct 25, 2024
463dc47
Some checks enhancement (#1042)
ashish-egov Oct 28, 2024
7e8cb81
Update genericApis.ts (#1043)
ashish-egov Oct 28, 2024
b8c1bbd
Update campaignValidators.ts (#1046)
ashish-egov Oct 29, 2024
09c7805
consolidate resources array in update campaign flow (#1051)
nitish-egov Nov 4, 2024
f7b1681
Search criteria object corrected (#1052)
nitish-egov Nov 5, 2024
d60fff1
Boundaries consolidate after creating child campaign (#1056)
nitish-egov Nov 5, 2024
39ef34b
Boundaries correction (#1058)
nitish-egov Nov 5, 2024
7f9b869
Missing resources in chid campaign to be added from parent camaig lo…
nitish-egov Nov 5, 2024
b93f0c1
Correction datatocreate column from status to userservice uuids (#1061)
nitish-egov Nov 6, 2024
f827a54
Hide Boundary and Target Old Columns (#1062)
nitish-egov Nov 6, 2024
f69014e
Corrected target update flow (#1065)
nitish-egov Nov 6, 2024
528de86
Total count of Campaigns if only is active true (#1066)
nitish-egov Nov 6, 2024
6a987c1
HCMPRE-1212:: migrated to point only to MMDS v2 api
jagankumar-egov Nov 7, 2024
ff498e6
Update index.ts
jagankumar-egov Nov 7, 2024
8eb2bb1
User/facility inactive (#1070)
nitish-egov Nov 7, 2024
fb8c906
Refactor facility mappings (#1072)
nitish-egov Nov 7, 2024
cb60711
Created enity for boundary
jagankumar-egov Nov 7, 2024
8a6c710
updated the boundary relationship function
jagankumar-egov Nov 7, 2024
3836232
Update index.ts
jagankumar-egov Nov 7, 2024
e768762
fixed some localization issue (#1075)
ansh-egov Nov 8, 2024
a88137d
Target update while campaign update flow (#1078)
nitish-egov Nov 8, 2024
06b57b4
fixed some localization issue (#1079)
ansh-egov Nov 8, 2024
6bda053
reverted failed campaign is active true from false (#1080)
nitish-egov Nov 8, 2024
da89ad0
Merge branch 'project-factory-kafka-fix' into console
jagankumar-egov Nov 8, 2024
c4f6206
Merge branch 'master' into console-v0.3
jagankumar-egov Nov 8, 2024
298d1c0
Changed hierarchyFectch to v2 (#1077)
ashish-egov Nov 8, 2024
7504eca
calll generate when create completes for type boundary management
nitish-egov Nov 8, 2024
709702a
auto generate resource if there is no previous generated history
jagankumar-egov Nov 11, 2024
be0605d
Fixed crashloop issue (#1084)
ejagankumar Nov 11, 2024
f13b3b4
changed the master from hierarchyConfig to HierarchySchema (#1086)
nitish-egov Nov 11, 2024
5be949e
getting boundaries split on logic change (#1088)
nitish-egov Nov 11, 2024
abc9159
fixed some localization issue (#1090)
ansh-egov Nov 11, 2024
756f7c0
fixed crashloop (#1091)
ansh-egov Nov 11, 2024
0555b5b
added validation for boundary bulk upload (#1092)
nitish-egov Nov 11, 2024
5cabc25
refcatored diffferent tab separation (#1093)
nitish-egov Nov 11, 2024
b83c7e5
added timeout (#1095)
nitish-egov Nov 11, 2024
956080e
Microplan integration :: set start date to tommorow (#1096)
ansh-egov Nov 12, 2024
7f76225
Enhance PlanFacility object (#1099)
ashish-egov Nov 12, 2024
d8db430
validation for update template in create flow (#1100)
nitish-egov Nov 12, 2024
21f8bcb
removed await (#1103)
nitish-egov Nov 12, 2024
a0ab13a
some correction (#1104)
nitish-egov Nov 12, 2024
ea8db02
logic for updating targets only when present in resources array in up…
nitish-egov Nov 12, 2024
a5a0ecf
updated (#1106)
nitish-egov Nov 12, 2024
31dbdcf
added error responder (#1107)
nitish-egov Nov 12, 2024
cf8d5ea
refactored download api (#1108)
nitish-egov Nov 12, 2024
62d4c58
Cache issue fix(#1109)
nitish-egov Nov 12, 2024
d1d00f7
Merge branch 'console' into console-v0.3
jagankumar-egov Nov 13, 2024
57a6ce5
made disable of cache always during boundary generate (#1110)
ejagankumar Nov 13, 2024
7230d93
Redis cache key deleted (#1113)
nitish-egov Nov 13, 2024
002fbc1
updated redis delete func (#1114)
nitish-egov Nov 13, 2024
2fe3af5
removed cache from boundary relation create (#1115)
nitish-egov Nov 13, 2024
39677c8
corrected params of auto generate after download api (#1116)
nitish-egov Nov 13, 2024
0a64733
refactored consolidate (#1119)
nitish-egov Nov 13, 2024
5c23dc1
fix on the fetch from microplan Update campaignUtils.ts (#1120)
ansh-egov Nov 14, 2024
7637df8
Update microplanUtils.ts (#1123)
ashish-egov Nov 14, 2024
bbc0aa1
Merge branch 'console' into console-v0.3
jagankumar-egov Nov 14, 2024
6a69104
addded localization function (#1125)
nitish-egov Nov 14, 2024
0442901
Update SearchCriteria.ts
ashish-egov Nov 14, 2024
b889c06
made createandtransfrom localization as await to upsert all localizat…
nitish-egov Nov 14, 2024
61dff80
added logs in handledropdownthings (#1128)
nitish-egov Nov 14, 2024
5ae7db5
Merge branch 'console' into console-v0.3
jagankumar-egov Nov 15, 2024
29bafcd
Fixed district missing issue (#1129)
ashish-egov Nov 15, 2024
b1d7db9
Facility Village List For microplan and dropdown fix (#1130)
ashish-egov Nov 15, 2024
8c8ee8b
removed localization caceh in boundary generate flow for hierarchy mo…
nitish-egov Nov 15, 2024
002ddef
planFacility create Fix (#1132)
ashish-egov Nov 16, 2024
c4057df
fixed the localisation cache on multiple data creates in boundary
jagankumar-egov Nov 19, 2024
b95712e
Revert "fixed the localisation cache on multiple data creates in boun…
jagankumar-egov Nov 19, 2024
ddc4d33
Facility fix generation for microplan (#1134)
ashish-egov Nov 19, 2024
ed623d0
added the count info of the localisation upsert (#1144)
ejagankumar Nov 19, 2024
b7bd2aa
Microplan integrated with console for facility , user & target (#1151)
ejagankumar Nov 21, 2024
8341c07
added missing default tenantid (#1152)
ejagankumar Nov 22, 2024
2e5a743
Boundary locale fix (#1153)
ashish-egov Nov 22, 2024
0178fd3
removed duplicate key (#1154)
ashish-egov Nov 22, 2024
af319ea
Logs for reordering added (#1161)
ejagankumar Nov 22, 2024
7582924
Readme for microplans (#1160)
ashish-egov Nov 25, 2024
6ea6e9e
Optimizing roles for microplan (#1164)
ashish-egov Nov 25, 2024
93a3d2b
Improved some performance with huge campaign object (#1165)
nitish-egov Nov 25, 2024
6c0a666
Added fixes for error during processing (#1172)
ejagankumar Nov 25, 2024
40547f6
fixed the hard codings in the code (#1170)
ansh-egov Nov 26, 2024
6c65f37
Added filter check for the fetch from microplan if it has already som…
jagankumar-egov Nov 26, 2024
7086bdf
fixed hardcoding in target flow (#1175)
ansh-egov Nov 26, 2024
61dc933
Update campaignApis.ts (#1177)
ashish-egov Nov 26, 2024
afa9412
Update genericUtils.ts (#1178)
ashish-egov Nov 26, 2024
6fc84c6
changed the campaig key to activity (#1180)
ejagankumar Nov 26, 2024
b472677
handled failed generations in downlaod api (#1185)
nitish-egov Nov 27, 2024
6301f0e
Merge branch 'console' into console-v0.3
jagankumar-egov Nov 27, 2024
0adacd7
Change for roles name change (#1187)
ashish-egov Nov 27, 2024
dcdb349
added search before update in fetch all datas (#1190)
nitish-egov Nov 27, 2024
d3e9f2c
formatted and made promise all to do a promise all to make calls para…
jagankumar-egov Nov 27, 2024
dbe8a5a
filtered the plan facility response to have only facility which has o…
jagankumar-egov Nov 27, 2024
e46abd8
added hierarchy filteration from mdms (#1188)
ansh-egov Nov 27, 2024
ba89809
added extra loggers for fetch from microplan activities (#1193)
ejagankumar Nov 27, 2024
5c26779
added retry in localization upsert (#1194)
nitish-egov Nov 27, 2024
074342d
Adding the additonal loggers to know more informs on microplan integr…
jagankumar-egov Nov 28, 2024
7577e60
Merge branch 'console' into console-v0.3
jagankumar-egov Nov 28, 2024
cb33ea7
Update health-services/project-factory/src/server/validators/campaign…
jagankumar-egov Nov 28, 2024
82d0291
Update health-services/project-factory/src/server/validators/campaign…
jagankumar-egov Nov 28, 2024
f327392
Update health-services/project-factory/src/server/controllers/campaig…
jagankumar-egov Nov 28, 2024
7cbea66
fixed integration (#1197)
ansh-egov Nov 28, 2024
057e6be
Global handler (#1199)
ashish-egov Nov 28, 2024
1465e79
added heap memory log & created a env variable for incomingRequestPay…
ejagankumar Nov 29, 2024
5c9a5bb
Set memory limit and added log off avaiable, max limits (#1202)
ejagankumar Nov 29, 2024
1decc4a
Handle for google sheet formulas (#1207)
ashish-egov Nov 29, 2024
484e451
Update microplanValidators.ts (#1213)
ashish-egov Dec 2, 2024
d53c21d
Localised roles (#1217)
ashish-egov Dec 2, 2024
f63e9c0
added change log for admin console version 0.3 (#1224)
nitish-egov Dec 3, 2024
c587a40
Pvar validation (#1225)
ashish-egov Dec 3, 2024
4458113
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 3, 2024
776fb5f
refactored project reosurce mapping logic (#1204)
nitish-egov Dec 3, 2024
836bd4a
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 3, 2024
c520a81
microplan save topic changes (#1231)
ashish-egov Dec 4, 2024
55ab1a2
Update campaignApis.ts (#1232)
ashish-egov Dec 4, 2024
2056dbb
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 4, 2024
72061ac
Cleaned up data configs (#1234)
ansh-egov Dec 4, 2024
b08c0b5
Update health-services/project-factory/src/server/utils/onGoingCampai…
jagankumar-egov Dec 4, 2024
cde7f3f
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
1e17eb3
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
b4fdc1b
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
5492e2e
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
e19cbda
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
eb786c9
Update app.ts
jagankumar-egov Dec 4, 2024
1309e63
Update health-services/project-factory/src/server/utils/microplanUtil…
jagankumar-egov Dec 4, 2024
fcb5f6b
added changes for performance testing (#1236)
nitish-egov Dec 5, 2024
8059e1e
Update health-services/project-factory/src/server/utils/onGoingCampai…
jagankumar-egov Dec 4, 2024
c9b02ca
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
80702a6
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
5fc2adf
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
b60da39
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
8e8abbb
Apply suggestions from code review
jagankumar-egov Dec 4, 2024
2b1537c
Update app.ts
jagankumar-egov Dec 4, 2024
c89e818
Update health-services/project-factory/src/server/utils/microplanUtil…
jagankumar-egov Dec 4, 2024
85a20ca
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 5, 2024
ad5a88f
Apply suggestions from code review
jagankumar-egov Dec 5, 2024
a862bee
Update campaignValidators.ts (#1244)
ashish-egov Dec 5, 2024
2c17ff5
add
jagankumar-egov Dec 6, 2024
f21ef2d
added new config values
jagankumar-egov Dec 6, 2024
963fa7d
Other configs (#1250)
ejagankumar Dec 6, 2024
61a6c7c
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 6, 2024
91dfe7c
Updating debug function for error handeling (#1243)
ashish-egov Dec 6, 2024
6e63e26
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 6, 2024
10418b6
Apply suggestions from code review
jagankumar-egov Dec 6, 2024
ee9da18
Update health-services/project-factory/src/server/service/dataManageS…
jagankumar-egov Dec 6, 2024
175a995
Update dataManageService.ts
jagankumar-egov Dec 6, 2024
7e64db8
Applied code rabbit changes
jagankumar-egov Dec 6, 2024
6da0356
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 6, 2024
7b6a2bc
refactored sheet consolidate logic (#1254)
nitish-egov Dec 6, 2024
cdf8a2c
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 6, 2024
fff443c
refactor sheet consolidate for target (#1255)
nitish-egov Dec 6, 2024
a00e698
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 7, 2024
0999d44
Update package.json
jagankumar-egov Dec 7, 2024
6db7ee4
Update health-services/project-factory/src/server/utils/onGoingCampai…
jagankumar-egov Dec 7, 2024
cc7e892
removed other ui workflows
jagankumar-egov Dec 7, 2024
699641c
Update publishProjectFactory.yml
jagankumar-egov Dec 7, 2024
f710683
Update publishProjectFactory.yml
jagankumar-egov Dec 7, 2024
77d9fe6
Update publishProjectFactory.yml
jagankumar-egov Dec 7, 2024
75d295d
Update publishProjectFactory.yml
jagankumar-egov Dec 7, 2024
48dd7b1
Update publishProjectFactory.yml
jagankumar-egov Dec 7, 2024
d773adb
Update publishProjectFactory.yml
jagankumar-egov Dec 7, 2024
725d02b
consolidate sheet handle logic change (#1256)
nitish-egov Dec 8, 2024
406451e
Merge branch 'console' into console-v0.3
jagankumar-egov Dec 9, 2024
33a103f
Apply suggestions from code review
jagankumar-egov Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .github/workflows/buildWorkbenchUI.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/publishAllPackages.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/publishAllPackagesRelease.yml

This file was deleted.

115 changes: 55 additions & 60 deletions .github/workflows/publishProjectFactory.yml
Original file line number Diff line number Diff line change
@@ -1,77 +1,72 @@
name: project factory service docker Image CI
name: Project Factory Service Test Builder

on:
push:
branches: [ "campaign" ]
branches:
- "console"
- "master"
paths:
- 'utilities/project-factory/**'
- 'health-services/project-factory/**'
pull_request:
branches: [ "campaign" ]
branches:
- "console"
- "master"

jagankumar-egov marked this conversation as resolved.
Show resolved Hide resolved
jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for tags and branches
# Step 1: Checkout the repository
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for tags and branches

- name: Set up environment variables
id: env
run: |
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Extract last 8 characters of SHA
# Step 2: Set up environment variables
- name: Set up environment variables
id: env
run: |
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV

- name: Build the service Docker image
id: docker_build
working-directory: ./utilities/project-factory
run: |
IMAGE_TAG=egovio/project-factory:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }}
docker build . \
--file Dockerfile \
--tag $IMAGE_TAG
echo "::set-output name=image_name::$IMAGE_TAG"
# Step 3: Build the service Docker image
- name: Build the service Docker image
id: docker_build
working-directory: ./health-services/project-factory
run: |
IMAGE_TAG=egovio/project-factory:${{ env.ACTION_NUMBER }}
docker build . \
--file Dockerfile \
--tag $IMAGE_TAG
echo "::set-output name=image_name::$IMAGE_TAG"
echo "Service Docker image built successfully"

# Step 4: Build the database migration Docker image
- name: Build the DB migration Docker image
id: docker_db_build
working-directory: ./health-services/project-factory/migration
run: |
IMAGE_TAG=egovio/project-factory-db:${{ env.ACTION_NUMBER }}
docker build . \
--file Dockerfile \
--tag $IMAGE_TAG
echo "::set-output name=db_image_name::$IMAGE_TAG"
echo "DB migration Docker image built successfully"

jagankumar-egov marked this conversation as resolved.
Show resolved Hide resolved
- name: Build the db migration Docker image
id: docker_db_build
working-directory: ./utilities/project-factory/migration
run: |
IMAGE_TAG=egovio/project-factory-db:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }}
docker build . \
--file Dockerfile \
--tag $IMAGE_TAG
echo "::set-output name=db_image_name::$IMAGE_TAG"
node_build:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- uses: actions/checkout@v3

# Step 2: Set up Node.js environment
- uses: actions/setup-node@v2
with:
node-version: 20

- name: Login to Docker Hub and Push Docker Image
working-directory: ./utilities/project-factory
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: ${{ steps.docker_build.outputs.image_name }}
run: |
# Authenticate with Docker Hub
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

# Push the image to Docker Hub
docker push $IMAGE_NAME
echo "Docker image pushed: $IMAGE_NAME"

- name: Login to Docker Hub and Push DB Migration Docker Image
working-directory: ./utilities/project-factory/migration
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DB_IMAGE_NAME: ${{ steps.docker_db_build.outputs.db_image_name }}
run: |
# Authenticate with Docker Hub
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

# Push the image to Docker Hub
docker push $DB_IMAGE_NAME
echo "Docker image pushed: $DB_IMAGE_NAME"
# Step 3: Install dependencies and build for production
- name: Install dependencies and build
working-directory: ./health-services/project-factory
run: |
yarn install
yarn build
4 changes: 3 additions & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* @kavi-egov @sathishp-eGov
* @kavi-egov @sathishp-eGov

health-services/project-factory/ @jagankumar-egov
6 changes: 6 additions & 0 deletions health-services/project-factory/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ All notable changes to this module will be documented in this file.
1. Timeline integration for workflow of campaign.
2. Call user, facility and boundary generate when boundaries changed in campaign update flow
3. Generate target template based on delivery conditions changed to anything from default.

## 0.3.0 - 2024-12-03
1. Campaign Details Table Updates -> added new columns: parentId and active,removed unique constraint on campaignName.
Dismissed Show dismissed Hide dismissed
2. Update Ongoing Campaign (can add new boundaries , edit facilities , user and target sheet).
Dismissed Show dismissed Hide dismissed
3. Boundary Management Apis added.
Dismissed Show dismissed Hide dismissed
4. Microplan Integration api (fetch-from-microplan api) added.
Dismissed Show dismissed Hide dismissed
jagankumar-egov marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 3 additions & 1 deletion health-services/project-factory/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ARG COMMIT_ID
ENV BRANCH_NAME=$BRANCH_NAME
ENV ACTION_NUMBER=$ACTION_NUMBER
ENV COMMIT_ID=$COMMIT_ID
ENV NODE_OPTIONS="--max-old-space-size=2048"
jagankumar-egov marked this conversation as resolved.
Show resolved Hide resolved

# Copy package.json and yarn.lock (if exists)
COPY package.json ./
Expand All @@ -30,5 +31,6 @@ COPY . .
EXPOSE 3000

CMD ["yarn", "prod"]
# Replace "app.js" with your entry point file
# Replaced by CMD ["yarn", "prod"]


This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading