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 - Fix run script and compiler warnings #1336

Merged
merged 3 commits into from
Jan 26, 2021

Conversation

dborovcanin
Copy link
Collaborator

Signed-off-by: dusanb94 dusan.borovcanin@mainflux.com

What does this do

This pull request addresses:

  • naming of [NATS](https://nats.io/ binary
  • unnecessary type conversions in Logger
  • bugs with casting int64 to string in Twins service.

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

There is no such issue.

List any changes that modify/break current functionality

There are no breaking changes.

Have you included tests for your changes?

No, because no new features are added.

Did you document any new/modified functionality?

No, there is no cush functionality.

@codecov-io
Copy link

codecov-io commented Jan 21, 2021

Codecov Report

Merging #1336 (4ed47ff) into master (85f73a8) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1336      +/-   ##
==========================================
- Coverage   59.92%   59.91%   -0.01%     
==========================================
  Files         113      113              
  Lines        8860     8858       -2     
==========================================
- Hits         5309     5307       -2     
- Misses       3085     3086       +1     
+ Partials      466      465       -1     
Impacted Files Coverage Δ
readers/mongodb/messages.go 70.58% <ø> (+2.01%) ⬆️
logger/level.go 100.00% <100.00%> (ø)
things/service.go 53.40% <0.00%> (-1.14%) ⬇️

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 85f73a8...4ed47ff. Read the comment docs.

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.

This PR includes notify service as well, I guess it needs to be merged after

@dborovcanin dborovcanin marked this pull request as ready for review January 25, 2021 15:56
@dborovcanin dborovcanin requested a review from a team as a code owner January 25, 2021 15:56
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
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

@@ -82,9 +82,6 @@ func (repo mongoRepository) ReadAll(chanID string, offset, limit uint64, query m
if err != nil {
return readers.MessagesPage{}, errors.Wrap(errReadMessages, err)
}
if total < 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not addressed in PR, not sure if it's accidentally removed?

Copy link
Collaborator Author

@dborovcanin dborovcanin Jan 25, 2021

Choose a reason for hiding this comment

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

It's removed because total is uint type, so this can never be true (in fact, that's why we use uint instead of int).

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 31f5bf7 into absmach:master Jan 26, 2021
fbugarski pushed a commit to fbugarski/mainflux that referenced this pull request Mar 8, 2021
* Fix NATS server naming in run script

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>

* Fix warnings

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>

* Fix typo

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
@dborovcanin dborovcanin deleted the fix-run branch July 21, 2021 14: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.

5 participants