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 #1061

Closed
wants to merge 692 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
692 commits
Select commit Hold shift + click to select a range
a8c80e0
feat: add missing translation for: `correction requested`, `retry`, `…
jamil314 Jun 20, 2024
d638373
fix: update certified at message id for verify certificate (#150)
Nil20 Jun 20, 2024
29c8365
fix: add missing translations (#155)
Zangetsu101 Jun 21, 2024
22ff6a3
chore: update dashboard query with the recent correction flow changes
tahmidrahman-dsi Jun 13, 2024
a61ef91
fix: add missing translations (#155) (#157)
github-actions[bot] Jun 21, 2024
d5be8d3
fix: update certified at message id for verify certificate (#158)
github-actions[bot] Jun 21, 2024
11d0ee0
Merge pull request #156 from opencrvs/auto-pr-release-v1.5.0-139-21000
tahmidrahman-dsi Jun 21, 2024
0bd4c61
Ignore baseimage when deploying (#160)
n1koo Jun 25, 2024
fdc3a31
Enforce token for seedign roles and users (#165)
euanmillar Jun 25, 2024
7008021
Added auth false to the users and roles seeding endpoint
euanmillar Jun 25, 2024
7bc003d
Enforce token for seedign roles and users (#165)
euanmillar Jun 25, 2024
2886911
Merge branch 'release-v1.5.0' of https://github.com/opencrvs/opencrvs…
euanmillar Jun 25, 2024
66ef8f5
Merge pull request #1037 from opencrvs/enforce-token-for-seeding-users
euanmillar Jun 25, 2024
6830099
fix: sms not being sent (#164)
naftis Jun 25, 2024
196c147
Ignore baseimage when deploying
n1koo Jun 21, 2024
9722438
fix(v1.5.0): sms not being sent (#166)
github-actions[bot] Jun 26, 2024
9249f62
add a slack notification for failing E2E pipeline
rikukissa Jun 26, 2024
16e7f44
fix variable reference format in E2E pipeline
rikukissa Jun 26, 2024
e86d964
Add .nvmrc for easier dev (#161)
n1koo Jun 26, 2024
4bdefbc
only report E2E failure to slack if previous run did succeed
rikukissa Jun 26, 2024
cfd9e78
add success message to E2E pipeline
rikukissa Jun 26, 2024
86eda1a
fix: rename geojson endpoint to not tie implementations to example co…
naftis Jun 26, 2024
84eddb0
fix(v1.5.0): rename geojson endpoint to not tie implementations to ex…
github-actions[bot] Jun 27, 2024
46084e3
upgrade actions/download-artifact
rikukissa Jun 27, 2024
86de93d
[OCRVS-7259] Fix elasticsearch directories getting nested in the back…
rikukissa Jun 27, 2024
f67e44e
🍒 Merge changes from PR #170 to release-v1.5.0 (#171)
github-actions[bot] Jun 27, 2024
609a8b8
Change jumpserver hostnames in the inventory examples (#174)
rikukissa Jun 28, 2024
869526c
🍒 Merge changes from PR #174 to release-v1.5.0 (#175)
github-actions[bot] Jun 28, 2024
d5145cc
fix: added missing await
jamil314 Jun 28, 2024
5b0ccfe
amend: fix page.url() assertions
jamil314 Jun 20, 2024
2a4d764
Merge pull request #1038 from opencrvs/e2e-birth-fixes
Zangetsu101 Jun 28, 2024
29da0c1
change how previous run result is read
rikukissa Jun 28, 2024
7f3e07d
Merge branch 'develop' of github.com:opencrvs/opencrvs-farajaland int…
rikukissa Jun 28, 2024
6229580
replace texts where jump machine is referred as backup
makelicious Jul 1, 2024
0fcbe7d
add missing reference to gh ci private key file in jump context
makelicious Jul 1, 2024
02942a5
add todo comment for easier search experience
makelicious Jul 1, 2024
daf881e
unify language by replacing replica with server
makelicious Jul 1, 2024
9902fd3
Merge pull request #176 from opencrvs/fix/server-setup-issues
makelicious Jul 1, 2024
281e29e
fix previous e2e result fetching in deploy&e2e pipeline
rikukissa Jul 1, 2024
6f47f60
add missing reference to gh ci private key file in jump context
makelicious Jul 1, 2024
fa73ddd
add todo comment for easier search experience
makelicious Jul 1, 2024
7ac5bdd
unify language by replacing replica with server
makelicious Jul 1, 2024
6855381
feat: add missing translations for texts in `correct record?` modal (…
jamil314 Jul 2, 2024
00a9bf8
fix: improve informant name formatting for inProgress declaration ema…
tareq89 Jul 2, 2024
b6a1629
fix: improve informant name formatting for inProgress declaration ema…
tareq89 Jul 2, 2024
a47ad9f
Merge pull request #180 from opencrvs/auto-pr-release-v1.5.0-162-29193
Zangetsu101 Jul 2, 2024
5246098
Make default production docker-compose assume a single-node cluster (…
rikukissa Jul 2, 2024
f472d5c
add assignee for cherry-pick PRs
rikukissa Jul 2, 2024
f0d9a52
🍒 Merge changes from PR #172 to release-v1.5.0 (#182)
github-actions[bot] Jul 2, 2024
4a0ffdf
feat: add missing translations for texts in `correct record?` modal
jamil314 Jun 24, 2024
8119eee
chore: remove extra comma at eof
jamil314 Jun 24, 2024
66fc132
amend: remove unused translation
jamil314 Jul 1, 2024
5de9d08
Merge pull request #179 from opencrvs/auto-pr-release-v1.5.0-163-14702
Zangetsu101 Jul 2, 2024
32dc293
fix(ocrvs-5086): show different label when father address matches
makelicious Jul 2, 2024
13b9bee
fix(ocrvs-5086): refactor getAddress to accept arrays for conditionals
makelicious Jul 3, 2024
4a83bd0
fix how E2E interpret previous run status. Everything non-succeess de…
rikukissa Jul 3, 2024
d71bf5c
chore: add invalid date validation message (#184)
Nil20 Jul 3, 2024
142fa90
chore: add invalid date validation message
Nil20 Jul 3, 2024
3e3cf5f
fix: update witness section names (#185)
Nil20 Jul 3, 2024
869f489
fix: update witness section names
Nil20 Jul 3, 2024
5c51b20
Merge pull request #186 from opencrvs/auto-pr-release-v1.5.0-184-24979
Zangetsu101 Jul 3, 2024
1af1025
Merge pull request #187 from opencrvs/auto-pr-release-v1.5.0-185-3105
Zangetsu101 Jul 3, 2024
e00238e
fix: enable auth for certs endpoint (#188)
Zangetsu101 Jul 3, 2024
4b2ed8e
fix: enable auth for certs endpoint
Zangetsu101 Jul 3, 2024
b55d3fb
fix(ocrvs-5086): update primary address preview copy for informant an…
makelicious Jul 3, 2024
5fa4736
Merge pull request #189 from opencrvs/auto-pr-release-v1.5.0-188-23225
Zangetsu101 Jul 3, 2024
025b2a0
Merge pull request #183 from opencrvs/fix/ocrvs-5086-update-father-pr…
makelicious Jul 3, 2024
c131130
Merge pull request #178 from opencrvs/auto-pr-release-v1.5.0-176-13932
makelicious Jul 3, 2024
5afc4d1
fix(ocrvs-5086): show different label when father address matches
makelicious Jul 2, 2024
3a67325
fix(ocrvs-5086): refactor getAddress to accept arrays for conditionals
makelicious Jul 3, 2024
d1dbf39
fix(ocrvs-5086): update primary address preview copy for informant an…
makelicious Jul 3, 2024
5ac3b3b
Merge pull request #191 from opencrvs/auto-pr-release-v1.5.0-183-6280
makelicious Jul 3, 2024
12f6204
fix(ocrvs-7324): remove duplicate sentences from copy
makelicious Jul 3, 2024
c97c902
Merge pull request #192 from opencrvs/fix/ocrvs-7324-duplicate-senten…
makelicious Jul 4, 2024
9aad0c5
fix(ocrvs-7324): remove duplicate sentences from copy
makelicious Jul 3, 2024
d97835b
Merge pull request #193 from opencrvs/auto-pr-release-v1.5.0-192-16395
makelicious Jul 4, 2024
270fbb3
Merge branch 'develop' of github.com:opencrvs/opencrvs-countryconfig …
Zangetsu101 Jul 5, 2024
fac9cf8
fix: bring back 2 nodes configuration
Zangetsu101 Jul 5, 2024
c546e40
Merge pull request #1045 from opencrvs/merge-cc-dev-to-far-dev
Zangetsu101 Jul 5, 2024
534aebd
Merge pull request #1020 from opencrvs/number-format-change
Nil20 Jul 5, 2024
574d43a
Remove deprecated version from compose files
n1koo Jul 5, 2024
e48756d
Merge pull request #196 from opencrvs/remove_deprecated_versions_from…
n1koo Jul 5, 2024
66d8367
Merge pull request #1051 from opencrvs/develop
n1koo Jul 5, 2024
dfc63d5
feat: add the new required review/preview section (#137)
Zangetsu101 Jul 9, 2024
d4c5bcd
Merge pull request #1053 from opencrvs/develop
Zangetsu101 Jul 9, 2024
7f3902d
fix: stop accessing response text multiple times (#195)
Zangetsu101 Jul 9, 2024
2a8e7f7
fix: stop accessing response text multiple times
Zangetsu101 Jul 5, 2024
3af276c
Merge pull request #200 from opencrvs/auto-pr-release-v1.5.0-195-290
Zangetsu101 Jul 9, 2024
fa3ddde
chore: update weight at birth postfix (#201)
Zangetsu101 Jul 9, 2024
2524b7c
Merge branch 'develop' into merge-country-to-far
Zangetsu101 Jul 9, 2024
7c77976
Merge pull request #1055 from opencrvs/merge-country-to-far
Zangetsu101 Jul 9, 2024
52c9431
fix(birth): remove unnecessary parenthesis
makelicious Jul 9, 2024
7d6b164
fix(birth): update e2e tests to search for right match
makelicious Jul 9, 2024
53500a5
Merge pull request #1056 from opencrvs/fix/birth-e2e-tests
makelicious Jul 9, 2024
94d7981
chore(changelog): underline breaking and important changes (#194)
naftis Jul 9, 2024
5691206
added backup environment for resetting tw factor auth on backup envir…
euanmillar Jul 9, 2024
6ab69ec
Update CHANGELOG
naftis Jul 9, 2024
eee0000
added backup environment for resetting tw factor auth on backup envir…
euanmillar Jul 9, 2024
7d2bdaf
bump release number (#205)
euanmillar Jul 9, 2024
2572f65
bump release number (#205)
euanmillar Jul 9, 2024
05ab199
docs: add breaking changes section (#207)
Zangetsu101 Jul 10, 2024
9154e29
fix: skip PR creation when milestone not set
Zangetsu101 Jul 10, 2024
72a8865
fix(birth): update missing references. Remove checks for #Usual on 'N…
makelicious Jul 10, 2024
17b4166
remove special characters from the password generation (#209)
euanmillar Jul 10, 2024
35c6e52
remove special characters from the password generation (#209)
euanmillar Jul 10, 2024
8c36386
Merge pull request #113 from opencrvs/release-v1.5.0
euanmillar Jul 10, 2024
c642945
chore: bump release
Zangetsu101 Jul 11, 2024
88e08ca
chore: bump release
Zangetsu101 Jul 11, 2024
73ec8fe
Merge branch 'master' into release-v1.6.0
Zangetsu101 Jul 11, 2024
516cf92
docs: remove duplicate entries
Zangetsu101 Jul 11, 2024
572ad24
chore: bump deploy tags
Zangetsu101 Jul 11, 2024
1ebc0f1
take off filesystem metric check from system and related alert
makelicious Jul 11, 2024
72c2b8e
take up docker module
makelicious Jul 11, 2024
619c19b
Use kibana access token for connections
makelicious Jul 11, 2024
d027232
use kibana_system account instead of elastic
makelicious Jul 12, 2024
eabdf46
add kibana_system_password to top level env
makelicious Jul 12, 2024
55d6562
remove reference to kibana_system from setup-users.sh
makelicious Jul 12, 2024
07ebadd
use elastic user on setup-config
makelicious Jul 12, 2024
1f74628
remove deprecated dependencies from elastic and kibana
makelicious Jul 12, 2024
1c29417
upgrade kibana to 8.14.3
makelicious Jul 15, 2024
08e2850
upgrade logstash to 8.14.3
makelicious Jul 15, 2024
8855e07
upgrade beats to 8.14.3
makelicious Jul 15, 2024
449c858
upgrade apm server to 7.17.22
makelicious Jul 15, 2024
4548fb5
revert log changes after debugging
makelicious Jul 15, 2024
f51e42a
widen search user privileges to accommodate reindex job
makelicious Jul 16, 2024
7681ad4
upgrade elastalert to 2.19
makelicious Jul 16, 2024
96886c9
use minimal access for search user
makelicious Jul 16, 2024
5cd3377
update index creation error check
makelicious Jul 16, 2024
0cd8751
add manage privilege back to search user
makelicious Jul 16, 2024
5fa77fa
add comment for error message check
makelicious Jul 17, 2024
af39423
fix cherry-pick inconsistencies
makelicious Jul 17, 2024
fd13426
set kibana_system password on setup-users.sh
makelicious Jul 18, 2024
eba09ad
stop creating ocrvs index as a part of elastic setup
makelicious Jul 25, 2024
4264ab1
stop creating ocrvs index before running migrations during cleanup
makelicious Jul 26, 2024
709c8d8
Restart and remove existing elastalert indices
makelicious Jul 29, 2024
1db4568
move restart to deploy script
makelicious Jul 30, 2024
8cfb6c8
Merge pull request #222 from opencrvs/auto-pr-release-v1.6.0-216-1656
makelicious Jul 30, 2024
969ff80
Include first commit to range, render commits to body
makelicious Jul 18, 2024
6221690
Merge pull request #223 from opencrvs/auto-pr-release-v1.6.0-217-4866
makelicious Jul 30, 2024
ee7476d
docs: remove duplicate entries
Zangetsu101 Jul 11, 2024
fecd120
chore: bump deploy tags
Zangetsu101 Jul 11, 2024
54a3adb
take off filesystem metric check from system and related alert
makelicious Jul 11, 2024
e67a1a8
take up docker module
makelicious Jul 11, 2024
e67bf6e
Use kibana access token for connections
makelicious Jul 11, 2024
4c0f378
use kibana_system account instead of elastic
makelicious Jul 12, 2024
963d3dc
add kibana_system_password to top level env
makelicious Jul 12, 2024
f55e908
remove reference to kibana_system from setup-users.sh
makelicious Jul 12, 2024
63c2b61
use elastic user on setup-config
makelicious Jul 12, 2024
03f6506
remove deprecated dependencies from elastic and kibana
makelicious Jul 12, 2024
e384f02
upgrade kibana to 8.14.3
makelicious Jul 15, 2024
19b3014
upgrade logstash to 8.14.3
makelicious Jul 15, 2024
6325bad
upgrade beats to 8.14.3
makelicious Jul 15, 2024
231aec5
upgrade apm server to 7.17.22
makelicious Jul 15, 2024
048c4fc
revert log changes after debugging
makelicious Jul 15, 2024
70c5bd3
widen search user privileges to accommodate reindex job
makelicious Jul 16, 2024
31ea951
upgrade elastalert to 2.19
makelicious Jul 16, 2024
6a86162
use minimal access for search user
makelicious Jul 16, 2024
ba50207
update index creation error check
makelicious Jul 16, 2024
6591249
add manage privilege back to search user
makelicious Jul 16, 2024
f89e662
add comment for error message check
makelicious Jul 17, 2024
3437341
fix cherry-pick inconsistencies
makelicious Jul 17, 2024
33f6e42
set kibana_system password on setup-users.sh
makelicious Jul 18, 2024
d164e87
stop creating ocrvs index as a part of elastic setup
makelicious Jul 25, 2024
ceded80
stop creating ocrvs index before running migrations during cleanup
makelicious Jul 26, 2024
a82eda9
Restart and remove existing elastalert indices
makelicious Jul 29, 2024
1c76874
move restart to deploy script
makelicious Jul 30, 2024
5dafb16
Include first commit to range, render commits to body
makelicious Jul 18, 2024
de13f8c
fix: remove overshadowing rect
Zangetsu101 Aug 1, 2024
283f2d6
chore: remove unused bg image
Zangetsu101 Aug 1, 2024
ce2ca8f
Merge pull request #228 from opencrvs/auto-pr-release-v1.6.0-224-19667
Zangetsu101 Aug 6, 2024
8415357
remove extra title
makelicious Aug 6, 2024
8eef286
chore: use diff from farajaland
Zangetsu101 Aug 7, 2024
f55cd17
Merge pull request #1071 from opencrvs/chore/cherry-pick-16-changes
Zangetsu101 Aug 7, 2024
5506c0f
chore: enable 2fa on qa (#1083)
Zangetsu101 Aug 7, 2024
8b44980
🍒 Merge changes from PR #229 to release-v1.6.0 (#230)
github-actions[bot] Aug 7, 2024
27d8212
ignore unavailable indices upon delete
makelicious Aug 14, 2024
2e55820
Merge pull request #240 from opencrvs/auto-pr-release-v1.6.0-239-18469
makelicious Aug 14, 2024
e80f9cb
Serve client manifest and icons from country-config
tareq89 Aug 19, 2024
23d1c5e
explicitly specify from which branch the release tag should be create…
rikukissa Aug 21, 2024
d5b03bf
use release version instead of package.json version
rikukissa Aug 21, 2024
0db8684
add descriptive merge messages
rikukissa Aug 21, 2024
54f6922
remove the v-prefix from versions
rikukissa Aug 21, 2024
68d6c4d
update CHANGELOG
rikukissa Aug 21, 2024
5b19a8f
revert 1.5.0 CHANGELOG changes
rikukissa Aug 21, 2024
e586522
🍒 Merge changes from PR #247 to release-v1.6.0 (#249)
github-actions[bot] Aug 26, 2024
c07ec92
chore: protect individual certificate endpoint with token
Nil20 Aug 22, 2024
389dec8
chore: add event cert route in production
Nil20 Aug 22, 2024
b52bec4
chore: clean up redundant certificate route
Nil20 Aug 22, 2024
f12ae76
docs: update changelog(7464)
Nil20 Aug 27, 2024
fb2a589
chore: relocate certificate folder from data-seeding
Nil20 Aug 28, 2024
7eb4477
informantsSignature is mandatory
tareq89 Aug 30, 2024
6fb961f
Merge pull request #1103 from opencrvs/auto-pr-release-v1.6.0-1102-24537
Zangetsu101 Aug 30, 2024
b0d02ef
Merge pull request #251 from opencrvs/auto-pr-release-v1.6.0-250-9957
Zangetsu101 Sep 2, 2024
57c72b5
fix: groom & bride signature not showing up in pdf
jamil314 Sep 2, 2024
2f7f7ff
Merge pull request #253 from opencrvs/auto-pr-release-v1.6.0-252-1960
Zangetsu101 Sep 3, 2024
561a524
Merge pull request #243 from opencrvs/auto-pr-release-v1.6.0-241-29513
Zangetsu101 Sep 4, 2024
5c85e26
Merge branch 'release-v1.6.0' of github.com:opencrvs/opencrvs-country…
Zangetsu101 Sep 4, 2024
e7e554d
Merge pull request #1106 from opencrvs/merge-cc-1.6-to-far
Zangetsu101 Sep 4, 2024
b5599b3
fix: mutate logstash host to object before sending it to elastic
makelicious Sep 5, 2024
edb4484
add ecs-logstash to index config
makelicious Sep 5, 2024
50f3524
Merge pull request #257 from opencrvs/auto-pr-release-v1.6.0-256-30169
makelicious Sep 5, 2024
d39df23
fix: mutate logstash host to object before sending it to elastic
makelicious Sep 5, 2024
dd49988
add ecs-logstash to index config
makelicious Sep 5, 2024
98cc7fa
Merge pull request #1118 from opencrvs/auto-pr-release-v1.6.0-1117-8348
makelicious Sep 6, 2024
fa997d4
chore: add allowedFileFormat properties for signature fields
Nil20 Sep 11, 2024
4e1a8df
docs: update changelog for updating allowed file format for signatures
Nil20 Sep 12, 2024
2231e6e
feat: optionCondition to filter document select options
Zangetsu101 Sep 2, 2024
298e4ef
docs: update changelog
Zangetsu101 Sep 2, 2024
4472504
Merge pull request #263 from opencrvs/auto-pr-release-v1.6.0-254-6976
Zangetsu101 Sep 12, 2024
c5391c3
chore: amend changelog
Nil20 Sep 12, 2024
e64ee74
Merge pull request #260 from opencrvs/auto-pr-release-v1.6.0-259-10769
Zangetsu101 Sep 17, 2024
6afef76
chore: rename application config file
Nil20 Jul 11, 2024
a8da778
chore!: remove unused config messages
Nil20 Jul 11, 2024
fb461e9
Merge pull request #272 from opencrvs/ocrvs-release-7156
Zangetsu101 Sep 17, 2024
acffd03
Merge branch 'release-v1.6.0' of github.com:opencrvs/opencrvs-country…
Zangetsu101 Sep 17, 2024
78b1edf
Placeholder commit for PR #244
invalid-email-address Aug 26, 2024
72fa314
Remove extra divider on Birth form's mother section
Siyasanga Aug 6, 2024
c29fc9c
Remove extra divider on Birth form's father section
Siyasanga Aug 7, 2024
4a0feb6
Remove extra divider on Death form's Spouse section
Siyasanga Aug 7, 2024
2c8215d
Rm extra divider on Marriage form's placeOfMarriageTitle
Siyasanga Aug 7, 2024
89abe56
Record the removing of dividers in CHANGELOG.md
Siyasanga Aug 19, 2024
4216d30
Merge pull request #248 from opencrvs/auto-pr-release-v1.6.0-244-16719
Zangetsu101 Sep 19, 2024
3f08d06
Merge branch 'release-v1.6.0' into auto-pr-release-v1.6.0-245-6744
Zangetsu101 Sep 19, 2024
5021822
Merge pull request #246 from opencrvs/auto-pr-release-v1.6.0-245-6744
Zangetsu101 Sep 19, 2024
a7f6706
chore: add route to serve record notification
Nil20 Sep 18, 2024
c134a3a
chore: improve record notification types
Nil20 Sep 18, 2024
86d507d
docs: update changelog for addtion of notification flag
Nil20 Sep 18, 2024
b27279e
docs: amend changelog for notification flag
Nil20 Sep 18, 2024
f3b1665
docs: rearrange notification flags CHANGELOG entry
Zangetsu101 Sep 19, 2024
de05cbc
fix: add output for reset job (#159)
Zangetsu101 Aug 6, 2024
f5e8689
docs: update CHANGELOG
Zangetsu101 Sep 19, 2024
2a01973
Merge pull request #277 from opencrvs/auto-pr-release-v1.6.0-159-14771
Zangetsu101 Sep 19, 2024
b3720ae
Merge pull request #275 from opencrvs/auto-pr-release-v1.6.0-274-31621
Zangetsu101 Sep 20, 2024
044db55
Merge branch 'release-v1.6.0' of github.com:opencrvs/opencrvs-country…
Zangetsu101 Sep 20, 2024
fa19a08
chore: add search placeholder copy
tahmidrahman-dsi Sep 26, 2024
3e10cdd
Merge pull request #283 from opencrvs/add-copy-advanced-search-placeh…
makelicious Sep 27, 2024
e8bd3e3
fix: remove extra divider in birth declaration form
jamil314 Sep 27, 2024
94420eb
Merge pull request #285 from opencrvs/auto-pr-release-v1.6.0-284-30483
Zangetsu101 Sep 27, 2024
65ffe44
Merge branch 'release-v1.6.0' of github.com:opencrvs/opencrvs-country…
Zangetsu101 Sep 27, 2024
8f46bba
chore: disable emails using QA_ENV env var
Zangetsu101 Oct 2, 2024
ad3ba02
🍒 Merge changes from PR #293 to release-v1.6.0 (#295)
Oct 7, 2024
7bc2456
fix: update template transformers for fields `informantType`, `otherI…
tahmidrahman-dsi Oct 28, 2024
2f03a54
chore: update CHANGELOG.md
tahmidrahman-dsi Oct 28, 2024
0356577
Merge pull request #306 from opencrvs/auto-pr-release-v1.6.0-305-10839
tahmidrahman-dsi Oct 30, 2024
0f452e1
Revert "chore: disable emails using QA_ENV env var"
Zangetsu101 Oct 30, 2024
67c1958
Merge branch 'release-v1.6.0' of github.com:opencrvs/opencrvs-country…
Zangetsu101 Oct 30, 2024
b0bb98a
test: only run tests from src/
Zangetsu101 Oct 30, 2024
a203809
wrap up 1.6.0 release
rikukissa Nov 22, 2024
6ba9772
Merge remote-tracking branch 'countryconfig/release-v1.6.0' into rele…
Zangetsu101 Nov 26, 2024
01c3cd6
For release v1.6.0 (#1172)
alsmk Dec 5, 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
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'cypress'],
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:cypress/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'prettier'
],
Expand Down
261 changes: 261 additions & 0 deletions .github/workflows/auto-pr-to-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
# 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: ''
dry_run:
description: 'Dry run'
required: false
default: false
type: boolean

jobs:
resolve-releases:
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.resolve-applicable-versions.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- 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-countryconfig/pulls/$PR_NUMBER)
echo "MILESTONE=$(printf '%s' $PR_DATA | jq -r '.milestone.title')" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Get PR details from event
if: ${{ github.event_name == 'pull_request' }}
id: get_pr_details_event
run: |
echo "MILESTONE=${{ github.event.pull_request.milestone.title }}" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

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

filter_versions() {
local input_version=$1

# List remote branches, extract versions, and sort them semantically
versions=$(git ls-remote --heads origin 'release-*' | awk -F'release-' '{print $2}' | sort -V)

# Filter out versions less than the input version
filtered_versions=$(echo "$versions" | awk -v input="$input_version" '
function compare_versions(v1, v2) {
split(v1, a, /[.v]/);
split(v2, b, /[.v]/);
for (i = 2; i <= 4; i++) {
if (a[i] < b[i]) return -1;
if (a[i] > b[i]) return 1;
}
return 0;
}
{
if (compare_versions($0, input) >= 0) {
print $0
}
}')

# Keep only the highest patch version for each minor version
echo "$filtered_versions" | awk -F. '
{
minor = $1 "." $2;
patches[minor] = $0;
}
END {
for (minor in patches) {
print patches[minor];
}
}' | sort -V
}

versions=$(filter_versions "${{ env.MILESTONE }}")
json_array=$(echo "$versions" | jq -R -s -c 'split("\n") | map(select(. != ""))')
echo "matrix=$json_array" >> $GITHUB_OUTPUT

create-pr:
needs: resolve-releases
runs-on: ubuntu-22.04
if: ${{ always() && needs.resolve-releases.result == 'success' }}

strategy:
fail-fast: false
matrix:
version: ${{fromJson(needs.resolve-releases.outputs.matrix)}}

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-countryconfig/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 "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.GH_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 "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

LATEST_COMMIT_SHA=$(gh pr view $PR_NUMBER --json commits --jq '.commits[-1].oid')
FIRST_COMMIT_SHA=$(gh pr view $PR_NUMBER --json commits --jq '.commits[0].oid')
echo "LATEST_COMMIT_SHA=${LATEST_COMMIT_SHA}" >> $GITHUB_ENV
echo "FIRST_COMMIT_SHA=${FIRST_COMMIT_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.GH_TOKEN }}

- name: Create and push the new branch for the PR
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
SEMANTIC_PR_TITLE="${{ env.PR_TITLE }}"
RELEASE_BRANCH="release-${{ matrix.version }}"
MILESTONE="${{ matrix.version }}"

# 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 $RELEASE_BRANCH"
fi

PR_BODY="Automated PR to merge changes from develop to $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 $RELEASE_BRANCH

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

echo "First commit: ${{ env.FIRST_COMMIT_SHA }}"
echo "Latest commit: ${{ env.LATEST_COMMIT_SHA }}"
# NOTE: git cherry-pick range needs ~ to include the FIRST_COMMIT_SHA (https://stackoverflow.com/questions/1994463/how-to-cherry-pick-a-range-of-commits-and-merge-them-into-another-branch)
COMMIT_RANGE="${{ env.FIRST_COMMIT_SHA }}~..${{ env.LATEST_COMMIT_SHA }}"

if [ "${{ env.FIRST_COMMIT_SHA }}" == "${{ env.LATEST_COMMIT_SHA }}" ]; then
COMMIT_RANGE=${{ env.FIRST_COMMIT_SHA }}
fi

echo "Commit range: $COMMIT_RANGE"

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

GIT_LOG_ONELINE_OUTPUT=$(git log --oneline --no-decorate $COMMIT_RANGE)

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 $COMMIT_RANGE
\`\`\`


**Individual commits:**
\`\`\`
$GIT_LOG_ONELINE_OUTPUT
\`\`\`
"
}

if [ "${{ github.event.inputs.dry_run }}" == "true" ]; then
echo "This is a dry run."
echo "Would have pushed the new branch $NEW_BRANCH"
echo "PR title: $SEMANTIC_PR_TITLE"
echo "PR body:"
echo "$PR_BODY"
exit 0
fi

# 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 "$RELEASE_BRANCH" --assignee "$AUTHOR" --reviewer "$AUTHOR"
20 changes: 14 additions & 6 deletions .github/workflows/clear-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ on:
jobs:
reset-data:
name: 'Reset data'
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-20.04
environment: ${{ inputs.environment }}
runs-on: ubuntu-22.04
outputs:
outcome: ${{ steps.reset-data.outcome }}
timeout-minutes: 60
steps:
- name: Clone country config resource package
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-depth: 1
path: './${{ github.event.repository.name }}'

- name: Read known hosts
Expand All @@ -45,11 +47,17 @@ jobs:
known_hosts: ${{ env.KNOWN_HOSTS }}

- name: Reset data
id: reset-data
env:
HOST: ${{ vars.DOMAIN }}
ENV: ${{ vars.ENVIRONMENT_TYPE }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
# SSH_HOST was moved from a secret to a variable in OpenCRVS 1.5.0
# @todo @deprecated remove the fallback to secrets.SSH_HOST in OpenCRVS 1.7.0
SSH_HOST: ${{ vars.SSH_HOST || secrets.SSH_HOST }}
# SSH_PORT was moved from a secret to a variable in OpenCRVS 1.5.0
# @todo @deprecated remove the fallback to secrets.SSH_PORT in OpenCRVS 1.7.0
SSH_PORT: ${{ vars.SSH_PORT || secrets.SSH_PORT }}
REPLICAS: ${{ vars.REPLICAS }}
MONGODB_ADMIN_USER: ${{ secrets.MONGODB_ADMIN_USER }}
MONGODB_ADMIN_PASSWORD: ${{ secrets.MONGODB_ADMIN_PASSWORD }}
Expand All @@ -58,7 +66,7 @@ jobs:
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
SSH_ARGS: ${{ vars.SSH_ARGS }}
run: |
ssh $SSH_USER@$SSH_HOST $SSH_ARGS "
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_ARGS "
ELASTICSEARCH_ADMIN_USER=elastic \
ELASTICSEARCH_ADMIN_PASSWORD=$ELASTICSEARCH_SUPERUSER_PASSWORD \
MONGODB_ADMIN_USER=$MONGODB_ADMIN_USER \
Expand All @@ -69,7 +77,7 @@ jobs:

echo "Running migrations..."
echo
ssh $SSH_USER@$SSH_HOST $SSH_ARGS "
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST $SSH_ARGS "
ELASTICSEARCH_ADMIN_USER=elastic \
ELASTICSEARCH_ADMIN_PASSWORD=$ELASTICSEARCH_SUPERUSER_PASSWORD \
/opt/opencrvs/infrastructure/run-migrations.sh"
Loading