Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

[PDE-724] (BREAKING) Make removeMissingValuesFrom a first class field from request #140

Merged
merged 2 commits into from
Mar 4, 2019

Conversation

stevelikesmusic
Copy link
Contributor

Description

This probably could have been done in the last PR that addressed this field. But now we're making it a first class field from the client, and yanking omitEmptyParams.

Jira

https://zapierorg.atlassian.net/browse/PDE-724

removeMissingValuesFrom: {
params: !!req.omitEmptyParams,
params: false,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should use _.defaultsDeep because we have a nested object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had considered that. I thought we agreed on this approach, but can easily change if you think it's better with _.defaultsDeep.

Copy link
Member

@eliangcs eliangcs Feb 26, 2019

Choose a reason for hiding this comment

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

Ah, totally missed it. We can keep using _.defaults here, but maybe we can drop a comment here saying something like "if any one of these defaults to true, we'll need to use _.defaultsDeep".

@eliangcs eliangcs changed the title [PDE-724] Make removeMissingValuesFrom a first class field from request [PDE-724] (BREAKING) Make removeMissingValuesFrom a first class field from request Feb 25, 2019
Copy link
Contributor

@xavdid xavdid left a comment

Choose a reason for hiding this comment

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

cool, let's get this in and cut the 8.0 release!

@stevelikesmusic stevelikesmusic merged commit 7d26062 into master Mar 4, 2019
@stevelikesmusic stevelikesmusic deleted the feature/add-missingValues-field branch March 4, 2019 17:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants