Skip to content

Split mutate processor into one processor per function#14938

Merged
javanna merged 1 commit intoelastic:feature/ingestfrom
javanna:enhancement/split_mutate_processor
Nov 24, 2015
Merged

Split mutate processor into one processor per function#14938
javanna merged 1 commit intoelastic:feature/ingestfrom
javanna:enhancement/split_mutate_processor

Conversation

@javanna
Copy link
Copy Markdown
Contributor

@javanna javanna commented Nov 23, 2015

Split mutate processor into one processor per function

@javanna javanna added >enhancement review :Distributed/Ingest Node Execution or management of Ingest Pipelines labels Nov 23, 2015
@javanna javanna force-pushed the enhancement/split_mutate_processor branch from 9ceec5a to 93a30e2 Compare November 23, 2015 13:57
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we maybe make ConfigurationUtils more flexible to enable its use here? I understand that the error message may want to be customized in this case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not sure, I think it is ok to use ConfigurationUtils for the top level element and then have specific code in each factory, otherwise we need to add too much generic code to ConfigurationUtils to handle all the cases. We can always reconsider in the future though.

@talevy
Copy link
Copy Markdown
Contributor

talevy commented Nov 24, 2015

just left a few questions, tests look great!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just a note when back porting this piece of code needs to be changed. I think we should use java8 where possible and in this case back porting is trivial and the isolated. Only in cases where the back port change wouldn't isolated and difficult we should hold back on java8 usage.

@martijnvg
Copy link
Copy Markdown
Member

This is great! Left some minor comments. I do wonder if we group some processors in a single package? Right now there are a lot of packages with a single class, which kind of defeats the purpose of packages imo. Regardless LGTM.

@javanna javanna force-pushed the enhancement/split_mutate_processor branch from 93a30e2 to 6e87ceb Compare November 24, 2015 11:00
@javanna
Copy link
Copy Markdown
Contributor Author

javanna commented Nov 24, 2015

I rebased and addressed comments, also added missing javadocs to each of the new processor. I agree regarding packages, I followed the "one processor per package" convention that we seem to have adopted, but we do end up with lots of packages, I guess we can discuss this as a followup.

@martijnvg
Copy link
Copy Markdown
Member

LGTM

@javanna javanna force-pushed the enhancement/split_mutate_processor branch from 6e87ceb to 246c314 Compare November 24, 2015 11:58
@javanna javanna force-pushed the enhancement/split_mutate_processor branch from 246c314 to 8f1f5d4 Compare November 24, 2015 13:32
@javanna javanna merged commit 8f1f5d4 into elastic:feature/ingest Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Ingest Node Execution or management of Ingest Pipelines >enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants