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

feat(rover): output service title for whoami #299

Merged
merged 9 commits into from
Feb 23, 2021
Merged

Conversation

lrlna
Copy link
Member

@lrlna lrlna commented Feb 22, 2021

Description

In our discussions we found that Name was not a useful piece of
information to show to Rover's users. Instead, this commit introduces
a Service title which is aligned with the information that Studio
displays for a given user.

closes #280

In our discussions we found that Name was not a useful piece of
information to show to Rover's users. Instead, this commit introduces
a Service title which is aligned with the information that Studio
displays for a user.

let title = match me.on {
who_am_i_query::WhoAmIQueryMeOn::Service(s) => s.title,
_ => "No Title".to_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.

Happy to have No Title as something else, if that doesn't sound suitable.

Copy link
Contributor

Choose a reason for hiding this comment

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

I doubt we'll see this case often (if ever?), but regardless, I think this is fine :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I see what's going on here. It's printing service title regardless of whether it's a service key or not. I think I'm going to push a commit changing that, feel free to reject it or push back tomorrow :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, yea this new commit you pushed works well. Merging the PR in.

@JakeDawkins
Copy link
Contributor

JakeDawkins commented Feb 22, 2021

I changed the printout to handle user and graph keys differently.

@JakeDawkins JakeDawkins added the feature 🎉 new commands, flags, functionality, and improved error messages label Feb 23, 2021
@lrlna lrlna merged commit df17531 into main Feb 23, 2021
@lrlna lrlna deleted the lrlna/whoami-title branch February 23, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎉 new commands, flags, functionality, and improved error messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clarify 'name' key in rover whoami
2 participants