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

MF-1783 - Improve HTTP / gRPC codes when attempting to publish with nonexistent thing key / channel id #1798

Merged
merged 4 commits into from
May 29, 2023

Conversation

SammyOina
Copy link
Contributor

What does this do?

Improves error reports for invalid channels and things.

Which issue(s) does this PR fix/relate to?

Resolves #1783

List any changes that modify/break current functionality

Non-existent channel id and thing key returned 500 internal error which is now switched to 404 not found.

Have you included tests for your changes?

No

Did you document any new/modified functionality?

No

Notes

@codecov-commenter
Copy link

codecov-commenter commented May 22, 2023

Codecov Report

Merging #1798 (8a101d9) into master (7cc1dd9) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #1798      +/-   ##
==========================================
- Coverage   70.00%   69.97%   -0.03%     
==========================================
  Files         149      149              
  Lines       11803    11808       +5     
==========================================
  Hits         8263     8263              
- Misses       2870     2875       +5     
  Partials      670      670              
Impacted Files Coverage Δ
http/api/transport.go 69.30% <0.00%> (-2.13%) ⬇️
things/api/auth/grpc/server.go 79.48% <0.00%> (-2.10%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@SammyOina SammyOina marked this pull request as ready for review May 22, 2023 14:28
@SammyOina SammyOina requested a review from a team as a code owner May 22, 2023 14:28
@dborovcanin dborovcanin force-pushed the MF-1783 branch 2 times, most recently from 8a101d9 to a272540 Compare May 29, 2023 13:29
Signed-off-by: SammyOina <sammyoina@gmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Signed-off-by: SammyOina <sammyoina@gmail.com>
Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@drasko drasko merged commit da40c54 into absmach:master May 29, 2023
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.

Improve HTTP / gRPC codes when attempting to publish with nonexistent thing key / channel id
4 participants