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

Add 'ignore_failure' option to ingest processors #2003

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

deguif
Copy link
Collaborator

@deguif deguif commented Oct 25, 2021

No description provided.

@deguif deguif force-pushed the ingest-processor-ignore-failure branch 3 times, most recently from 55790cc to 80c19dd Compare October 25, 2021 08:21
Copy link
Owner

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

Change LGTM. One thing I wonder is why you updated so many tests? Is it required? Did the default change?

$processor = new SplitProcessor('joined_array_field', '-');
$processor->setIgnoreMissing(true);
$processor = (new SplitProcessor('joined_array_field', '-'))
->setIgnoreFailure(true)
Copy link
Owner

Choose a reason for hiding this comment

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

Assuming this test was not updated, I assume it would just have worked as before as the default did not change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

testSplitWithNonDefaultOptions I interpreted this test as testing options that are not put by default, so I added the new option here to test it was rightly set.

Copy link
Owner

Choose a reason for hiding this comment

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

Got it, makes sense!

@deguif deguif force-pushed the ingest-processor-ignore-failure branch from 80c19dd to 31474ec Compare October 25, 2021 13:17
Copy link
Owner

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

LGTM

$processor = new SplitProcessor('joined_array_field', '-');
$processor->setIgnoreMissing(true);
$processor = (new SplitProcessor('joined_array_field', '-'))
->setIgnoreFailure(true)
Copy link
Owner

Choose a reason for hiding this comment

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

Got it, makes sense!

@ruflin ruflin merged commit 732ccf3 into ruflin:master Oct 25, 2021
@deguif deguif self-assigned this Dec 7, 2021
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.

2 participants