Skip to content

Conversation

Aschen
Copy link
Contributor

@Aschen Aschen commented Mar 31, 2020

7.1.2 (2020-03-31)

Bug fixes

Enhancements


Aschen and others added 6 commits March 6, 2020 12:07
## What does this PR do?

Adds information about scroll usage
* expose search results

* Expose search results
## What does this PR do?

When we have multiple choose for a route, we choose the shortest or the GET route.  
With `document:create` we have the choice between those 2 routes:
```
{ verb: 'GET', url: '/:index/:collection/' },
{ verb: 'POST', url: '/:index/:collection/_search' }
```

The problem is that after even if we want to change the verb by using `options.verb`, the URL is not the good one and `GET /:index/:collection` correspond to the `collection:create` method.

So this PR is just a dirty fix to always use the POST route with `document:search`.  

When we are going to fully support the GET verb with query for `document:search`, maybe we can get ride of this.

See this failing job on Kuzzle: https://travis-ci.org/github/kuzzleio/kuzzle/jobs/667658863
@Aschen Aschen added the release label Mar 31, 2020
@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #499 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #499   +/-   ##
=======================================
  Coverage   95.79%   95.80%           
=======================================
  Files          32       32           
  Lines        1308     1311    +3     
=======================================
+ Hits         1253     1256    +3     
  Misses         55       55           
Impacted Files Coverage Δ
src/controllers/document.js 95.23% <100.00%> (ø)
src/protocols/http.js 91.08% <100.00%> (+0.17%) ⬆️

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 696d418...c7d1041. Read the comment docs.

@Aschen Aschen merged commit 8b7ee47 into master Mar 31, 2020
@Aschen Aschen deleted the 7.1.2-proposal branch March 31, 2020 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant