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

NOISSUE - Implement errors package in bootstrap service #1093

Merged
merged 4 commits into from
Apr 1, 2020

Conversation

blokovi
Copy link
Contributor

@blokovi blokovi commented Apr 1, 2020

Signed-off-by: Ivan Milošević iva@blokovi.com

What does this do?

Use mainflux errors package in Bootstrap service

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

Related to issues #538 and #870

List any changes that modify/break current functionality

API endpoints return error message in response body for errors (not just status response code in header)

Have you included tests for your changes?

Yes

@blokovi blokovi requested a review from a team as a code owner April 1, 2020 00:42
bootstrap/service.go Outdated Show resolved Hide resolved
@codecov-io
Copy link

Codecov Report

Merging #1093 into master will decrease coverage by 0.04%.
The diff coverage is 48.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1093      +/-   ##
==========================================
- Coverage   77.38%   77.34%   -0.05%     
==========================================
  Files          95       95              
  Lines        6872     6723     -149     
==========================================
- Hits         5318     5200     -118     
+ Misses       1224     1192      -32     
- Partials      330      331       +1     
Impacted Files Coverage Δ
bootstrap/api/responses.go 100.00% <ø> (ø)
bootstrap/postgres/configs.go 70.10% <24.24%> (-1.66%) ⬇️
bootstrap/service.go 78.85% <50.00%> (-4.25%) ⬇️
bootstrap/api/transport.go 93.66% <71.87%> (-3.56%) ⬇️
twins/service.go 38.17% <0.00%> (-1.91%) ⬇️
things/service.go 88.97% <0.00%> (-1.48%) ⬇️
http/api/transport.go 74.39% <0.00%> (-0.40%) ⬇️
ws/api/transport.go 87.50% <0.00%> (+0.95%) ⬆️
ws/adapter.go 93.75% <0.00%> (+12.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46aadcf...3052331. Read the comment docs.

drasko
drasko previously approved these changes Apr 1, 2020
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

bootstrap/postgres/configs.go Outdated Show resolved Hide resolved
bootstrap/service.go Outdated Show resolved Hide resolved
manuio
manuio previously approved these changes Apr 1, 2020
Copy link
Contributor

@manuio manuio left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Ivan Milošević <iva@blokovi.com>
Signed-off-by: Ivan Milošević <iva@blokovi.com>
Signed-off-by: Ivan Milošević <iva@blokovi.com>
Signed-off-by: Ivan Milošević <iva@blokovi.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

Copy link
Contributor

@manuio manuio left a comment

Choose a reason for hiding this comment

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

LGTM

@manuio manuio merged commit 51ec256 into absmach:master Apr 1, 2020
@blokovi blokovi deleted the errors3 branch April 6, 2020 18:25
manuio pushed a commit that referenced this pull request Oct 12, 2020
* implement errors in bootstrap service

Signed-off-by: Ivan Milošević <iva@blokovi.com>

* remove dead code

Signed-off-by: Ivan Milošević <iva@blokovi.com>

* change errors messages

Signed-off-by: Ivan Milošević <iva@blokovi.com>

* edit more errors messages

Signed-off-by: Ivan Milošević <iva@blokovi.com>
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.

5 participants