batches: use user name/e-mail with unauthored batch specs#43828
Conversation
|
Generally this makes sense for me, I think it would be nice if it was eventually a separate setting in your usersettings (in case companies have differing committer / sourcegraph primary email setups) instead of magically selecting some email address in your user account, but that seems alright the way it is. Also, I think you found all the right spots here. I would move it out of the for loop in the workspace creator though. re: is this something that should be in our store: |
|
Nothing more additional I'd add to that except to back up that this fallback behavior seems reasonable to me. Let's make sure we document it in the same places as we document the default author/email behavior for src-cli, though. I agree allowing users to configure this with a setting eventually seems useful as well, but I wouldn't rush to implement that as I expect that the majority of the time, a user's Sourcegraph email would be the same as they'd want to use for committing code to their company's repos. |
@eseliger @LawnGnome Is this the only part that still needs work here? Along with updating docs? |
Would be great if we could investigate this as well! |
In no particular order, I think this needs:
I also think we should investigate moving the worker store out of |
what do you think the subpackage should be called? And should anything else be apart of that package for now? or just this one method? |
Let's call it And yep, I think it'll literally just be that one function for now. 🤷 Good thing storage is cheap and directories are small! |
hey @LawnGnome @eseliger in working on this i actually did encounter import implications leaving me unable to import |
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff 5dec121...fb485e0.
|
courier-new
left a comment
There was a problem hiding this comment.
Looks great, just made one suggestion to improve our confidence in the tests. 😄
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>

Implementing the same fallback behaviour for changeset specs on SSBC that we have on the client side where we try to get the author name and e-mail for commits from the environment if they're not in the batch spec by pulling that from the user's account details. Created a sub-package author
Test plan
tested with each test case