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

Add configurable preferred names in ldap sync #5442

Merged

Conversation

jrjohnson
Copy link
Member

This allows a campus to compute a first name from either a primary directory attribute or, if it is set, a preferred name field. When users are synced their lived or preferred name will be stored in the existing first and last name fields in the database.

This allows a campus to compute a first name from either a primary
directory attribute or, if it is set, a preferred name field. When users
are synced their lived or preferred name will be stored in the existing
first and last name fields in the database.
@jrjohnson jrjohnson force-pushed the configurable-ldap-preffered-names branch from a38a23e to 9028853 Compare May 8, 2024 15:18
@jrjohnson jrjohnson marked this pull request as ready for review May 8, 2024 16:23
@jrjohnson jrjohnson requested a review from stopfstedt as a code owner May 8, 2024 16:23
@@ -71,7 +71,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'Display Name',
'Pronouns',
'Email',
'Phone Number'
'Phone Number',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is adding a trailing comma just a PHP style thing that is the convention now?

Copy link
Member Author

Choose a reason for hiding this comment

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

We haven't done lint enforcement yet so it's not convention today. I was messing with this array and added the trailing comma, I left it in because I like how always having a last item comma makes git diffs easier to read because it doesn't indicate that the comma is a change to the line.

Copy link
Contributor

Choose a reason for hiding this comment

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

My experience with PHP testing is limited, so I'm not sure how best to "review" these. If they pass, I'm good!

Copy link
Member Author

Choose a reason for hiding this comment

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

In this case tests cover it fairly well. I'd look out for some classic Jon errors like misspelling preferred somewhere, but otherwise we'll test this PR in a staging environment as well before merging to ensure the ldap stuff works agains the UCSF directory.

@jrjohnson jrjohnson added the safe to deploy mark as from a trusted source and OK to deploy label May 8, 2024
Copy link
Contributor

github-actions bot commented May 8, 2024

PR deployed to docker for all containers, you can access with the tag preview-pr-5442

@michaelchadwick michaelchadwick merged commit 8d9f12c into ilios:master May 8, 2024
47 checks passed
@jrjohnson jrjohnson deleted the configurable-ldap-preffered-names branch May 8, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to deploy mark as from a trusted source and OK to deploy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants