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 additional login ids to mgmt cli #336

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

asafshen
Copy link
Member

@asafshen asafshen commented Dec 6, 2023

Description

  1. add additional login ids to mgmt cli actions
  2. also respect the user's email in update/create user actions

lmk what you think

@asafshen asafshen requested a review from shilgapira December 6, 2023 08:38
@dorsha dorsha requested a review from aviadl December 18, 2023 11:35
aviadl
aviadl previously approved these changes Dec 18, 2023
Copy link
Member

@dorsha dorsha left a comment

Choose a reason for hiding this comment

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

Let's wait with the merge a bit.

@dorsha dorsha enabled auto-merge (squash) December 18, 2023 16:52
@dorsha dorsha merged commit e22407b into main Dec 18, 2023
4 checks passed
@dorsha dorsha deleted the add-additional-login-ids-to-mgmt-cli branch December 18, 2023 16:53
user.Phone = flags.Phone
if flags.Email == "" && flags.Phone == "" {
user.Email = "[email protected]" // email or phone are required
Copy link
Member

@shilgapira shilgapira Dec 18, 2023

Choose a reason for hiding this comment

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

user.Email = "[email protected]" // email or phone are required

Why are we not just throwing an error?

Copy link
Member Author

Choose a reason for hiding this comment

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

thought about this as well, but it makes the API of the cli a bit more complex, I believe that this is the reason we add the default email in the first place

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.

4 participants