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

Update directory commands to use preferred names #5455

Merged
merged 1 commit into from
May 16, 2024

Conversation

jrjohnson
Copy link
Member

@jrjohnson jrjohnson commented May 14, 2024

Adding the display name and replacing output of the first and last name with the preferred version as well as saving the preferred version for new students synced into a school to match the behavior of the user sync command.

Refs #5453

@jrjohnson jrjohnson force-pushed the 5453-preferred-name-find-command branch 3 times, most recently from c487c92 to 53b53ae Compare May 16, 2024 05:11
Adding the display name and replacing output of the first and last name
with the preferred version as well as saving the preferred version for
new students synced into a school to match the behavior of the user sync
command.
@jrjohnson jrjohnson force-pushed the 5453-preferred-name-find-command branch from 53b53ae to e08d308 Compare May 16, 2024 05:25
@jrjohnson jrjohnson marked this pull request as ready for review May 16, 2024 15:50
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the new convention for phpDoc?

Copy link
Member Author

Choose a reason for hiding this comment

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

I remove the doc expressions when the property is typed, don't like to keep them both so we don't have to keep them in sync.

@@ -51,7 +51,7 @@ public function testFindByCampusId(): void
$this->config->shouldReceive('get')->once()->with('ldap_directory_campus_id_property')->andReturn('campusId');
$this->ldapManager->shouldReceive('search')->with('(campusId=1234)')->andReturn([['id' => 1]]);

$result = $this->obj->findByCampusId(1234);
$result = $this->obj->findByCampusId('1234');
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the reason for changing this from a number to a string?

Copy link
Member Author

Choose a reason for hiding this comment

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

I typed the parameter because it's always a string in production. Just had to update the test.

Copy link
Contributor

@michaelchadwick michaelchadwick left a comment

Choose a reason for hiding this comment

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

Bueno!

@dartajax dartajax merged commit b277e25 into ilios:master May 16, 2024
32 checks passed
@jrjohnson jrjohnson deleted the 5453-preferred-name-find-command branch May 16, 2024 19:16
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.

None yet

3 participants