Skip to content

Conversation

@schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Nov 10, 2018

This adds support for the new NUMERIC_ADD Field Transform.

There is a lot of error message cleanup in this PR to make the error message for specifying an invalid NumericAdd operand make sense.

DO NOT MERGE until backend support is available (at which point the system test should pass).

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 10, 2018
* that tells the server to add the given value to the field's current
* value.
*
* If the either current field value or the operand uses floating point

This comment was marked as spam.

This comment was marked as spam.

});
});

it('supports numericAdd()', () => {

This comment was marked as spam.

This comment was marked as spam.

@schmidt-sebastian schmidt-sebastian changed the title Adding Numeric Add DO NOT MERGE Adding Numeric Add Nov 12, 2018
@schmidt-sebastian
Copy link
Contributor Author

FYI: Pushed commit to rename numericAdd() to increment().

@schmidt-sebastian
Copy link
Contributor Author

PR updated to use increment() name in Proto.

@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Feb 7, 2019
@JustinBeckwith JustinBeckwith added needs work This is a pull request that needs a little love. status: blocked Resolving the issue is dependent on other work. labels Feb 9, 2019
@yoshi-automation yoshi-automation removed the 🚨 This issue needs some love. label Feb 14, 2019
@schmidt-sebastian schmidt-sebastian changed the title DO NOT MERGE Adding Numeric Add Adding Numeric Add Mar 6, 2019
@codecov
Copy link

codecov bot commented Mar 6, 2019

Codecov Report

Merging #444 into master will increase coverage by 0.2%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #444     +/-   ##
=========================================
+ Coverage   95.77%   95.98%   +0.2%     
=========================================
  Files          24       24             
  Lines        1943     1943             
  Branches      168      169      +1     
=========================================
+ Hits         1861     1865      +4     
+ Misses         59       57      -2     
+ Partials       23       21      -2
Impacted Files Coverage Δ
dev/src/validate.ts 94% <100%> (+4%) ⬆️
dev/src/index.ts 98.17% <100%> (ø) ⬆️
dev/src/reference.ts 99.68% <100%> (ø) ⬆️
dev/src/transaction.ts 98.33% <100%> (ø) ⬆️
dev/src/field-value.ts 95% <100%> (+1.25%) ⬆️
dev/src/v1/firestore_client.js 76.08% <0%> (ø) ⬆️
dev/src/watch.ts 99.04% <0%> (+0.85%) ⬆️

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 04eb91c...88bb4a0. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 6, 2019

Codecov Report

Merging #444 into master will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #444      +/-   ##
=========================================
+ Coverage   95.77%   95.9%   +0.12%     
=========================================
  Files          24      24              
  Lines        1943    1955      +12     
  Branches      168     169       +1     
=========================================
+ Hits         1861    1875      +14     
  Misses         59      59              
+ Partials       23      21       -2
Impacted Files Coverage Δ
dev/src/validate.ts 94% <100%> (+4%) ⬆️
dev/src/index.ts 98.17% <100%> (ø) ⬆️
dev/src/reference.ts 99.68% <100%> (ø) ⬆️
dev/src/transaction.ts 98.33% <100%> (ø) ⬆️
dev/src/field-value.ts 95% <100%> (+1.25%) ⬆️

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 1b6c7b1...bbaab30. Read the comment docs.

@schmidt-sebastian schmidt-sebastian removed status: blocked Resolving the issue is dependent on other work. needs work This is a pull request that needs a little love. labels Mar 6, 2019
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Mar 6, 2019
@schmidt-sebastian schmidt-sebastian added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2019
@kokoro-team kokoro-team removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Mar 6, 2019
@schmidt-sebastian schmidt-sebastian merged commit 9f4c32c into master Mar 7, 2019
@schmidt-sebastian schmidt-sebastian changed the title Adding Numeric Add [feature] Adding Numeric Add Mar 7, 2019
@schmidt-sebastian schmidt-sebastian changed the title [feature] Adding Numeric Add [feature] Adding FieldValue.increment() Mar 7, 2019
schmidt-sebastian added a commit that referenced this pull request Mar 11, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-numericadd branch March 11, 2019 03:08
@yoshi-automation yoshi-automation removed the 🚨 This issue needs some love. label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants