Skip to content
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

chore: move project handler errors to common translator #627

Merged
merged 2 commits into from
May 24, 2024

Conversation

anujk14
Copy link
Contributor

@anujk14 anujk14 commented May 23, 2024

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

Copy link

vercel bot commented May 23, 2024

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
Copy link

coveralls commented May 23, 2024

Pull Request Test Coverage Report for Build 9207042715

Details

  • 19 of 21 (90.48%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 9.329%

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

💛 - Coveralls

@ravisuhag ravisuhag merged commit fe3f1d6 into main May 24, 2024
7 checks passed
@ravisuhag ravisuhag deleted the IDE-364-project-error-handling branch May 24, 2024 04:30
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