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

feat: We don't want to concatenate additionalName in the displayName #1457

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

Merkur39
Copy link
Member

@Merkur39 Merkur39 commented Apr 2, 2024

This attribute will be used within cozy-contacts.

In this case, we do not want to concatenate in the displayName attribute the additionalName attribute.

A simple solution is to offer the possibility to makeFullname to construct the displayName in a personalized way (within the limits of the attributes existing in name)

'familyName',
'nameSuffix'
]
return ['namePrefix', 'givenName', 'familyName', 'nameSuffix']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu parles de displayName dans la PR mais tu changes le makeFullName. Y a des endroits où le additionalName pourrait être utile dans le fullName. (genre si tu veux récupérer tous les prénoms d'un français ou ce genre de chose). Du coup pourquoi ne pas changer la méthode displayName ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je me suis trompé dans mon titre de commit, je vais reformuler.
Ca ne change pas la pertinence de ta question, pour y répondre je viens de pousser une nouvelle approche.

je ne suis pas convaincu du nom de l'option attributesFullname, mais sinon l'approche me parait viable.

@Merkur39 Merkur39 changed the title feat: We don't want to see additionalName in the displayName feat: We don't want to see additionalName in the makeDisplayName Apr 2, 2024
@Merkur39 Merkur39 changed the title feat: We don't want to see additionalName in the makeDisplayName feat: We don't want to concatenate additionalName in the displayName Apr 2, 2024
@Merkur39 Merkur39 requested a review from Crash-- April 2, 2024 13:58
This attribute will be used within cozy-contacts.

In this case, we do not want to concatenate in the
`displayName` attribute the `additionalName` attribute.

A simple solution is to offer the possibility to `makeFullname`
to construct the `displayName` in a personalized way
(within the limits of the attributes existing in `name`)
@Merkur39 Merkur39 merged commit 6a03a1c into master Apr 2, 2024
4 checks passed
@Merkur39 Merkur39 deleted the feat/ver-86 branch April 2, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants