Skip to content

fix: remove string TTL from workspace error responses#3257

Merged
johnstcn merged 4 commits into
mainfrom
cj/noissue/nuke-ttl-from-errors
Jul 27, 2022
Merged

fix: remove string TTL from workspace error responses#3257
johnstcn merged 4 commits into
mainfrom
cj/noissue/nuke-ttl-from-errors

Conversation

@johnstcn
Copy link
Copy Markdown
Member

This PR:

  • Rewrites some error messages to better integrate with the frontend (ttl_ms -> time until shutdown)
  • Makes codersdk.ValidationError implement the error interface
  • only return validations if the error was a validation error, return detail otherwise (e.g. database error)

@johnstcn johnstcn self-assigned this Jul 27, 2022
Copy link
Copy Markdown
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.

Yay!

@johnstcn johnstcn enabled auto-merge (squash) July 27, 2022 21:06
@johnstcn johnstcn requested a review from a team as a code owner July 27, 2022 21:11
Copy link
Copy Markdown
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 ✅

Copy link
Copy Markdown
Contributor

@AbhineetJain AbhineetJain left a comment

Choose a reason for hiding this comment

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

Noice!

@johnstcn johnstcn merged commit 27ea415 into main Jul 27, 2022
@johnstcn johnstcn deleted the cj/noissue/nuke-ttl-from-errors branch July 27, 2022 21:20
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