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

Release v1.6.0 #7371

Open
wants to merge 634 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
634 commits
Select commit Hold shift + click to select a range
5d96463
feat: make close button optional
jamil314 Aug 14, 2024
2d44ab2
fix: application name in modal body
jamil314 Aug 14, 2024
f7a09f0
amend: remove `x-version` from country-config communication
jamil314 Aug 14, 2024
a25c539
fix: reloadModal of login
jamil314 Aug 14, 2024
2d790fb
chore: remove console log
jamil314 Aug 14, 2024
b7ebd66
amend: remove comment, change variable to uppercase
jamil314 Aug 15, 2024
986da8b
chore: remove redundant app versions
jamil314 Aug 15, 2024
13c6776
chore: update changelog
jamil314 Aug 15, 2024
e8db17f
fix: height of reload modal
jamil314 Aug 16, 2024
aa846ba
fix: remove buildVersion from story
jamil314 Aug 16, 2024
23441cb
Update CHANGELOG.md
rikukissa Aug 16, 2024
c5c0d19
fix: remove hovering logic on version
jamil314 Aug 16, 2024
71a64e4
fix: pass version from npm package
jamil314 Aug 16, 2024
e41a9d6
chore: remove default version
jamil314 Aug 16, 2024
040ce98
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7351-9484
jamil314 Aug 23, 2024
04e44a3
fix: keep `family` as optional
Zangetsu101 Aug 22, 2024
f864bd0
docs: update changelog
Zangetsu101 Aug 28, 2024
d462d83
Merge pull request #7536 from opencrvs/auto-pr-release-v1.6.0-7526-15414
Zangetsu101 Aug 28, 2024
40542a3
change serving country certificates (#7521)
Nil20 Aug 28, 2024
96f40c9
fix(v1.6.0): fix:preventthesamerecordwiththesamedraft-idfrombeingsubm…
Aug 29, 2024
af86117
fix(migration): check collection before creating/dropping in user-mgnt
Nil20 Aug 14, 2024
7ec742b
fix: make populationEstimatePerDay collection's id more unique
Nil20 Aug 14, 2024
846df84
fix: clean up with review changes
Nil20 Aug 19, 2024
94853bc
Merge pull request #7557 from opencrvs/auto-pr-release-v1.6.0-7513-5766
Zangetsu101 Sep 2, 2024
cc2d8d4
Merge pull request #7543 from opencrvs/auto-pr-release-v1.6.0-7521-31886
Zangetsu101 Sep 2, 2024
c0284ea
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7485-3095
Zangetsu101 Sep 2, 2024
3141197
hide signature in correction request mode
tareq89 Sep 2, 2024
eebe9b9
Merge pull request #7564 from opencrvs/auto-pr-release-v1.6.0-7563-23553
tareq89 Sep 3, 2024
712a18a
fix: update address builder for event location
Nil20 Aug 30, 2024
68a7180
docs: update changelog(7531)
Nil20 Aug 30, 2024
16d6196
fix: amend changelog
Nil20 Sep 4, 2024
ce187c2
Get client manifest and icons from country-config
tareq89 Aug 19, 2024
992c4b2
fix: sort practitionerRoleHistory and return shallow copy of userResp…
jamil314 Aug 30, 2024
382c29a
refactor: move the logic to get user role from history into util
jamil314 Sep 2, 2024
4e9f358
chore: add unit test for `getUserRoleFromHistory()`
jamil314 Sep 2, 2024
1109c3b
refactor: move `getUserRoleFromHistory` into commons
jamil314 Sep 3, 2024
52d23c8
chore: update changelog
jamil314 Sep 3, 2024
648bd80
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7351-9484
jamil314 Sep 4, 2024
bd4b77e
fix: fetch custom validators before deserializing
jamil314 Sep 4, 2024
fef5570
chore: update changelog
jamil314 Sep 4, 2024
30f576c
chore: remove unused import
jamil314 Sep 4, 2024
89652d3
test: fix unit test that calls `initValidators()`
jamil314 Sep 5, 2024
3768cfd
test: fix unit tests
jamil314 Sep 6, 2024
a309085
test: call `crateStore()` directly to avoid `flushPromises()`
jamil314 Sep 6, 2024
0d9eb06
test: fix unit test
jamil314 Sep 6, 2024
374236d
Merge pull request #7572 from opencrvs/auto-pr-release-v1.6.0-7562-32060
Zangetsu101 Sep 9, 2024
fb730e8
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7555-658
Zangetsu101 Sep 9, 2024
7bd206b
Merge pull request #7571 from opencrvs/auto-pr-release-v1.6.0-7555-658
Zangetsu101 Sep 9, 2024
c4d22e0
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7580-13018
Zangetsu101 Sep 9, 2024
d6e3a45
Merge pull request #7588 from opencrvs/auto-pr-release-v1.6.0-7580-13018
Zangetsu101 Sep 9, 2024
d2c4a52
Placeholder commit for PR #7591
invalid-email-address Sep 9, 2024
898f02c
fix: update using review form instead of register form for different …
Nil20 Sep 4, 2024
d319ccc
docs: update changelog(7462)
Nil20 Sep 4, 2024
eff1d38
fix: amend changelog
Nil20 Sep 5, 2024
a3d923f
fix: keep previous bundles signature image uiri if exists in update r…
Nil20 Sep 5, 2024
fd619d7
fix: amend keep signature uri function
Nil20 Sep 6, 2024
c15423c
fix: revert changes to save signature uri from old bundle
Nil20 Sep 6, 2024
451de04
fix: convert presigned url to minio uri while uploading signatures to…
Nil20 Sep 6, 2024
9d5cff9
fix: amend review changes
Nil20 Sep 9, 2024
a5ae178
Placeholder commit for PR #7600
invalid-email-address Sep 11, 2024
7668732
fix: update allowing file type condition for signature
Nil20 Sep 10, 2024
a711960
chore: update allowedFileFormat prop type for signature
Nil20 Sep 11, 2024
09dd209
feat: conditional filtering for document select options
Zangetsu101 Sep 2, 2024
c420d58
chore: include optionCondition in i18n type
Zangetsu101 Sep 2, 2024
cf5439d
docs: update changelog
Zangetsu101 Sep 2, 2024
11fead3
Merge pull request #7608 from opencrvs/auto-pr-release-v1.6.0-7569-29891
Zangetsu101 Sep 12, 2024
39c5f05
Placeholder commit for PR #7610
invalid-email-address Sep 13, 2024
4636477
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7601-5169
Zangetsu101 Sep 13, 2024
6250cf4
Fix: merge location bundle into Record Bundle
Siyasanga Aug 29, 2024
fb338d5
Only add location is it does not exist in bundle
Siyasanga Sep 2, 2024
6dc03df
Refactor bundleIncludesLocationResources()
Siyasanga Sep 12, 2024
d62a3e7
Record bundleIncludesLocationResources() fixes
Siyasanga Sep 12, 2024
73e17a8
Merge pull request #7607 from opencrvs/auto-pr-release-v1.6.0-7601-5169
Zangetsu101 Sep 13, 2024
299ab87
fix(migration): prevent update from over-running existing values
makelicious Sep 11, 2024
2929002
fix(migration): improve script to handle duplicates
makelicious Sep 13, 2024
cd24183
Merge pull request #7619 from opencrvs/auto-pr-release-v1.6.0-7603-26238
makelicious Sep 16, 2024
e9337d5
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7485-3095
Zangetsu101 Sep 17, 2024
21ea711
Merge pull request #7496 from opencrvs/auto-pr-release-v1.6.0-7485-3095
Zangetsu101 Sep 17, 2024
35e2bf1
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7579-29331
Zangetsu101 Sep 17, 2024
dbc3c3b
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7469-27871
Zangetsu101 Sep 17, 2024
2d57394
Merge pull request #7598 from opencrvs/auto-pr-release-v1.6.0-7579-29331
Zangetsu101 Sep 17, 2024
fc3bd19
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7351-9484
Zangetsu101 Sep 17, 2024
22851d3
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7469-27871
tahmidrahman-dsi Sep 17, 2024
2a36902
Merge pull request #7486 from opencrvs/auto-pr-release-v1.6.0-7351-9484
Zangetsu101 Sep 17, 2024
227bec6
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7469-27871
tahmidrahman-dsi Sep 17, 2024
83adb02
Merge pull request #7483 from opencrvs/auto-pr-release-v1.6.0-7469-27871
Zangetsu101 Sep 17, 2024
117bcfa
chore: remove unnecessary routes from client
Nil20 Sep 17, 2024
5e2af2f
chore: remove update application config queries and schemas
Nil20 Jul 5, 2024
91bba6b
chore: remove informant sms notification schema and queries
Nil20 Jul 5, 2024
a410af1
chore: delete informant notification db
Nil20 Jul 5, 2024
436aacf
fix: update export of application config function
Nil20 Jul 8, 2024
3f9f52a
chore: remove unused delete certificate route
Nil20 Jul 8, 2024
e831b0f
fix: remove config collection data from mongo
Nil20 Jul 8, 2024
e53b850
chore: add migration script to remove config collections
Nil20 Jul 8, 2024
2bb6b71
fix: amend migration script to drop application config database
Nil20 Jul 9, 2024
951e3db
fix: update fetching country config route options
Nil20 Jul 11, 2024
3817e62
fix: update unused config messages
Nil20 Jul 11, 2024
17a3b3b
Revert "fix: bring back certificate & notification admin ui(#7378)"
Nil20 Aug 23, 2024
019b909
chore: remove informant notification components
Nil20 Sep 2, 2024
3cddda1
fix: clean up with generation of gateway types
Nil20 Sep 2, 2024
6f8ce03
chore: revert client-gateway types for reg list types
Nil20 Sep 2, 2024
43b09d2
chore: remove certificate resolvers from client and gateway
Nil20 Sep 2, 2024
dd2a763
fix: include `UNASSIGNED_EXTENSION_URL` in the extension list of corr…
jamil314 Sep 9, 2024
1219797
chore: remove cert types from test schema
Nil20 Sep 2, 2024
3daf6f6
chore: update changelog
jamil314 Sep 9, 2024
9f94f5e
fix: create separate `unassigned` task when correcting record
jamil314 Sep 9, 2024
588ff3f
fix: remove notification resolvers from gateway and client
Nil20 Sep 2, 2024
7745fe7
chore: remove update birth registration query
Nil20 Sep 2, 2024
004078d
docs: update changelog(7156)
Nil20 Sep 2, 2024
5c933d9
chore: remove redundant function
Nil20 Sep 17, 2024
b3e1608
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7591-30574
jamil314 Sep 17, 2024
660bffd
Merge remote-tracking branch 'origin/release-v1.6.0' into auto-pr-rel…
jamil314 Sep 17, 2024
788c633
fix: send review form from client for correction actions instead of r…
jamil314 Sep 10, 2024
58aad19
Merge pull request #7622 from opencrvs/auto-pr-release-v1.6.0-7352-5703
Zangetsu101 Sep 18, 2024
3bed61e
Merge pull request #7604 from opencrvs/auto-pr-release-v1.6.0-7600-25837
Zangetsu101 Sep 19, 2024
3a339d7
chore!: get informant notification from country config
Nil20 Sep 18, 2024
0ac7fc5
chore: improve notification flag type
Nil20 Sep 18, 2024
717a25e
docs: update changelog for addtion of notification flag
Nil20 Sep 18, 2024
d3e5b16
chore: amend review changes
Nil20 Sep 18, 2024
8b9899e
docs: amend changelog after cherry picking
Nil20 Sep 19, 2024
9800e10
Fix declaration status for dup. comparison view
Siyasanga Aug 13, 2024
d6a06a9
Use IRegStatus to IDeclaration.registrationStatus
Siyasanga Aug 16, 2024
1766c69
Record declaration status fixes to the CHANGELOG.md
Siyasanga Aug 16, 2024
a394787
Refactor createReviewDeclaration status 2 RegStatus
Siyasanga Aug 19, 2024
2257a51
Move decl.status fix to 1.6.0 section of CHANGELOG
Siyasanga Aug 26, 2024
8740ef0
Fix faulty comparison in the RegisterForm.tsx
Siyasanga Aug 26, 2024
016bc50
Ref status frm duplicateRegData not declaration
Siyasanga Aug 26, 2024
9a0d135
Use RegStatus when comparing the decl.status
Siyasanga Sep 3, 2024
d9bb262
Pass the correct data 4 duplicateRegData status
Siyasanga Sep 6, 2024
6d31963
Merge pull request #7631 from opencrvs/auto-pr-release-v1.6.0-7627-3993
Zangetsu101 Sep 20, 2024
9bb0c29
Merge pull request #7623 from opencrvs/auto-pr-release-v1.6.0-7476-2672
Zangetsu101 Sep 20, 2024
c3c9db2
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7610-29573
Zangetsu101 Sep 20, 2024
caed70a
Merge pull request #7611 from opencrvs/auto-pr-release-v1.6.0-7610-29573
Zangetsu101 Sep 20, 2024
4e6c9dd
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-7591-30574
Zangetsu101 Sep 20, 2024
8af50f8
Merge pull request #7594 from opencrvs/auto-pr-release-v1.6.0-7591-30574
Zangetsu101 Sep 20, 2024
d4e7322
fix(practitioner): migrate Practitioner.name.family to unified type
makelicious Sep 19, 2024
bd3c9e8
Merge pull request #7637 from opencrvs/auto-pr-release-v1.6.0-7632-10317
makelicious Sep 20, 2024
120f6ba
Revert "fix: include `UNASSIGNED_EXTENSION_URL` in the extension list…
jamil314 Sep 20, 2024
455007d
Merge pull request #7639 from opencrvs/ocrvs-7638
Zangetsu101 Sep 23, 2024
7f69f0a
fix(migration): add role postfix for each task value id
makelicious Sep 23, 2024
49a7352
fix(migration): update task informant phone reference
makelicious Sep 23, 2024
de12c5d
Merge pull request #7647 from opencrvs/auto-pr-release-v1.6.0-7644-9144
makelicious Sep 24, 2024
2794e89
fix(v1.6.0): docker compose check in setup (#7648)
Sep 24, 2024
d802147
Placeholder commit for PR #7618
invalid-email-address Sep 25, 2024
a189a5d
fix: Date validation not working in firefox
tumbledwyer Sep 13, 2024
ed0bb9d
Update changelog
tumbledwyer Sep 25, 2024
be4958e
Merge pull request #7662 from opencrvs/auto-pr-release-v1.6.0-7618-16955
tumbledwyer Sep 25, 2024
701b22e
feat(ocrvs-7489): http button (#7574)
tahmidrahman-dsi Sep 26, 2024
07a4416
chore: update CHANGELOG.md
tahmidrahman-dsi Sep 26, 2024
b5a4a0d
fix: set field value with dependency
tahmidrahman-dsi Sep 26, 2024
0323010
fix: re-order reset nested field call
tahmidrahman-dsi Sep 27, 2024
8c49d1b
fix(http-button): pass in request method (#7668)
makelicious Sep 26, 2024
3ade5b1
Merge pull request #7667 from opencrvs/auto-pr-release-v1.6.0-7574-5118
makelicious Sep 27, 2024
805b0c3
fix: hardcoded copy of the placeholder of save query form of advanced…
tahmidrahman-dsi Sep 25, 2024
2641230
Merge pull request #7676 from opencrvs/auto-pr-release-v1.6.0-7675-19705
makelicious Sep 27, 2024
6d7c22f
fix: Layout for mobile view 4 advanced search date
Siyasanga Sep 27, 2024
81dfbe9
Merge pull request #7678 from opencrvs/auto-pr-release-v1.6.0-7672-16944
Zangetsu101 Sep 27, 2024
fd55840
fix: fix handling dynamic message labelparams in review section (#7400)
tahmidrahman-dsi Jul 26, 2024
28189c8
fix: handle label params of field label to some similar other places …
tahmidrahman-dsi Jul 31, 2024
375c766
chore: update CHANGELOG.md
tahmidrahman-dsi Sep 25, 2024
320c3f3
Merge pull request #7679 from opencrvs/auto-pr-release-v1.6.0-7677-12209
tahmidrahman-dsi Sep 27, 2024
75c75be
Merge pull request #7680 from opencrvs/cherry-pick-label-params-changes
tahmidrahman-dsi Sep 27, 2024
7dc285f
fix: handle label param in action details modal
tahmidrahman-dsi Sep 27, 2024
8ec7d57
chore: update CHANGELOG.md
tahmidrahman-dsi Sep 27, 2024
52f6123
Merge pull request #7689 from opencrvs/auto-pr-release-v1.6.0-7683-30756
tahmidrahman-dsi Oct 1, 2024
05e9889
feat: use svg dimensions to define pdf page size
Zangetsu101 Sep 25, 2024
db74b18
docs: update CHANGELOG
Zangetsu101 Sep 25, 2024
cd03400
Merge pull request #7693 from opencrvs/auto-pr-release-v1.6.0-7664-1866
Zangetsu101 Oct 1, 2024
df34c2d
🍒 Merge changes from PR #7699 to release-v1.6.0 (#7701)
Oct 2, 2024
98f4604
Security patches for 1.6 (#7681) (#7702)
rikukissa Oct 2, 2024
c1586ee
fix: amend the deletion of collection instead of dropping db
Nil20 Oct 1, 2024
7829be1
fix(migration): move functions to local scope
makelicious Oct 2, 2024
d95dca5
fix: remove unused import
makelicious Oct 2, 2024
4343f76
Merge pull request #7704 from opencrvs/auto-pr-release-v1.6.0-7696-16107
makelicious Oct 2, 2024
90dc0e7
chore(experimental): remove replace initial values method
tahmidrahman-dsi Sep 27, 2024
b6dc0cf
Revert "chore(experimental): remove replace initial values method"
tahmidrahman-dsi Sep 29, 2024
bd3d041
chore: do not replace initial value when it has `dependsOn` definitio…
tahmidrahman-dsi Sep 29, 2024
0144334
Revert "chore: do not replace initial value when it has `dependsOn` d…
tahmidrahman-dsi Sep 30, 2024
d5df043
fix: populate initial values from the parent of FormFieldGenerator an…
tahmidrahman-dsi Sep 30, 2024
0c85092
fix: add user parameters to the calls of the eval conditional express…
tahmidrahman-dsi Sep 30, 2024
b13587e
chore: modify draft with initial values on first mount of the `FormFi…
tahmidrahman-dsi Oct 1, 2024
02fd96e
Revert "chore: modify draft with initial values on first mount of the…
tahmidrahman-dsi Oct 1, 2024
a617540
fix: update draft when on continue button click
tahmidrahman-dsi Oct 1, 2024
a05b56f
Merge pull request #7719 from opencrvs/auto-pr-release-v1.6.0-7684-9854
tahmidrahman-dsi Oct 3, 2024
72bc53a
fix: label param in required error messages
tahmidrahman-dsi Oct 4, 2024
e9a9596
Merge pull request #7732 from opencrvs/auto-pr-release-v1.6.0-7731-12261
tahmidrahman-dsi Oct 4, 2024
8c2c7c0
fix: condition to detect if informant type changed or not
tahmidrahman-dsi Oct 7, 2024
8e852ab
Merge pull request #7735 from opencrvs/auto-pr-release-v1.6.0-7734-13332
tahmidrahman-dsi Oct 7, 2024
c1d8c7e
fix: prevent extra space in person name in notification content
tahmidrahman-dsi Oct 7, 2024
141c05a
Merge pull request #7738 from opencrvs/auto-pr-release-v1.6.0-7736-21558
tahmidrahman-dsi Oct 8, 2024
75c1492
fix: forward child/deceased name in birth/death rejection notification
tahmidrahman-dsi Oct 8, 2024
3f272f2
chore: add a descriptive comment to use the trim when handling given …
tahmidrahman-dsi Oct 8, 2024
48e4eea
Merge pull request #7740 from opencrvs/auto-pr-release-v1.6.0-7739-26571
tahmidrahman-dsi Oct 8, 2024
0de05cf
fix(migration): add conditionality to type error. Fetch location when…
makelicious Oct 3, 2024
c15719b
fix(migration): add conditionality checks for hearth migrations
makelicious Oct 3, 2024
35b6783
fix(migration): add missing conditional
makelicious Oct 3, 2024
b8db06d
fix(migration): add fallback onError for daysInYear date
makelicious Oct 4, 2024
8bede29
fix(migration): add fallback to dates
makelicious Oct 4, 2024
33fcfcd
fix(migration): do not throw during onDrop event
makelicious Oct 7, 2024
78f8c24
fix(migration): log out dropped ids after stream end
makelicious Oct 8, 2024
32ecfc1
fix(migration): clean up unneeded changes made during debugging
makelicious Oct 8, 2024
8b7866d
fix(migration): fetch location when id is found during population. Cl…
makelicious Oct 8, 2024
2b3fa8f
fix(migration): add variable to clarify code
makelicious Oct 8, 2024
1931cb9
fix(migration): change logging level to error
makelicious Oct 8, 2024
81154f3
Merge pull request #7745 from opencrvs/auto-pr-release-v1.6.0-7742-23729
makelicious Oct 8, 2024
12de331
fix: condition of handling in-progress fields
tahmidrahman-dsi Oct 9, 2024
2ec063e
fix: consider changed values for disabled fields
tahmidrahman-dsi Oct 9, 2024
6f173a5
Merge pull request #7755 from opencrvs/auto-pr-release-v1.6.0-7747-15373
makelicious Oct 10, 2024
2a832ea
fix: prefix text overlap issue
tahmidrahman-dsi Oct 11, 2024
bee02de
Revert "fix: prefix text overlap issue"
tahmidrahman-dsi Oct 11, 2024
1e71655
fix: update styles so that prefix does not overlap with input value
tahmidrahman-dsi Oct 11, 2024
521a300
fix: props forwarding clean up
tahmidrahman-dsi Oct 11, 2024
5484a86
chore: update CHANGELOG.md
tahmidrahman-dsi Oct 11, 2024
79120a6
fix: disallow select on affixes
naftis Oct 14, 2024
28e541e
Merge pull request #7772 from opencrvs/auto-pr-release-v1.6.0-7756-2984
tahmidrahman-dsi Oct 15, 2024
a39ff78
fix: change order of reset dependent field value
tahmidrahman-dsi Oct 15, 2024
b1f628d
Merge pull request #7775 from opencrvs/auto-pr-release-v1.6.0-7768-26211
tahmidrahman-dsi Oct 16, 2024
3bd631d
deps: bump up husky to v9
Zangetsu101 Oct 16, 2024
fffde63
feat: run lint-staged from root directory
Zangetsu101 Oct 16, 2024
9000e90
docs: update CHANGELOG
Zangetsu101 Oct 16, 2024
7d8f059
Merge pull request #7777 from opencrvs/auto-pr-release-v1.6.0-7776-22925
Zangetsu101 Oct 16, 2024
4882c17
🍒 Merge changes from PR #7763 to release-v1.6.0 (#7780)
Oct 16, 2024
20ae782
fix: find office location from current task
Zangetsu101 Oct 14, 2024
4cfe121
fix: hide signature for duplicate record
Zangetsu101 Oct 15, 2024
a8d50a3
Merge pull request #7785 from opencrvs/auto-pr-release-v1.6.0-7765-9091
Zangetsu101 Oct 17, 2024
0ca83ca
Merge pull request #7786 from opencrvs/auto-pr-release-v1.6.0-7773-28869
Zangetsu101 Oct 17, 2024
9b64b8b
fix: make all triggers which are pointing to the same http request to…
tahmidrahman-dsi Oct 23, 2024
102d960
chore: add a comment explaining the reason of the change that finds m…
tahmidrahman-dsi Oct 24, 2024
477a782
Merge pull request #7823 from opencrvs/auto-pr-release-v1.6.0-7822-17629
tahmidrahman-dsi Oct 24, 2024
0e16eb1
fix: empty section handle in `fieldValueTransformer`
tahmidrahman-dsi Oct 28, 2024
8445d59
chore: update CHANGELOG.md
tahmidrahman-dsi Oct 28, 2024
f1a0fe6
Merge pull request #7864 from opencrvs/auto-pr-release-v1.6.0-7854-6580
tahmidrahman-dsi Oct 29, 2024
e09876e
fix: pick last date of a month for dateEnd
jamil314 Oct 22, 2024
a936e14
Revert "fix: pick last date of a month for dateEnd"
jamil314 Oct 23, 2024
4bd8a81
fix: pick last date of a month for endDate
jamil314 Oct 23, 2024
9c27583
fix: use endOfMonth on onDatesChange()
jamil314 Oct 23, 2024
b2080eb
Merge pull request #7866 from opencrvs/auto-pr-release-v1.6.0-7810-2960
Zangetsu101 Oct 30, 2024
9c26a6a
fix: return first child "location" from query
Zangetsu101 Oct 17, 2024
b93c843
chore: include _count param to get all locations
Zangetsu101 Oct 23, 2024
4747478
feat: define isLeafLevelLocation query in client
Zangetsu101 Oct 24, 2024
e356076
refactor: use the new isLeafLevelLocation query
Zangetsu101 Oct 24, 2024
451f320
feat: create isLeafLevelLocation query
Zangetsu101 Oct 24, 2024
df51639
fix: prevent disabled filter from being selected
Zangetsu101 Oct 24, 2024
9f65a8b
test: update mocks to use new query
Zangetsu101 Oct 24, 2024
152c24a
test: add tests for isLeafLevelLocation query
Zangetsu101 Oct 24, 2024
7597b60
chore!: remove hasChildLocation query
Zangetsu101 Oct 24, 2024
692cdb5
docs: add entry about the deleted & new query
Zangetsu101 Oct 24, 2024
b914c60
fix: extract type from available query type
Zangetsu101 Oct 30, 2024
9511088
Merge pull request #7867 from opencrvs/auto-pr-release-v1.6.0-7789-27527
Zangetsu101 Oct 30, 2024
799be71
fix(1.6.0): use the value of an object key, instead of the key itself…
ocrvs-bot Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
**/*.log
.secrets/*
data
grafana
grafana
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = {
'import/no-named-as-default': 'off',
'import/no-relative-parent-imports': 2,
'import/named': 0,
'import/no-duplicates': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
Expand Down
172 changes: 172 additions & 0 deletions .github/workflows/auto-pr-to-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# OpenCRVS is also distributed under the terms of the Civil Registration
# & Healthcare Disclaimer located at http://opencrvs.org/license.
#
# Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.

name: Auto PR to Release Branch

on:
pull_request:
types: [closed]
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to process'
required: true
default: ''

jobs:
create-pr:
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest

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

- name: Get PR details from workflow dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
id: get_pr_details_dispatch
run: |
PR_NUMBER=${{ github.event.inputs.pr_number }}
PR_DATA=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/opencrvs/opencrvs-core/pulls/$PR_NUMBER)
# printf escapes the newlines in the JSON, so we can use jq to parse output such as:
# "body": "![image](https://github.com/user-attachments/assets/8eee5bcf-7692-490f-a19f-576623e09961)\r\n",
echo "PR_ID=$(printf '%s' $PR_DATA | jq -r '.number')" >> $GITHUB_ENV
echo "PR_AUTHOR=$(printf '%s' $PR_DATA | jq -r '.user.login')" >> $GITHUB_ENV
echo "PR_MERGER=$(printf '%s' $PR_DATA | jq -r '.merged_by.login')" >> $GITHUB_ENV
echo "MILESTONE=$(printf '%s' $PR_DATA | jq -r '.milestone.title')" >> $GITHUB_ENV
echo "BASE_BRANCH=$(printf '%s' $PR_DATA | jq -r '.base.ref')" >> $GITHUB_ENV
echo "HEAD_BRANCH=$(printf '%s' $PR_DATA | jq -r '.head.ref')" >> $GITHUB_ENV
echo "PR_TITLE=$(printf '%s' $PR_DATA | jq -r '.title')" >> $GITHUB_ENV
echo "BASE_SHA=$(printf '%s' $PR_DATA | jq -r '.base.sha')" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get PR details from event
if: ${{ github.event_name == 'pull_request' }}
id: get_pr_details_event
run: |
PR_NUMBER=${{ github.event.pull_request.number }}
echo "PR_ID=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
echo "PR_AUTHOR=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
echo "MILESTONE=${{ github.event.pull_request.milestone.title }}" >> $GITHUB_ENV
echo "BASE_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
echo "HEAD_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
echo "PR_TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
echo "BASE_SHA=${{ github.event.pull_request.base.sha }}" >> $GITHUB_ENV

PR_DETAILS=$(gh pr view $PR_NUMBER --json mergedBy)
MERGED_BY_LOGIN=$(echo "$PR_DETAILS" | jq -r '.mergedBy.login')
echo "PR_MERGER=$MERGED_BY_LOGIN" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check for milestone and if release branch exists
continue-on-error: true
id: check_release_branch
run: |
if [ -z "${{ env.MILESTONE }}" ]; then
echo "No milestone set. Exiting."
exit 1
fi

RELEASE_BRANCH="release-${{ env.MILESTONE }}"

# Check if the release branch exists
if git ls-remote --heads origin $RELEASE_BRANCH | grep -q "refs/heads/$RELEASE_BRANCH"; then
echo "RELEASE_BRANCH=${RELEASE_BRANCH}" >> $GITHUB_ENV
else
echo "Release branch $RELEASE_BRANCH does not exist. Exiting."
exit 1
fi

- name: Create and push the new branch for the PR
if: ${{ steps.check_release_branch.outcome == 'success' }}
run: |
SEMANTIC_PR_TITLE="${{ env.PR_TITLE }}"

# Check for semantic prefix
if [[ $SEMANTIC_PR_TITLE =~ ^(feat|fix|docs|style|refactor|perf|test|chore|build|ci|revert|wip|merge)\: ]]; then
SEMANTIC_PR_TITLE="${BASH_REMATCH[1]}(${MILESTONE}): ${SEMANTIC_PR_TITLE#*: }"
else
SEMANTIC_PR_TITLE="🍒 Merge changes from PR #${{ env.PR_ID }} to ${{ env.RELEASE_BRANCH }}"
fi

PR_BODY="Automated PR to merge changes from develop to ${{ env.RELEASE_BRANCH }}"

# Configure git
git config user.name "github-actions"
git config user.email "[email protected]"
git config advice.mergeConflict false

# Fetch and checkout the release branch
git fetch --all --unshallow
git checkout ${{ env.RELEASE_BRANCH }}

# Create a new branch for the PR
NEW_BRANCH="auto-pr-${{ env.RELEASE_BRANCH }}-${{ env.PR_ID }}-$RANDOM"
git checkout -b $NEW_BRANCH

echo "HEAD_BRANCH: ${{ env.HEAD_BRANCH }}"
echo "BASE_SHA: ${{ env.BASE_SHA }}"

COMMIT_RANGE="${{ env.BASE_SHA }}..origin/${{ env.HEAD_BRANCH }}"

echo "Commit range: ${COMMIT_RANGE}"

NON_MERGE_COMMITS=$(git log ${COMMIT_RANGE} --reverse --no-merges --pretty=format:"%h" -- | xargs)

echo "Ordered non-merge commits: $NON_MERGE_COMMITS"

# Attempt to cherry-pick the commits from the original PR
CHERRY_PICK_OUTPUT=$(git cherry-pick ${NON_MERGE_COMMITS} 2>&1) || {
git cherry-pick --abort || true
# If cherry-pick fails, create a placeholder commit
echo "Cherry-pick failed. Creating placeholder commit."

git reset --hard
git commit --allow-empty -m "Placeholder commit for PR #${{ env.PR_ID }}"

# Add manual cherry-pick commands to the PR body
PR_BODY="${PR_BODY}

**I failed to cherry-pick the changes automatically because of the following:**

\`\`\`
$CHERRY_PICK_OUTPUT
\`\`\`

**To continue manually you can use these commands:**
\`\`\`
git fetch origin $NEW_BRANCH:$NEW_BRANCH
git fetch origin ${{ env.HEAD_BRANCH }}:${{ env.HEAD_BRANCH }}

git checkout $NEW_BRANCH
git reset --hard HEAD~1 # Remove placeholder commit
git cherry-pick $NON_MERGE_COMMITS
\`\`\`

"
}

# Push the new branch
git push origin $NEW_BRANCH

# Create a pull request and assign the original PR author as the reviewer
AUTHOR=${{ env.PR_AUTHOR }}

if [[ $AUTHOR == *renovate* ]]; then
if [ -z "${{ env.PR_MERGER }}" ]; then
AUTHOR=""
else
AUTHOR=${{ env.PR_MERGER }}
fi
fi
gh pr create --title "$SEMANTIC_PR_TITLE" --body "$PR_BODY" --head "$NEW_BRANCH" --base "${{ env.RELEASE_BRANCH }}" --reviewer "$AUTHOR"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67 changes: 40 additions & 27 deletions .github/workflows/build-images-from-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,51 @@ jobs:
- uses: actions/checkout@v4
if: github.event_name == 'push'

- name: Set version
id: set-version
- name: Set version and branch
id: set-version-and-branch
run: |
export VERSION=`git log -1 --pretty=format:%h`
echo "version=$VERSION" >> $GITHUB_OUTPUT
if [ "${{ github.event_name }}" == 'push' ]; then
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
else
echo "branch=${{ inputs.branch_name }}" >> $GITHUB_OUTPUT
fi

- name: Get list of services
id: get-services
run: |
services=$(grep "^ [^ ]" docker-compose.yml | grep -v '#' | awk -F: '{print $1}' | sed -e 's/^ *//')
services=$(grep "^ [^ ]" docker-compose.yml | grep -v base| grep -v '#' | awk -F: '{print $1}' | sed -e 's/^ *//')
services_json=$(echo $services | tr '\n' ',' | sed 's/,$//' | jq -R 'split(" ")' | tr -d '\n')
# Set the list of service names as an output variable
echo "services=$services_json" >> $GITHUB_OUTPUT
echo "services=$services_json"

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push base image
uses: docker/build-push-action@v5
with:
file: packages/Dockerfile.base
context: .
push: true
tags: 'opencrvs/ocrvs-base:${{ steps.set-version-and-branch.outputs.version }}'
cache-from: type=registry,ref=opencrvs/ocrvs-base:${{ steps.set-version-and-branch.outputs.version }}
cache-to: type=inline

outputs:
services: ${{ steps.get-services.outputs.services }}
version: ${{ steps.set-version.outputs.version }}
version: ${{ steps.set-version-and-branch.outputs.version }}
branch: ${{ steps.set-version-and-branch.outputs.branch }}

build:
needs: base
strategy:
fail-fast: false
matrix:
service: ${{ fromJSON(needs.base.outputs.services) }}
runs-on: ubuntu-22.04
Expand All @@ -67,35 +90,25 @@ jobs:
if: github.event_name == 'push'

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build ${{ matrix.service }}
run: |
export VERSION="${{ needs.base.outputs.version }}"
echo ${{ matrix.service }}
docker compose build ${{ matrix.service }}
docker compose push ${{ matrix.service }}

security-scans:
needs: [base, build]
strategy:
fail-fast: false
matrix:
service: ${{ fromJSON(needs.base.outputs.services) }}
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and push
uses: docker/build-push-action@v5
with:
sparse-checkout: |
trivy.yaml
.trivyignore.yaml
sparse-checkout-cone-mode: false
file: packages/${{ matrix.service }}/Dockerfile
build-args: |
VERSION=${{ needs.base.outputs.version }}
push: true
context: .
tags: |
opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.version }}
opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.branch }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: 'opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.version }}'
trivy-config: trivy.yaml
35 changes: 23 additions & 12 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
PACKAGES=$(ls -d packages/* | jq -R -s -c 'split("\n")[:-1]')
echo "Found packages: $PACKAGES"
echo "::set-output name=matrix::${PACKAGES}"
echo "matrix=${PACKAGES}" >> $GITHUB_OUTPUT

test:
needs: setup
Expand All @@ -45,31 +45,30 @@ jobs:
run: |
if [ ! -f "${{ matrix.package }}/package.json" ]; then
echo "No package.json found for ${{ matrix.package }}. Stopping pipeline."
echo "::set-output name=skip::true"
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=skip::false"
echo "skip=false" >> $GITHUB_OUTPUT

if ! grep -q "\"test\":" "${{ matrix.package }}/package.json"; then
echo "Test not found in ${{ matrix.package }}"
echo "::set-output name=skip-test::true"
echo "skip-test=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=skip-test::false"
echo "skip=false" >> $GITHUB_OUTPUT
fi

if ! grep -q "\"lint\":" "${{ matrix.package }}/package.json"; then
echo "Lint scripts not found in ${{ matrix.package }}. Stopping pipeline."
echo "::set-output name=skip-lint::true"
echo "skip-lint=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=skip-lint::false"
echo "skip-lint=false" >> $GITHUB_OUTPUT
fi
fi

- name: Use Node.js 18.19
- name: Use Node.js from .nvmrc
if: steps.check-scripts.outputs.skip != 'true'
uses: actions/setup-node@v4
with:
node-version: '18.19'
cache: 'npm'
node-version-file: .nvmrc

- name: Remove other package directories
if: steps.check-scripts.outputs.skip != 'true'
Expand All @@ -85,14 +84,25 @@ jobs:
fi
done

- name: Cache Node.js dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
~/.cache/yarn/v6
key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}',matrix.package,'package.json')) }}
restore-keys: |
${{ runner.os }}-node-

- name: Verify every file has a license header
if: steps.check-scripts.outputs.skip != 'true'
run: npx license-check-and-add check -f license-config.json

- name: Runs dependency installation
if: steps.check-scripts.outputs.skip != 'true'
run: CI="" yarn
run: CI="" yarn install --frozen-lockfile

# TODO: Move out of the matrix to be built once and shared
- name: Build common package
if: steps.check-scripts.outputs.skip != 'true'
run: cd packages/commons && yarn build
Expand All @@ -104,6 +114,7 @@ jobs:
cd packages/components && yarn build
fi

# TODO: should run parallel to unit tests as can take as much as unit tests
- name: Run linting
if: steps.check-scripts.outputs.skip != 'true' && steps.check-scripts.outputs.skip-lint != 'true'
run: cd ${{ matrix.package }} && yarn lint
Expand All @@ -119,7 +130,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.24.0
with:
scan-type: 'fs'
scan-ref: '.'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
.trivyignore.yaml
sparse-checkout-cone-mode: false
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: 'opencrvs/ocrvs-${{ matrix.service }}:${{ needs.base.outputs.version }}'
trivy-config: trivy.yaml
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn check:license
yarn lint-staged
Loading