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

Sort order parameter for data messages request #2981

Merged
merged 1 commit into from
May 20, 2020

Conversation

xshiart
Copy link
Contributor

@xshiart xshiart commented May 17, 2020

The new parameter for /data/messages endpoint to control the sorting order of returned results.
This change improves REST API usage in case of iterating over messages.

@codecov
Copy link

codecov bot commented May 17, 2020

Codecov Report

Merging #2981 into develop will increase coverage by 0.14%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2981      +/-   ##
=============================================
+ Coverage      56.90%   57.04%   +0.14%     
- Complexity      2596     2602       +6     
=============================================
  Files           1062     1062              
  Lines          22978    22978              
  Branches        2043     2043              
=============================================
+ Hits           13075    13108      +33     
+ Misses          8942     8909      -33     
  Partials         961      961              
Impacted Files Coverage Δ Complexity Δ
...lugin/authentication/AdminAuthenticationLogic.java 69.23% <0.00%> (-7.70%) 0.00% <0.00%> (ø%)
...obDeviceManagementOperationManagerServiceImpl.java 73.17% <0.00%> (-6.10%) 13.00% <0.00%> (-1.00%)
.../jbatch/persistence/JPAPersistenceManagerImpl.java 31.60% <0.00%> (+1.03%) 30.00% <0.00%> (ø%)
...apua/job/engine/jbatch/JobEngineServiceJbatch.java 51.85% <0.00%> (+1.85%) 9.00% <0.00%> (+1.00%)
...a/org/eclipse/kapua/transport/mqtt/MqttClient.java 62.19% <0.00%> (+6.09%) 14.00% <0.00%> (ø%)
.../DeviceManagementNotificationMessageProcessor.java 71.42% <0.00%> (+7.14%) 0.00% <0.00%> (ø%)
...ransport/mqtt/pooling/PooledMqttClientFactory.java 71.42% <0.00%> (+9.52%) 7.00% <0.00%> (ø%)
...rtz/persistence/KapuaQuartzConnectionProvider.java 100.00% <0.00%> (+12.50%) 5.00% <0.00%> (+1.00%)
.../transport/mqtt/exception/MqttClientException.java 33.33% <0.00%> (+33.33%) 1.00% <0.00%> (+1.00%)
...ob/engine/jbatch/exception/JobEngineException.java 66.66% <0.00%> (+33.33%) 2.00% <0.00%> (+1.00%)
... and 3 more

Copy link

@lorthirk lorthirk left a comment

Choose a reason for hiding this comment

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

Thanks for the submission @xshiart!

I would kindly ask for a few changes, and also it would be great if you could update the OpenAPI specification under rest-api/resources/src/main/resources/openapi.

I'll gladly merge this as soon as it's ready!

@xshiart xshiart requested a review from lorthirk May 19, 2020 11:15
@Coduz Coduz added the Enhancement This PR/Issue improves an part of Kapua label May 19, 2020
Copy link

@lorthirk lorthirk left a comment

Choose a reason for hiding this comment

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

Just one last change! Sorry for not catching it earlier!

Signed-off-by: Artem Shilin <xshiart@protonmail.com>
Copy link

@lorthirk lorthirk left a comment

Choose a reason for hiding this comment

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

Thanks for the submission!

@Coduz
Copy link
Contributor

Coduz commented May 20, 2020

All looks good so I'll proceed to merge this.
This might be something that we will make available into 1.2.x Kapua

@Coduz Coduz merged commit 9018f14 into eclipse-kapua:develop May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This PR/Issue improves an part of Kapua
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants