Skip to content

[DB-379] Improve error messaging for non-existent projections in GRPC API#4197

Merged
thefringeninja merged 1 commit intomasterfrom
daveremy/db-379-proj-err-improve
Mar 14, 2024
Merged

[DB-379] Improve error messaging for non-existent projections in GRPC API#4197
thefringeninja merged 1 commit intomasterfrom
daveremy/db-379-proj-err-improve

Conversation

@daveremy
Copy link
Copy Markdown
Contributor

@daveremy daveremy commented Mar 8, 2024

Fixed: Improve error messaging for non-existent projections in gRPC API

This commit resolves the issue where querying non-existent projections through the Projection Management GRPC API returned an unclear 'UNKNOWN: Envelope callback expected Statistics, received NotFound instead' error. This fix introduces a clearer not found error message across the projection management operations Delete, Disable, Enable, Reset, Update, and Statistics (Status).

There are currently no GRPC tests for this on the server. Validation was performed using the node client. Future improvements should include adding server-side GRPC tests for these scenarios. (https://linear.app/eventstore/issue/DB-698/consider-grpc-testing-strategy)

Fixes #2732

Related Linear Issue: DB-379 (https://linear.app/eventstore/issue/DB-379/grpc-listing-a-non-existant-projection-gives-a-poor-quality-error)

@linear
Copy link
Copy Markdown

linear Bot commented Mar 8, 2024

@timothycoleman timothycoleman changed the title Improve error messaging for non-existent projections in GRPC API (Fix… [DB-379] Improve error messaging for non-existent projections in GRPC API Mar 11, 2024
Copy link
Copy Markdown
Contributor

@timothycoleman timothycoleman left a comment

Choose a reason for hiding this comment

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

ive added some suggestions #4199 if you're happy we can squash the whole thingt into one commit

#2732, DB-379)

This commit resolves the issue where querying non-existent projections through the Projection Management GRPC API returned an unclear 'UNKNOWN: Envelope callback expected Statistics, received NotFound instead' error. This fix introduces a clearer not found error message across the projection management operations Delete, Disable, Enable, Reset, Update, and Statistics (Status).

There are currently no GRPC tests for this on the server validation was performed using the node client. Future improvements should include adding server-side GRPC tests for these scenarios.

GitHub Issue: #2732
Linear Issue: https://linear.app/eventstore/issue/DB-379/grpc-listing-a-non-existant-projection-gives-a-poor-quality-error
@daveremy daveremy force-pushed the daveremy/db-379-proj-err-improve branch from da0dc87 to 3f206fb Compare March 13, 2024 19:46
Copy link
Copy Markdown
Contributor

@timothycoleman timothycoleman left a comment

Choose a reason for hiding this comment

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

👍

@thefringeninja thefringeninja merged commit fbd1ae2 into master Mar 14, 2024
@thefringeninja thefringeninja deleted the daveremy/db-379-proj-err-improve branch March 14, 2024 16:29
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.

GRPC: Listing a non-existant projection gives a poor quality error message

3 participants