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 - Add readers pagination in SDK #736

Merged
merged 2 commits into from
May 7, 2019
Merged

NOISSUE - Add readers pagination in SDK #736

merged 2 commits into from
May 7, 2019

Conversation

manuio
Copy link
Contributor

@manuio manuio commented May 7, 2019

Signed-off-by: Manuel Imperiale manuel.imperiale@gmail.com

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
@codecov-io
Copy link

codecov-io commented May 7, 2019

Codecov Report

Merging #736 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #736      +/-   ##
==========================================
- Coverage   85.08%   85.03%   -0.06%     
==========================================
  Files          64       64              
  Lines        4124     4129       +5     
==========================================
+ Hits         3509     3511       +2     
- Misses        417      420       +3     
  Partials      198      198
Impacted Files Coverage Δ
sdk/go/sdk.go 96.15% <ø> (ø) ⬆️
sdk/go/message.go 35.48% <0%> (-3.12%) ⬇️
things/service.go 92.02% <0%> (+1.22%) ⬆️

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 700cfdf...9892308. Read the comment docs.

drasko
drasko previously approved these changes May 7, 2019
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

sdk/go/sdk.go Outdated
@@ -168,7 +166,7 @@ type SDK interface {
SendMessage(chanID, msg, token string) error

// ReadMessages read messages of specified channel.
ReadMessages(chanID, token string) ([]mainflux.Message, error)
ReadMessages(chanID, token string) (messagesPageRes, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

You cannot use a private type for an interface return value. Please replace this with some public type and use messagesPageRes only internally in SDK in order to deserialize HTTP response.

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Copy link
Contributor

@anovakovic01 anovakovic01 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

@anovakovic01 anovakovic01 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

@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 9f1151b into absmach:master May 7, 2019
@manuio manuio deleted the sdk-reader branch May 7, 2019 13:50
davide83 pushed a commit to davide83/mainflux that referenced this pull request May 13, 2019
* NOISSUE - Add readers pagination in SDK

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix reviews

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
rugwirobaker pushed a commit to rugwirobaker/mainflux that referenced this pull request Jun 26, 2019
* NOISSUE - Add readers pagination in SDK

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix reviews

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
manuio added a commit that referenced this pull request Oct 12, 2020
* NOISSUE - Add readers pagination in SDK

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix reviews

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.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.

4 participants