Skip to content

Conversation

@skyscribe
Copy link
Contributor

Previously only the first user is taken when an issue is assigned, things would stop working when multiple user records are returned from server, and intended user is not listed at the head of result list.

A second filter is applied if multiple user records are returned, so if there is an exact match, it should be returned instead of the first one in original query list.

Fix get_user_id to check key also if there are multiple matches
Copy link
Contributor

@adehad adehad left a comment

Choose a reason for hiding this comment

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

Looks mostly fine to me. Can I confirm the situation is: you are searching by the exact key and you aren't getting it from the first result?

@adehad adehad added the bug label Sep 17, 2021
skyscribe and others added 3 commits October 6, 2021 20:29
@skyscribe skyscribe requested a review from adehad October 6, 2021 13:25
@studioj studioj added the Status: Needs Rework PR has been submitted, but changes required. label Oct 30, 2021
skyscribe and others added 2 commits January 9, 2022 11:06
 update per review comments. Co-authored-by: Adel Haddad <26027314+adehad@users.noreply.github.com>
Co-authored-by: Adel Haddad <26027314+adehad@users.noreply.github.com>
@studioj studioj requested a review from adehad January 15, 2022 13:38
@adehad adehad removed Status: Needs Rework PR has been submitted, but changes required. labels Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants