Closed anujk14 closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
frontier | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 23, 2024 11:18am |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
internal/api/v1beta1/project.go | 19 | 21 | 90.48% | ||
<!-- | Total: | 19 | 21 | 90.48% | --> |
Totals | |
---|---|
Change from base Build 9185397943: | -0.01% |
Covered Lines: | 9543 |
Relevant Lines: | 102296 |
This PR adds an error translator in projects handler which translates errors from services to response errors which are sent to users.
An additional change in this PR is an error type change: In update project API for
organization.ErrInvalidUUID
the error being returned to user changes fromgrpcProjectNotFoundErr
togrpcBadBodyError
as it is a validation request associated with the request body. This change also makes it consistent with the create project API, which returnsgrpcBadBodyError
as well in case of invalid UUIDs