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

Collection.createDocument: rename the updateIfExist option #182

Merged
merged 3 commits into from
Mar 6, 2017

Conversation

scottinet
Copy link
Contributor

Description

The Collection.createDocument method accepts a updateIfExist option.
Since this option really replaces the document if it already exists, it is dangerously confusing.

This PR change this option name to ifExist and its accepted value to one of these 2 values: error (default) or replace
If an invalid value is provided, the method throws.

Solved issue

#181

@codecov-io
Copy link

codecov-io commented Feb 14, 2017

Codecov Report

Merging #182 into 4.x will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              4.x     #182      +/-   ##
==========================================
+ Coverage   99.39%   99.39%   +<.01%     
==========================================
  Files          16       16              
  Lines        1645     1648       +3     
  Branches      439      440       +1     
==========================================
+ Hits         1635     1638       +3     
  Misses         10       10
Impacted Files Coverage Δ
src/Collection.js 97.41% <100%> (+0.03%)

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 f47098e...b4595a3. Read the comment docs.

@stafyniaksacha stafyniaksacha changed the base branch from 3.x to 4.x February 21, 2017 09:57
package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "kuzzle-sdk",
"version": "3.2.0",
"version": "3.3.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Bad bump, should not be on this branch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@scottinet scottinet merged commit d544133 into 4.x Mar 6, 2017
@scottinet scottinet deleted the rename-updateifexist-option branch March 6, 2017 13:28
This was referenced Apr 10, 2017
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.

6 participants