Skip to content

Conversation

Aschen
Copy link
Contributor

@Aschen Aschen commented Apr 19, 2019

What does this PR do?

Returns a new instance of SearchResult instead of mutating the existing object.

How should this be manually tested?

  • Step 1 : Get a search result
  • Step 2 : Use the next method to get the next search result
  • Step 3 : The 2 objects are not the same

@Aschen Aschen self-assigned this Apr 19, 2019
@codecov-io
Copy link

codecov-io commented Apr 19, 2019

Codecov Report

Merging #387 into 6-dev will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##            6-dev     #387      +/-   ##
==========================================
- Coverage   96.68%   96.65%   -0.03%     
==========================================
  Files          30       30              
  Lines        1447     1435      -12     
==========================================
- Hits         1399     1387      -12     
  Misses         48       48
Impacted Files Coverage Δ
src/controllers/searchResult/base.js 92.85% <100%> (-1.59%) ⬇️
src/controllers/searchResult/profile.js 100% <100%> (ø) ⬆️
src/controllers/searchResult/user.js 100% <100%> (ø) ⬆️
src/controllers/searchResult/role.js 100% <100%> (ø) ⬆️

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 717ce80...035b44d. Read the comment docs.

Aschen added 2 commits April 22, 2019 11:02
…eio/sdk-javascript into return-new-search-result-with-next
@Aschen Aschen merged commit 9aba3cc into 6-dev Apr 24, 2019
This was referenced Apr 29, 2019
Aschen pushed a commit that referenced this pull request Apr 29, 2019
# [6.1.1](https://github.com/kuzzleio/sdk-javascript/releases/tag/6.1.1) (2019-04-29)


#### Bug fixes

- [ [#384](#384) ] [fix] search API: "sort" and "search_after" must be in the requests body   ([scottinet](https://github.com/scottinet))

#### Enhancements

- [ [#388](#388) ] Use BaseController class for controllers   ([Aschen](https://github.com/Aschen))
- [ [#385](#385) ] Add Realtime.createRestrictedUser method   ([Aschen](https://github.com/Aschen))

#### Others

- [ [#387](#387) ] SearchResult.next returns a new instance   ([Aschen](https://github.com/Aschen))
---
@Aschen Aschen mentioned this pull request Jun 14, 2019
Aschen added a commit that referenced this pull request Jun 14, 2019
Release 6.1.2

Bug fixes

    [ #398 ] Fix bulk return (Aschen)
    [ #394 ] Add default values for from/size to document:search (Aschen)
    [ #384 ] Fix search API: "sort" and "search_after" must be in the requests body (scottinet)

Enhancements

    [ #390 ] Add authenticated property on Kuzzle object (Aschen)
    [ #395 ] Proxify kuzzle to avoid mistyping error (thomasarbona)
    [ #389 ] Remove usage of _meta (Aschen)
    [ #391 ] Add isConnected (Aschen)
    [ #388 ] Use BaseController class for controllers (Aschen)
    [ #385 ] Add Security.createRestrictedUser method (Aschen)

Others

    [ #400 ] Fix large document search using scroll (stafyniaksacha)
    [ #387 ] SearchResult.next returns a new instance (Aschen)
@Aschen Aschen deleted the return-new-search-result-with-next branch September 20, 2019 12:57
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