Skip to content

Conversation

@Aschen
Copy link
Contributor

@Aschen Aschen commented Jul 12, 2019

What does this PR do?

Add bulk:write and bulk:mWrite support.

I'm not sure if it's an enhancement or a new feature (it was a new feature in Kuzzle)

Copy link
Contributor

@scottinet scottinet left a comment

Choose a reason for hiding this comment

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

mainly typos


/**
* Create or replace multiple documents directly into the storage engine.
* https://docs.kuzzle.io/core/1/api/controllers/bulk/m-write/
Copy link
Contributor

Choose a reason for hiding this comment

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

(nitpicking) use @link (see above)

Co-Authored-By: Sébastien Cottinet <scottinet@protonmail.com>
@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #419 into 6-dev will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           6-dev     #419      +/-   ##
=========================================
+ Coverage   96.3%   96.31%   +<.01%     
=========================================
  Files         32       32              
  Lines       1517     1521       +4     
=========================================
+ Hits        1461     1465       +4     
  Misses        56       56
Impacted Files Coverage Δ
src/controllers/bulk.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 5ffa899...3c33ced. Read the comment docs.

@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##           6-dev     #419      +/-   ##
=========================================
+ Coverage   96.3%   96.33%   +0.02%     
=========================================
  Files         32       32              
  Lines       1517     1527      +10     
=========================================
+ Hits        1461     1471      +10     
  Misses        56       56
Impacted Files Coverage Δ
src/controllers/bulk.js 100% <100%> (ø) ⬆️
src/protocols/http.js 92.94% <0%> (+0.53%) ⬆️

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 5ffa899...bdf1d4e. Read the comment docs.

| \_id | <pre>string</pre> | ID of the newly created document |
| \_version | <pre>number</pre> | Version of the document in the persistent data storage |
| \_source | <pre>object</pre> | Created document
| `\_id` | <pre>string</pre> | ID of the newly created document |
Copy link
Contributor

@scottinet scottinet Jul 16, 2019

Choose a reason for hiding this comment

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

Shouldn't you get rid of those backslashes now that these names are between backquotes?

@scottinet scottinet merged commit 95f6b4f into 6-dev Jul 17, 2019
@scottinet scottinet deleted the add-new-bulk-methods branch July 17, 2019 15:16
@scottinet scottinet mentioned this pull request Jul 31, 2019
scottinet added a commit that referenced this pull request Jul 31, 2019
# [6.2.0](https://github.com/kuzzleio/sdk-javascript/releases/tag/6.2.0) (2019-07-31)


#### Bug fixes

- [ [#428](#428) ] Properly handle boolean flags in HTTP querystrings   ([scottinet](https://github.com/scottinet))
- [ [#427](#427) ] Solve promise+event+memory leaks when the network fails   ([scottinet](https://github.com/scottinet))
- [ [#424](#424) ] Prevent pending request leak when disconnect the SDK   ([Aschen](https://github.com/Aschen))
- [ [#422](#422) ] Fix bug when decoding JWT in browser   ([Aschen](https://github.com/Aschen))
- [ [#420](#420) ] Fix http protocol unresolved promise on connection error   ([Aschen](https://github.com/Aschen))

#### New features

- [ [#419](#419) ] Add bulk:write and bulk:mWrite   ([Aschen](https://github.com/Aschen))

#### Enhancements

- [ [#421](#421) ] Get api routes from server:publicApi   ([Aschen](https://github.com/Aschen))
- [ [#423](#423) ] Emit queryError event on malformed request   ([Aschen](https://github.com/Aschen))
- [ [#417](#417) ] Security controller documentation   ([benoitvidis](https://github.com/benoitvidis))
---
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.

6 participants