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

[RCCA-4684] ignore errors getting user profile when listing invitations #1069

Merged
merged 4 commits into from
Nov 10, 2021

Conversation

mtodzo
Copy link
Contributor

@mtodzo mtodzo commented Nov 10, 2021

Checklist

  1. [CRUCIAL] Is the change for CP or CCloud functionalities that are already live in prod?

    • yes: ok
  2. Did you add/update any commands that accept secrets as args/flags?

    • no: ok

What

issue was that there was a GetUserProfile request being made to retrieve the first and last name of users to populate the invitation list. However, for users that have not yet accepted the invite via email, this request fails with User not found. The fix is to ignore errors on the GetUserProfile request and in that case just populate first/last names with "".

References

https://confluentinc.atlassian.net/browse/RCCA-4684

Test&Review

maunally

@mtodzo mtodzo requested a review from a team as a code owner November 10, 2021 17:54
Comment on lines +91 to +92
FirstName: firstName,
LastName: lastName,
Copy link
Member

Choose a reason for hiding this comment

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

So if there's an error, it's going to add a row with a missing first and last name? Is that intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

correct - which is fine since a user that has not accepted the invite yet (error case) would not yet have a first name / last name associated

Copy link
Member

@LucasLyld LucasLyld left a comment

Choose a reason for hiding this comment

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

lgtm. Thx for the fix

@mtodzo mtodzo merged commit 6e94858 into main Nov 10, 2021
@mtodzo mtodzo deleted the RCCA-4684 branch November 10, 2021 19:52
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