-
Notifications
You must be signed in to change notification settings - Fork 73
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
feat: Add constants.humanName to allow countries to have custom full name format #7957
base: develop
Are you sure you want to change the base?
Conversation
1a13fc2
to
b66f929
Compare
Your environment is deployed to https://ocrvs-6830-human-name-constant.opencrvs.dev |
b66f929
to
948771b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Siyasanga After taking a look at the changes made to the e2e tests, I would say it's better to change all those places in core to use the new format instead. As if only some of the places use the new format, then it would just create confusion
a2148db
to
c6f8c7a
Compare
3375112
to
40966ab
Compare
To allow countries to have custom ordering for full names #6830
To ensure that we get the format from the country-config #6830
To make the name more usable we had to extract the name formatting logic into it's own function. #6830
Replace older logic to get the name which was based on an assumption that we support names in multiple languages #6830
We've found cleaner way to make the rendered name customizable for each country through client copy from country-config #6830
We need to update all the places where a citizen's name is being referenced to show it in the format that the country chooses #6830
The expected name should match the format for the given country. #6830
40966ab
to
fc69672
Compare
Hi @Zangetsu101, hope you're good. Please review this PR when you have a chance. I have reverted the changes that were trying to generate the I've also removed the changes on the integration tests for the |
In order to allow countries to define their own full name format, we are adding a constants.humanName into the client.csv translations, which will then be used everywhere where we are displaying system users and citizen's name in the systems.
Addresses #6830