raystack / frontier

Frontier is an all-in-one user management platform that provides identity, access and billing management to help organizations secure their systems and data. (Open source alternative to Clerk)
https://raystack-frontier.vercel.app/
Apache License 2.0
250 stars 32 forks source link

chore: move project handler errors to common translator #627

Closed anujk14 closed 1 month ago

anujk14 commented 1 month ago

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 from grpcProjectNotFoundErr to grpcBadBodyError as it is a validation request associated with the request body. This change also makes it consistent with the create project API, which returns grpcBadBodyError as well in case of invalid UUIDs

vercel[bot] commented 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
coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 9207042715

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/api/v1beta1/project.go 19 21 90.48%
<!-- Total: 19 21 90.48% -->
Totals Coverage Status
Change from base Build 9185397943: -0.01%
Covered Lines: 9543
Relevant Lines: 102296

💛 - Coveralls