Skip to content

Add some git commands for usability testing - #54

Merged
vilmibm merged 6 commits into
prototypefrom
prototype-2019-11-06
Nov 8, 2019
Merged

vilmibm merged 6 commits into
prototypefrom
prototype-2019-11-06

Conversation

@vilmibm

@vilmibm vilmibm commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

⚠️ ⚠️ ⚠️ this probably doesn't make sense to merge ⚠️ ⚠️ ⚠️

This PR consists of some code we wanted to put in front of users during usability testing to gauge responses to us proxying / augmenting some git commands.

@mislav mislav left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Feature-wise, I find it kind of weird that gh add and gh commit are identical to git, while push and status are mostly similar but with extra functionality.

But I'm guessing that the point of including this in user testing is validating how users feel about this, so 👍

Comment thread command/add.go
err := gitCmd.Run()

if err != nil {
return errors.Wrap(err, "git failed")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think that if we're simply proxying to git, we don't need to add extra error output on top of what git will already write to stderr.

That means we would also need to turn off automatic printing of the err object to stderr in main.go. Potential idea: we define a "SilentError" object in the command package and return that whenever we want to signal failure but when we don't want anything extra to be printed. Then in main.go:

if err != command.SilentError {
  // print to stderr
}
os.Exit(1)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

my hope is that this code doesn't last past the usability test; we can definitely come back to this if git proxying is to land in master.

@vilmibm
vilmibm merged commit 5d1f253 into prototype Nov 8, 2019
@mislav
mislav deleted the prototype-2019-11-06 branch November 27, 2019 18:23
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.

2 participants