Skip to content

Commit a7f72ee

Browse files
authored
Merge pull request #6504 from opencrvs/release-v1.4.1
Release v1.4.1
2 parents c322549 + de0776f commit a7f72ee

File tree

77 files changed

+370
-511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+370
-511
lines changed

.github/DISCUSSION_TEMPLATE/Installation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ body:
2121
id: core-version
2222
attributes:
2323
label: OpenCRVS Core version
24-
description: e.g 1.4.0
24+
description: e.g 1.4.1
2525
validations:
2626
required: true
2727
- type: input
2828
id: countryconfig-version
2929
attributes:
3030
label: OpenCRVS Countryconfig version
31-
description: e.g 1.4.0
31+
description: e.g 1.4.1
3232
validations:
3333
required: true
3434
- type: input

.github/workflows/lint-and-test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,3 @@ jobs:
4040

4141
- name: Run Unit Test
4242
run: yarn test
43-
44-
- name: Run code coverage
45-
run: |
46-
npm install codecov
47-
./node_modules/.bin/codecov

CHANGELOG renamed to CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## [1.4.1](https://github.com/opencrvs/opencrvs-core/compare/v1.3.3...v1.4.1)
4+
5+
- Fix Metabase versions in Dashboards service. Previously the version used for local development wasn't the one built into the docker image, which caused the locally generated initialisation file to fail in deployed environments.
6+
- Fix a seeding script bug, where it failed when done too quickly [#6553](https://github.com/opencrvs/opencrvs-core/issues/6553)
7+
- Update minimum password length validation [#6559](https://github.com/opencrvs/opencrvs-core/issues/6559)
8+
- Include middlename when generating fullnames
9+
- Refactored out the scattered logic for generating fullnames and converged them into a single function
10+
- Make lastname optional for a registered declaration
11+
- Recognize occupation as an optional field in informant section
12+
- Fix download failure when `arrayToFieldTransormer` is used in template mapping
13+
- Fix multiple records not being downloaded simultaneously [#6492](https://github.com/opencrvs/opencrvs-core/issues/6492#issuecomment-1961098936)
14+
- Fix showing unassigned toast for reinstated declarations [#6492](https://github.com/opencrvs/opencrvs-core/issues/6492#issuecomment-1961098936)
15+
- Fix system crash when opening the started action modal [#6551](https://github.com/opencrvs/opencrvs-core/issues/6551)
16+
- Make language names used in language select dropdowns configurable in country resource package copy
17+
- Fix login to field agent when an incomplete record is previously retrieved by them [#6584](https://github.com/opencrvs/opencrvs-core/issues/6584)
18+
319
## [1.4.0](https://github.com/opencrvs/opencrvs-core/compare/v1.3.3...v1.4.0)
420

521
In this release, we made **no changes** to OpenCRVS Core. All changes in this release apply only to the [OpenCRVS country configuration](https://github.com/opencrvs/opencrvs-countryconfig/releases/tag/v1.4.0) repository.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<br>
66
<a href="https://github.com/opencrvs/opencrvs-core/issues">Report an issue</a> · <a href="https://community.opencrvs.org">Join our community</a> · <a href="https://documentation.opencrvs.org">Read our documentation</a> · <a href="https://www.opencrvs.org">www.opencrvs.org</a></p>
77

8-
[![codecov](https://codecov.io/gh/opencrvs/opencrvs-core/branch/master/graph/badge.svg)](https://codecov.io/gh/opencrvs/opencrvs-core)[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
8+
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
99

1010
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1111
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "OpenCRVS core workspace",
33
"license": "MPL-2.0",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"private": true,
66
"workspaces": [
77
"packages/*"

packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencrvs/auth",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "OpenCRVS authentication service",
55
"license": "MPL-2.0",
66
"private": true,

packages/client/graphql.schema.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7989,12 +7989,6 @@
79897989
"isDeprecated": false,
79907990
"deprecationReason": null
79917991
},
7992-
{
7993-
"name": "OSIA",
7994-
"description": null,
7995-
"isDeprecated": false,
7996-
"deprecationReason": null
7997-
},
79987992
{
79997993
"name": "OTHER",
80007994
"description": null,

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencrvs/client",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "OpenCRVS client application",
55
"license": "MPL-2.0",
66
"private": true,

packages/client/src/App.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,10 @@ export function App(props: IAppProps) {
382382
<ProtectedRoute
383383
exact
384384
roles={[
385+
SystemRoleType.RegistrationAgent,
385386
SystemRoleType.LocalRegistrar,
386387
SystemRoleType.LocalSystemAdmin,
388+
SystemRoleType.NationalRegistrar,
387389
SystemRoleType.NationalSystemAdmin,
388390
SystemRoleType.PerformanceManagement
389391
]}
@@ -443,7 +445,8 @@ export function App(props: IAppProps) {
443445
roles={[
444446
SystemRoleType.LocalSystemAdmin,
445447
SystemRoleType.NationalSystemAdmin,
446-
SystemRoleType.PerformanceManagement
448+
SystemRoleType.PerformanceManagement,
449+
SystemRoleType.NationalRegistrar
447450
]}
448451
path={
449452
routes.PERFORMANCE_STATISTICS
@@ -455,7 +458,8 @@ export function App(props: IAppProps) {
455458
roles={[
456459
SystemRoleType.LocalSystemAdmin,
457460
SystemRoleType.NationalSystemAdmin,
458-
SystemRoleType.PerformanceManagement
461+
SystemRoleType.PerformanceManagement,
462+
SystemRoleType.NationalRegistrar
459463
]}
460464
path={
461465
routes.PERFORMANCE_LEADER_BOARDS
@@ -467,7 +471,8 @@ export function App(props: IAppProps) {
467471
roles={[
468472
SystemRoleType.LocalSystemAdmin,
469473
SystemRoleType.NationalSystemAdmin,
470-
SystemRoleType.PerformanceManagement
474+
SystemRoleType.PerformanceManagement,
475+
SystemRoleType.NationalRegistrar
471476
]}
472477
path={
473478
routes.PERFORMANCE_DASHBOARD

packages/client/src/components/form/FormFieldGenerator.tsx

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ import { InformativeRadioGroup } from '@client/views/PrintCertificate/Informativ
9797
import { DocumentUploaderWithOption } from './DocumentUploadfield/DocumentUploaderWithOption'
9898
import {
9999
WrappedComponentProps as IntlShapeProps,
100-
FormattedMessage,
101100
MessageDescriptor,
102101
useIntl
103102
} from 'react-intl'
@@ -114,11 +113,7 @@ import { IOfflineData, LocationType } from '@client/offline/reducer'
114113
import { isEqual, flatten } from 'lodash'
115114
import { SimpleDocumentUploader } from './DocumentUploadfield/SimpleDocumentUploader'
116115
import { getOfflineData } from '@client/offline/selectors'
117-
import {
118-
dynamicDispatch,
119-
IDeclaration,
120-
writeDeclaration
121-
} from '@client/declarations'
116+
import { dynamicDispatch } from '@client/declarations'
122117
import { useDispatch, useSelector } from 'react-redux'
123118
import { LocationSearch } from '@opencrvs/components/lib/LocationSearch'
124119
import { REGEXP_NUMBER_INPUT_NON_NUMERIC } from '@client/utils/constants'
@@ -131,16 +126,7 @@ import { IBaseAdvancedSearchState } from '@client/search/advancedSearch/utils'
131126
import { UserDetails } from '@client/utils/userUtils'
132127
import { VerificationButton } from '@opencrvs/components/lib/VerificationButton'
133128
import { useOnlineStatus } from '@client/utils'
134-
import {
135-
match,
136-
RouteComponentProps,
137-
useHistory,
138-
useLocation,
139-
useRouteMatch,
140-
withRouter
141-
} from 'react-router'
142-
import { saveDraftAndRedirectToNidIntegration } from '@client/views/OIDPVerificationCallback/utils'
143-
import { getDraftsState } from '@client/declarations/selectors'
129+
import { useNidAuthentication } from '@client/views/OIDPVerificationCallback/utils'
144130
import { BulletList, Divider } from '@opencrvs/components'
145131
import { Heading2, Heading3 } from '@opencrvs/components/lib/Headings/Headings'
146132

@@ -778,7 +764,7 @@ interface IFormSectionProps {
778764
interface IStateProps {
779765
offlineCountryConfig: IOfflineData
780766
userDetails: UserDetails | null
781-
declarations: IDeclaration[] | null
767+
onNidAuthenticationClick: () => void
782768
}
783769

784770
interface IDispatchProps {
@@ -789,7 +775,7 @@ type Props = IFormSectionProps &
789775
IStateProps &
790776
IDispatchProps &
791777
FormikProps<IFormSectionData> &
792-
IntlShapeProps & { match: match }
778+
IntlShapeProps
793779

794780
interface IQueryData {
795781
[key: string]: any
@@ -1072,29 +1058,7 @@ class FormSectionComponent extends React.Component<Props> {
10721058
: field.type === NID_VERIFICATION_BUTTON
10731059
? ({
10741060
...field,
1075-
onClick: () => {
1076-
const matchParams = this.props.match.params as {
1077-
declarationId: string
1078-
groupId: string
1079-
pageId: string
1080-
}
1081-
const declaration = this.props.declarations?.find(
1082-
(declaration) =>
1083-
declaration.id === matchParams.declarationId
1084-
)
1085-
if (!declaration) {
1086-
return
1087-
}
1088-
saveDraftAndRedirectToNidIntegration(
1089-
declaration,
1090-
writeDeclaration,
1091-
offlineCountryConfig,
1092-
matchParams.declarationId,
1093-
matchParams.pageId,
1094-
this.props.match.url
1095-
)
1096-
}
1097-
//TODO: HANDLE FETCH FOR NID
1061+
onClick: this.props.onNidAuthenticationClick
10981062
} as INidVerificationButton)
10991063
: field
11001064

@@ -1270,8 +1234,7 @@ export const FormFieldGenerator: React.FC<IFormSectionProps> = (props) => {
12701234
const userDetails = useSelector(getUserDetails)
12711235
const intl = useIntl()
12721236
const dispatch = useDispatch()
1273-
const match = useRouteMatch()
1274-
const { declarations } = useSelector(getDraftsState)
1237+
const { onClick: onNidAuthenticationClick } = useNidAuthentication()
12751238

12761239
return (
12771240
<Formik<IFormSectionData>
@@ -1297,8 +1260,7 @@ export const FormFieldGenerator: React.FC<IFormSectionProps> = (props) => {
12971260
offlineCountryConfig={offlineCountryConfig}
12981261
userDetails={userDetails}
12991262
dynamicDispatch={(...args) => dispatch(dynamicDispatch(...args))}
1300-
match={match}
1301-
declarations={declarations}
1263+
onNidAuthenticationClick={onNidAuthenticationClick}
13021264
/>
13031265
)}
13041266
</Formik>

0 commit comments

Comments
 (0)