Skip to content

Conversation

@scottinet
Copy link
Contributor

Description

The memory storage sort method is configured as a getter, meaning that its options are put at the root level of the sent json query.
But, as stated by the API documentation, these options are expected in the "body" part of the request (because of the "store" option).

So, in its current state, options set for this command using the SDK are ignored by Kuzzle.

This PR puts the options at their expected location, making Kuzzle correctly process the sort command.

@codecov-io
Copy link

codecov-io commented Nov 16, 2018

Codecov Report

Merging #337 into 6-dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            6-dev     #337   +/-   ##
=======================================
  Coverage   97.28%   97.28%           
=======================================
  Files          28       28           
  Lines        1401     1401           
=======================================
  Hits         1363     1363           
  Misses         38       38
Impacted Files Coverage Δ
src/controllers/memoryStorage.js 96.29% <ø> (ø) ⬆️

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 f2f285b...9bb5429. Read the comment docs.

@Njuelle Njuelle merged commit fd74a41 into 6-dev Nov 16, 2018
@Njuelle Njuelle deleted the fix-ms-sort branch November 16, 2018 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants