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-525 - Add pagination response to the readers #729

Merged
merged 2 commits into from
Apr 24, 2019

Conversation

anovakovic01
Copy link
Contributor

What does this do?

Adds pagination response for every reader.

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

Resolves #525.

List any changes that modify/break current functionality

Readers response has now pagination metadata.

Have you included tests for your changes?

Yes, I've updated existing tests.

Did you document any new/modified functionality?

I've updated swagger docs.

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
@codecov-io
Copy link

codecov-io commented Apr 23, 2019

Codecov Report

Merging #729 into master will decrease coverage by 0.3%.
The diff coverage is 75.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #729      +/-   ##
==========================================
- Coverage   85.32%   85.01%   -0.31%     
==========================================
  Files          64       64              
  Lines        3993     4058      +65     
==========================================
+ Hits         3407     3450      +43     
- Misses        399      411      +12     
- Partials      187      197      +10
Impacted Files Coverage Δ
readers/cassandra/init.go 100% <ø> (ø) ⬆️
readers/api/endpoint.go 100% <100%> (ø) ⬆️
readers/api/responses.go 100% <100%> (ø) ⬆️
readers/mongodb/messages.go 86.44% <53.84%> (-5.56%) ⬇️
readers/influxdb/messages.go 79.27% <65.78%> (-6.62%) ⬇️
readers/cassandra/messages.go 87.87% <86.11%> (-3.79%) ⬇️
things/service.go 90.25% <0%> (-1.3%) ⬇️

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 04281f2...b92d93e. Read the comment docs.

readers/influxdb/messages.go Outdated Show resolved Hide resolved
nmarcetic
nmarcetic previously approved these changes Apr 23, 2019
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.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 aba7d90 into absmach:master Apr 24, 2019
davide83 pushed a commit to davide83/mainflux that referenced this pull request May 13, 2019
* Add pagination response to the readers

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>

* Remove println from influx reader

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
rugwirobaker pushed a commit to rugwirobaker/mainflux that referenced this pull request Jun 26, 2019
* Add pagination response to the readers

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>

* Remove println from influx reader

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
manuio pushed a commit that referenced this pull request Oct 12, 2020
* Add pagination response to the readers

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>

* Remove println from influx reader

Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.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.

Add pagination in the API responses of message readers
5 participants