Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
275 commits
Select commit Hold shift + click to select a range
8f92c4b
add group cat name
SauravBizbRolly Aug 20, 2026
634fef0
add group cat name
SauravBizbRolly Aug 20, 2026
ae131c1
add group cat name
SauravBizbRolly Aug 21, 2026
68caa17
add group cat name
SauravBizbRolly Aug 21, 2026
230400e
add group cat name
SauravBizbRolly Aug 21, 2026
95f509d
add group cat name
SauravBizbRolly Aug 21, 2026
082b7c7
add group cat name
SauravBizbRolly Aug 21, 2026
25b10ae
add group cat name
SauravBizbRolly Aug 21, 2026
bfb582c
add group cat name
SauravBizbRolly Aug 21, 2026
536bdf0
add group cat name
SauravBizbRolly Aug 21, 2026
00d7c6a
add group cat name
SauravBizbRolly Aug 21, 2026
0f0f3a5
add group cat name
SauravBizbRolly Aug 21, 2026
9f44943
add group cat name
SauravBizbRolly Aug 21, 2026
a341bdc
implement single selection of incentive approval
SauravBizbRolly Aug 26, 2026
4417573
optmize incentive api
SauravBizbRolly Aug 26, 2026
c1da8d0
optmize incentive api
SauravBizbRolly Aug 26, 2026
d4437fb
optmize incentive api
SauravBizbRolly Aug 27, 2026
cadcf48
optmize incentive api
SauravBizbRolly Aug 27, 2026
935f4e9
optmize incentive api
SauravBizbRolly Aug 27, 2026
14209d5
optmize incentive api
SauravBizbRolly Aug 27, 2026
696d3e0
optmize incentive api
SauravBizbRolly Aug 27, 2026
0aa0cf6
fix notification issue
SauravBizbRolly Aug 31, 2026
e5f7283
fix notification issue
SauravBizbRolly Aug 31, 2026
d72a241
fix notification issue
SauravBizbRolly Aug 31, 2026
7f46730
fix notification issue
SauravBizbRolly Aug 31, 2026
f96720a
fix notification issue
SauravBizbRolly Aug 31, 2026
a7325a1
fix notification issue
SauravBizbRolly Aug 31, 2026
efa5921
fix notification issue
SauravBizbRolly Aug 31, 2026
d4fc20a
fix notification issue
SauravBizbRolly Aug 31, 2026
2966632
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
04d7134
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
c6642d2
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
2010981
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
d061936
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
07c038a
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
9e86821
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
54a06eb
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
4f830c4
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
e5eae5a
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
3129bbc
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
0c5e41e
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
f1f2496
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
120036c
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
74ef448
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
96e9cc7
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
ade97fa
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
78a2ac2
fix rtd test incentive
SauravBizbRolly Sep 1, 2026
cf38689
fix approval status issuse
SauravBizbRolly Sep 1, 2026
864d919
fix approval status issuse
SauravBizbRolly Sep 1, 2026
d6df5ed
fix approval status issuse
SauravBizbRolly Sep 1, 2026
9c0ef05
fix approval status issuse
SauravBizbRolly Sep 1, 2026
fa58720
fix approval status issuse
SauravBizbRolly Sep 2, 2026
a74ed96
fix approval status issuse
SauravBizbRolly Sep 2, 2026
814170a
Merge pull request #334 from PSMRI/feature/get_asha_by_subcenter
vishwab1 Sep 2, 2026
6b89600
fix approval status issuse
SauravBizbRolly Sep 2, 2026
6ad0d41
Merge pull request #335 from PSMRI/sm/hot_fix_3.10.0
vishwab1 Sep 3, 2026
db0be18
Merge release-3.8.3 into main
vishwab1 Sep 3, 2026
11d05c6
fix: resolve IDOR vulnerability by extracting userId from JWT token
vishwab1 Sep 3, 2026
be69bb1
Merge pull request #336 from PSMRI/vb/release-3.8.3-to-main
SauravBizbRolly Sep 3, 2026
51dcdbc
fix approval status issuse
SauravBizbRolly Sep 7, 2026
5df0557
fix approval status issuse
SauravBizbRolly Sep 7, 2026
3d36b14
fix approval status issuse
SauravBizbRolly Sep 7, 2026
608fce6
feat(badges): config, freezes and earned-log endpoints for SAKHI badges
vaibhav45sktech Sep 7, 2026
8545e8e
fix approval status issuse
SauravBizbRolly Sep 7, 2026
78dd30b
fix approval status issuse
SauravBizbRolly Sep 7, 2026
20cc2df
fix approval status issuse
SauravBizbRolly Sep 7, 2026
b0c66bb
fix approval status issuse
SauravBizbRolly Sep 8, 2026
9864eab
fix approval status issuse
SauravBizbRolly Sep 8, 2026
5fcd548
fix approval status issuse
SauravBizbRolly Sep 8, 2026
bf75797
fix approval status issuse
SauravBizbRolly Sep 8, 2026
8f6c782
fix approval status issuse
SauravBizbRolly Sep 8, 2026
d4fb604
fix approval status issuse
SauravBizbRolly Sep 8, 2026
d667ca8
fix approval status issuse
SauravBizbRolly Sep 8, 2026
60d48ce
fix approval status issuse
SauravBizbRolly Sep 8, 2026
6a0769b
fix approval status issuse
SauravBizbRolly Sep 8, 2026
ffa470e
fix approval status issuse
SauravBizbRolly Sep 8, 2026
3542c54
fix approval status issuse
SauravBizbRolly Sep 8, 2026
10b2f1e
fix approval status issuse
SauravBizbRolly Sep 8, 2026
24fe99e
fix approval status issuse
SauravBizbRolly Sep 8, 2026
f58efb2
fix approval status issuse
SauravBizbRolly Sep 8, 2026
9a807fa
fix approval status issuse
SauravBizbRolly Sep 8, 2026
1930a70
fix approval status issuse
SauravBizbRolly Sep 8, 2026
269736d
fix issue of default activity approval status
SauravBizbRolly Sep 8, 2026
4612619
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
4ad7212
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
9226611
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
9a820b0
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
0a79113
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
86380f9
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
5674f54
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
d02b80e
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
b375bb4
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
b03267c
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
566e72a
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
0d53a7c
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
13a68cc
fix issue of default activity approval status
SauravBizbRolly Sep 9, 2026
453d3af
change status to unclaimed after end of month
SauravBizbRolly Sep 9, 2026
3237fb2
Merge pull request #337 from PSMRI/feature/overdue_feature_for_superv…
SauravBizbRolly Sep 9, 2026
1af102d
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
ec04e7b
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
3df3c52
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
b7be2a2
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
85e97e8
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
65fd227
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
797827b
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
bdd271b
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
d04c2d5
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
ec08d9a
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
edcac63
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
800c031
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
ce1e4f7
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
f8a32d1
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
3b08024
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
63deeaa
change status to unclaimed after end of month
SauravBizbRolly Sep 10, 2026
cdef0cf
change status to unclaimed after end of month
SauravBizbRolly Sep 11, 2026
37f1c14
feat(badges): carry a stable award key on the earned log
vaibhav45sktech Sep 11, 2026
2152675
fix(tests): unblock test-compile by resolving pre-existing signature …
vaibhav45sktech Sep 14, 2026
1228ff8
change status to unclaimed after end of month
SauravBizbRolly Sep 14, 2026
3ff4e29
fix(tests): align controller test stubs and getPNCForPW with current …
vaibhav45sktech Sep 14, 2026
6edf348
change status to unclaimed after end of month
SauravBizbRolly Sep 14, 2026
48cf500
change status to unclaimed after end of month
SauravBizbRolly Sep 14, 2026
9af6538
change status to unclaimed after end of month
SauravBizbRolly Sep 14, 2026
f20666f
remove unwanted ssd portal code
SauravBizbRolly Sep 15, 2026
af7b548
fix is_approved nullable key issue
SauravBizbRolly Sep 16, 2026
44a4d41
Merge pull request #345 from PSMRI/fix_nullable_key_issue
vishwab1 Sep 16, 2026
f49a88d
add new feature of update anc home visit
SauravBizbRolly Sep 16, 2026
9106044
add new feature of update anc home visit
SauravBizbRolly Sep 16, 2026
7038a3c
add new feature of update anc home visit
SauravBizbRolly Sep 16, 2026
0ebd25b
add new feature of update anc home visit
SauravBizbRolly Sep 16, 2026
286cda7
add new feature of update anc home visit
SauravBizbRolly Sep 16, 2026
038ce73
add new feature of update anc home visit
SauravBizbRolly Sep 16, 2026
1f03243
add new feature of update anc home visit
SauravBizbRolly Sep 16, 2026
b8e4d58
add new feature of update anc home visit
SauravBizbRolly Sep 17, 2026
8c3e26f
Merge pull request #346 from PSMRI/fix/asha_mt_incentiev_issue_and_am…
vishwab1 Sep 17, 2026
6a5c037
fix incentive approval for anm
SauravBizbRolly Sep 18, 2026
d581796
fix incentive approval for anm
SauravBizbRolly Sep 18, 2026
2a073a4
Merge pull request #347 from PSMRI/fix/incentive_approval_foranm
vishwab1 Sep 18, 2026
5f4cf46
Merge remote-tracking branch 'upstream/main' into merge_3.10.0_to_main
SauravBizbRolly Sep 18, 2026
10ff795
merge 3.10.0 to main
SauravBizbRolly Sep 18, 2026
60d6b16
fix hbnc visit isssue
SauravBizbRolly Sep 21, 2026
316ac0e
fix hbnc visit isssue
SauravBizbRolly Sep 21, 2026
dcacbd6
Merge pull request #349 from PSMRI/fix/hbnc_sync_issue
SauravBizbRolly Sep 21, 2026
c73b649
Merge pull request #348 from PSMRI/merge_3.10.0_to_main
SauravBizbRolly Sep 21, 2026
7b38e9c
commit release-3.11.0
SauravBizbRolly Sep 21, 2026
87510b6
commit release-3.11.0
SauravBizbRolly Sep 22, 2026
f1f9970
commit release-3.11.0
SauravBizbRolly Sep 22, 2026
e71d470
adolescentHealth issue fix
SauravBizbRolly Sep 22, 2026
171dfea
adolescentHealth issue fix
SauravBizbRolly Sep 22, 2026
474980a
adolescentHealth issue fix
SauravBizbRolly Sep 22, 2026
03fdf4e
Merge pull request #351 from PSMRI/fix/code_issue
SauravBizbRolly Sep 22, 2026
a07fdf2
adolescentHealth issue fix
SauravBizbRolly Sep 22, 2026
c047293
adolescentHealth issue fix
SauravBizbRolly Sep 22, 2026
c1a43f0
adolescentHealth issue fix
SauravBizbRolly Sep 22, 2026
0ff3706
add variable in common_example.properties
SauravBizbRolly Sep 22, 2026
6335f0f
fix mda synch issue
SauravBizbRolly Sep 22, 2026
3bdade8
Merge pull request #354 from PSMRI/fix/add_stop_tb_missing_variable_i…
SauravBizbRolly Sep 22, 2026
fce90d4
Merge pull request #352 from PSMRI/fix/adoselent_issue_fix
SauravBizbRolly Sep 22, 2026
c91e5e0
Merge pull request #344 from PSMRI/release-3.10.0
vishwab1 Sep 25, 2026
6d550b0
Merge pull request #339 from PSMRI/release-3.8.3
SauravBizbRolly Sep 25, 2026
a46784f
tb screen api changes
SauravBizbRolly Sep 28, 2026
59adb7d
tb screen api changes
SauravBizbRolly Sep 28, 2026
5272ef7
tb screen api changes
SauravBizbRolly Sep 28, 2026
a96c988
tb screen api changes
SauravBizbRolly Sep 28, 2026
6220f27
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
cd1af6b
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
4963ba8
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
5db0853
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
14a7cf7
new api for tb referral follow up feature
SauravBizbRolly Sep 29, 2026
5be34a8
add sync date and sync by column in every table
SauravBizbRolly Sep 29, 2026
393bb27
chore: merge main into the badges API branch
vaibhav45sktech Sep 27, 2026
65828ab
Merge pull request #341 from vaibhav45sktech/feature/badges-api
vaibhav45sktech Sep 30, 2026
1fc4688
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
01d5c3f
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
4c26b1f
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
1fd54ab
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
7c7d2ea
new feature for tb tpt follow up
SauravBizbRolly Sep 30, 2026
537520b
new feature for tb tpt follow up
SauravBizbRolly Oct 1, 2026
d0f7bc4
fix jsy incentive issue
SauravBizbRolly Oct 1, 2026
4f43175
fix jsy incentive issue
SauravBizbRolly Oct 1, 2026
6047f6a
Merge pull request #363 from PSMRI/sm/tb_api_changes
SauravBizbRolly Oct 1, 2026
b5794a7
fix jsy incentive issue
SauravBizbRolly Oct 1, 2026
52c6c4e
fix vhnc incentive issue
SauravBizbRolly Oct 1, 2026
f588eee
fix dto issue
SauravBizbRolly Oct 5, 2026
08677fe
fix dto issue
SauravBizbRolly Oct 5, 2026
fded8f3
tpt incentive logic
SauravBizbRolly Oct 5, 2026
b525a5f
tpt incentive logic
SauravBizbRolly Oct 5, 2026
9e3dd3b
tpt incentive logic
SauravBizbRolly Oct 5, 2026
4dc2459
tpt incentive logic
SauravBizbRolly Oct 6, 2026
8350ac1
tpt incentive logic
SauravBizbRolly Oct 6, 2026
6f364d2
tpt incentive logic
SauravBizbRolly Oct 6, 2026
85176ee
tpt incentive logic
SauravBizbRolly Oct 6, 2026
22ea14d
tpt incentive logic
SauravBizbRolly Oct 6, 2026
9a381e7
fix approval staus issue
SauravBizbRolly Oct 6, 2026
ad11dd7
fix approval staus issue
SauravBizbRolly Oct 6, 2026
3b4cc2b
fix approval staus issue
SauravBizbRolly Oct 6, 2026
77fd3bb
fix approval staus issue
SauravBizbRolly Oct 6, 2026
29e8a91
fix approval staus issue
SauravBizbRolly Oct 6, 2026
ebea387
fix approval staus issue
SauravBizbRolly Oct 6, 2026
4cf8205
fix approval staus issue
SauravBizbRolly Oct 6, 2026
86fdd55
fix approval staus issue
SauravBizbRolly Oct 6, 2026
d8edd9a
fix approval staus issue
SauravBizbRolly Oct 6, 2026
bc779a0
fix approval staus issue
SauravBizbRolly Oct 6, 2026
6e41771
fix approval staus issue
SauravBizbRolly Oct 7, 2026
6b317c8
fix approval staus issue
SauravBizbRolly Oct 7, 2026
d4ec10d
fix incentive activity code maping
SauravBizbRolly Oct 7, 2026
0d85ac3
fix mappping of asha with anm
SauravBizbRolly Oct 7, 2026
72d6015
fix child vaccination get all data issue
SauravBizbRolly Oct 9, 2026
7b1e855
fix child vaccination get all data issue
SauravBizbRolly Oct 9, 2026
34221fb
Merge pull request #368 from PSMRI/sm/testing_issue_fixes
SauravBizbRolly Oct 9, 2026
43c1b50
fix sam visit sync issue
SauravBizbRolly Oct 11, 2026
158e6ea
fix ors distrubution backdate issue
SauravBizbRolly Oct 12, 2026
092e824
Merge pull request #374 from PSMRI/fix/samvisit_sync_issue_3.11.0
SauravBizbRolly Oct 12, 2026
d432b1c
ben id incentive fix issue
SauravBizbRolly Oct 13, 2026
51f30f5
ben id incentive fix issue
SauravBizbRolly Oct 13, 2026
0d7c1e2
ben id incentive fix issue
SauravBizbRolly Oct 13, 2026
ce2e9e8
Merge pull request #376 from PSMRI/fix/ben_id_issue_incentive
SauravBizbRolly Oct 13, 2026
42e88b8
drop column
SauravBizbRolly Oct 14, 2026
eed530f
drop column
SauravBizbRolly Oct 14, 2026
aeda3f5
Merge pull request #377 from PSMRI/fix/drop_column
vishwab1 Oct 14, 2026
ca58b5b
drop column
SauravBizbRolly Oct 14, 2026
b57fe04
drop column
SauravBizbRolly Oct 14, 2026
b43996d
Merge branch 'release-3.11.0' into fix/drop_column_gps_latitude
SauravBizbRolly Oct 14, 2026
a405caa
drop column
SauravBizbRolly Oct 14, 2026
70c9143
Merge remote-tracking branch 'upstream/fix/drop_column_gps_latitude' …
SauravBizbRolly Oct 14, 2026
0d8f317
drop column
SauravBizbRolly Oct 14, 2026
aba34f9
Merge pull request #378 from PSMRI/fix/drop_column_gps_latitude
vishwab1 Oct 14, 2026
f36e2d8
fix mda incentive logic
SauravBizbRolly Oct 14, 2026
058ecaf
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
1f59766
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
71dd249
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
89e8092
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 15, 2026
dee7015
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 16, 2026
9639032
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 16, 2026
cf8e3aa
fix 10 hwc referal incentive issue
SauravBizbRolly Oct 16, 2026
8180cc8
pnc mother incentive
SauravBizbRolly Oct 16, 2026
f04cdb5
pnc mother incentive
SauravBizbRolly Oct 16, 2026
3542d0e
pnc mother incentive
SauravBizbRolly Oct 16, 2026
bef7098
Merge pull request #379 from PSMRI/fix/mp_mda_incentive_logic
SauravBizbRolly Oct 19, 2026
68b637f
add DIAGNOSTIC_DOCUMENTS_STORAGE_ROOT in ci (#385)
SauravBizbRolly Oct 22, 2026
ab9e6a4
update ci proprties (#386)
SauravBizbRolly Oct 22, 2026
e0c21c3
update ci proprties (#387)
SauravBizbRolly Oct 22, 2026
06ef2ec
fix pre prod issue in release 3.11.0
SauravBizbRolly Oct 23, 2026
35a3d7f
fix pre prod issue in release 3.11.0
SauravBizbRolly Oct 23, 2026
38c3f29
Merge pull request #388 from PSMRI/sm/pre_prod_issue_3.11.0
vishwab1 Oct 23, 2026
b2c8705
fix image store issue in village level froms
SauravBizbRolly Oct 27, 2026
0f66c1a
fix image store issue in village level froms
SauravBizbRolly Oct 27, 2026
41a927e
Merge pull request #389 from PSMRI/release-3.11.0
SauravBizbRolly Oct 27, 2026
681c36b
Merge pull request #390 from PSMRI/fix/image_issue_village_level
vishwab1 Oct 27, 2026
77f36c7
Merge to main release 3.12.0 (#397)
sehjotsinghunthinkable Nov 2, 2026
be73061
Merge origin/main into release-3.13.0
vishwab1 Nov 3, 2026
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
106 changes: 106 additions & 0 deletions .github/workflows/swagger-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Sync Swagger to AMRIT-Docs

on:
push:
branches: [ main ]
workflow_dispatch:

jobs:
swagger-sync:
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
- name: Checkout API repo
uses: actions/checkout@v4

- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven

- name: Build API (skip tests)
run: mvn -B clean package -DskipTests -DENV_VAR=local -Pswagger

- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq

- name: Run API in swagger profile
run: |
nohup java -jar target/flw-api-*.war \
--spring.profiles.active=swagger \
--server.port=9090 \
> app.log 2>&1 &
echo $! > api_pid.txt

- name: Wait for API & fetch Swagger
run: |
for i in {1..40}; do
CODE=$(curl --connect-timeout 2 --max-time 5 -s -o swagger_raw.json -w "%{http_code}" http://localhost:9090/v3/api-docs || true)

if [ "$CODE" = "200" ]; then
jq . swagger_raw.json > flw-api.json || {
echo "Swagger JSON invalid"
cat swagger_raw.json
exit 1
}

if [ "$(jq '.paths | length' flw-api.json)" -eq 0 ]; then
echo "Swagger paths empty – failing"
exit 1
fi

echo "Swagger generated successfully"
exit 0
fi

echo "Waiting for API... ($i)"
sleep 4
done

echo "Swagger not generated"
cat app.log || true
exit 1

- name: Stop API
if: always()
run: |
# Kill the process directly by PID (process-group kill is unreliable in CI)
sleep 5
if [ -f api_pid.txt ]; then
PID=$(cat api_pid.txt)
kill -TERM "$PID" 2>/dev/null || true
sleep 2
kill -9 "$PID" 2>/dev/null || true
fi
# Fallback: kill any remaining java process on port 9090
fuser -k 9090/tcp 2>/dev/null || true

- name: Checkout AMRIT-Docs
uses: actions/checkout@v4
with:
repository: PSMRI/AMRIT-Docs
token: ${{ secrets.DOCS_REPO_TOKEN }}
path: amrit-docs
fetch-depth: 0

- name: Copy Swagger JSON
run: |
mkdir -p amrit-docs/docs/swagger
cp flw-api.json amrit-docs/docs/swagger/flw-api.json

- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.DOCS_REPO_TOKEN }}
path: amrit-docs
branch: auto/swagger-update-flw-api
base: main
commit-message: "chore(docs): auto-update FLW-API swagger"
title: "chore(docs): auto-update FLW-API swagger"
delete-branch: true
body: |
This PR automatically updates FLW-API Swagger JSON
from the latest main branch build.
44 changes: 44 additions & 0 deletions .github/workflows/testcase-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: TestCase Coverage Check

on:
pull_request:
types: [opened, synchronize]

permissions: {}

jobs:
build_and_check_coverage:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Cache Maven dependencies
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-

- name: Build with Maven
run: mvn clean verify

- name: Run Coverage Check
uses: madrapps/jacoco-report@v1.7.2
with:
paths: target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
title: Code Coverage Report
comment-type: pr_comment
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ mvnw.cmd
.mvn
/logs/
src/main/environment/common_local.properties
node_modules
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Frontline Health Workers (FLW) Mobile App API Module
[![DeepWiki](https://img.shields.io/badge/DeepWiki-PSMRI%2FFLW--API-blue)](https://deepwiki.com/PSMRI/FLW-API)



### Introduction
Frontline Health Workers (FLW) Mobile App is known with brand name _SAKHI_ App. Currently this _SAKHI_ App is designed for Accredited Social Health Activist (ASHA).
Expand Down
51 changes: 36 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<environment>${ENV_VAR}</environment>
<target-properties>target/classes/application.properties</target-properties>
<source-properties>target/classes/common_${environment}.properties</source-properties>
<maven.test.skip>true</maven.test.skip>
<maven.test.skip>false</maven.test.skip>
<sonar.java.binaries>target</sonar.java.binaries>
</properties>
<dependencies>
Expand Down Expand Up @@ -218,11 +218,6 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
Expand Down Expand Up @@ -262,6 +257,17 @@
</dependencies>

<profiles>
<profile>
<id>swagger</id>
<dependencies>
<!-- H2 Database for Swagger Profile (CI only) -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>1097_flw</id>
<properties>
Expand All @@ -281,15 +287,30 @@
<finalName>${artifactId}-${version}</finalName>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down
14 changes: 7 additions & 7 deletions src/main/environment/common_ci.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

fhir-url = @env.FHIR_API@
tm-url = @env.TM_API@
common-api-base-url=@env.COMMON_API@

##--------------------------------------------## Primary db-------------------------------------------------------------------

Expand All @@ -27,11 +28,6 @@ jwt.secret=@env.JWT_SECRET_KEY@
# Redis Config
spring.redis.host=@env.REDIS_HOST@

# Stop TB: when true, saves fail with an error if camp (vanID) is not configured
stoptb.enforce.vanid=@env.STOPTB_ENFORCE_VANID@
# Stop TB: this deployment's van/camp ID, replacing the old Redis camp:vanID lookup
stoptb.van.id=@env.STOPTB_VAN_ID@

cors.allowed-origins=@env.CORS_ALLOWED_ORIGINS@

#### SMS Configuration
Expand Down Expand Up @@ -85,10 +81,14 @@ diagnostic.emrlite.truenat.password=@env.DIAGNOSTIC_EMRLITE_TRUENAT_PASSWORD@

diagnostic.emrlite.token-ttl-seconds=@env.DIAGNOSTIC_EMRLITE_TOKEN_TTL_SECONDS@
diagnostic.emrlite.refresh-ttl-seconds=@env.DIAGNOSTIC_EMRLITE_REFRESH_TTL_SECONDS@

diagnostic.documents.storage-root=@env.DIAGNOSTIC_DOCUMENTS_STORAGE_ROOT@
diagnostic.poll.xray.tick-ms=@env.DIAGNOSTIC_POLL_XRAY_TICK_MS@
diagnostic.poll.truenat.tick-ms=@env.DIAGNOSTIC_POLL_TRUENAT_TICK_MS@
# Daily cutoff (cron expression) after which all outstanding PENDING/IN_PROGRESS orders are marked EXPIRED
diagnostic.poll.expiry-cron=@env.DIAGNOSTIC_POLL_EXPIRY_CRON@

diagnostic.documents.storage-root=@env.DIAGNOSTIC_DOCUMENTS_STORAGE_ROOT@
stoptb.enforce.vanid=@env.STOPTB_ENFORCE_VANID@
# Stop TB: this deployment's van/camp ID, replacing the old Redis camp:vanID lookup
stoptb.van.id=@env.STOPTB_VAN_ID@


3 changes: 3 additions & 0 deletions src/main/environment/common_docker.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
fhir-url = ${FHIR_API}
tm-url = ${TM_API}
common-api-base-url=${COMMON_API}



##--------------------------------------------## Primary db-------------------------------------------------------------------

Expand Down
28 changes: 21 additions & 7 deletions src/main/java/com/iemr/flw/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,35 @@

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.servers.Server;
import java.util.List;

@Configuration
public class SwaggerConfig {
private static final String DEFAULT_SERVER_URL = "http://localhost:9090";
private static final String BEARER_AUTH_SCHEME = "bearerAuth";

@Bean
OpenAPI customOpenAPI() {
return new OpenAPI().info(new
Info().title("FLW API").version("version").description("A microservice for the creation and management of beneficiaries."))
.addSecurityItem(new SecurityRequirement().addList("my security"))
.components(new Components().addSecuritySchemes("my security",
new SecurityScheme().name("my security").type(SecurityScheme.Type.HTTP).scheme("bearer")));
}
public OpenAPI customOpenAPI(Environment env) {
String devUrl = env.getProperty("api.dev.url", DEFAULT_SERVER_URL);
String uatUrl = env.getProperty("api.uat.url", DEFAULT_SERVER_URL);
String demoUrl = env.getProperty("api.demo.url", DEFAULT_SERVER_URL);
return new OpenAPI()
.info(new Info().title("FLW API").version("3.1.0").description("A microservice for the creation and management of Field Level Workers (FLW) in the AMRIT ecosystem."))
.addSecurityItem(new SecurityRequirement().addList(BEARER_AUTH_SCHEME))
.components(new Components().addSecuritySchemes(BEARER_AUTH_SCHEME,
new SecurityScheme().name(BEARER_AUTH_SCHEME).type(SecurityScheme.Type.HTTP).scheme("bearer")))
.servers(List.of(
new Server().url(devUrl).description("Dev"),
new Server().url(uatUrl).description("UAT"),
new Server().url(demoUrl).description("Demo")
));
}
}
Loading
Loading