Skip to content

feat: Add initiator_username to workspace builds in apis #2174

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

Merged
merged 5 commits into from
Jun 9, 2022

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jun 8, 2022

What this does

Returns the username of the initiator in workspace builds.

Implementation notes

The GetUsersByIDs call I use to fetch the usernames might not return the full set requested. For this reason convertWorkspaceBuild now takes a *database.User to handle the nil case. I handle the nil case in the convert for a consistent message of "unknown". In practice, this should never actually happen as our users should always exist.

@Emyrk Emyrk closed this Jun 8, 2022
@Emyrk Emyrk reopened this Jun 8, 2022
@Emyrk Emyrk requested a review from a team as a code owner June 8, 2022 16:15
@Emyrk Emyrk requested a review from kylecarbs June 8, 2022 16:32
@Emyrk
Copy link
Member Author

Emyrk commented Jun 8, 2022

CI is failing on all branches I think Fixed

Copy link
Contributor

@presleyp presleyp left a comment

Choose a reason for hiding this comment

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

Frontend ✔️

@Emyrk Emyrk merged commit 74fe38e into main Jun 9, 2022
@Emyrk Emyrk deleted the stevenmasley/build_initiator_username_status branch June 9, 2022 01:23
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
* feat: Add initiator_username to workspace builds in apis
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.

3 participants