-
Notifications
You must be signed in to change notification settings - Fork 928
Add ignoreUndefinedProperties #3077
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
Conversation
Binary Size ReportAffected SDKs
Test Logs |
3228017
to
e2af49c
Compare
@@ -461,7 +461,7 @@ export function validatePositiveNumber( | |||
if (n <= 0) { | |||
throw new FirestoreError( | |||
Code.INVALID_ARGUMENT, | |||
`Function "${functionName}()" requires its ${ordinal( | |||
`Function ${functionName}() requires its ${ordinal( | |||
position |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this to align this error message with the rest of the validation messages.
@@ -310,9 +325,3 @@ export function withTestCollectionSettings( | |||
} | |||
); | |||
} | |||
|
|||
function wipeDb(db: firestore.FirebaseFirestore): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this as I discovered this randomly. The call just gives the wrong illusion and we may actually not need to do this anymore since we are testing against the Emulator.
packages/firebase/index.d.ts
Outdated
/** | ||
* Whether to skip nested properties that are set to `undefined` during | ||
* object serialization. If set to `true`, these properties will be skipped | ||
* and are not be written to Firestore. If the setting is set `false` or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/the setting is set/it is set to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
packages/firebase/index.d.ts
Outdated
|
||
/** | ||
* Whether to skip nested properties that are set to `undefined` during | ||
* object serialization. If set to `true`, these properties will be skipped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very much a nit, but we prefer present over future when possible. Here it cold be "properties are skipped . . . . the SDK throws . . ."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. Thanks for the review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG with a nit that you may ignore if you want. Thanks!
Port of googleapis/nodejs-firestore#1062