Skip to content

Conversation

@HJK181
Copy link
Contributor

@HJK181 HJK181 commented Jun 17, 2020

Adds support for ingest pipelines when using the RestClient.

If you accept the PR, it would be cool if you can make a release out of it as we need it in our project :)

@HJK181
Copy link
Contributor Author

HJK181 commented Jun 18, 2020

Hi @dadoonet, could you please give some estimation or feedback to the PR if it makes sense for you and your are going to review it or if I should use my fork project instead? Thx.

@dadoonet
Copy link
Owner

@HJK181 Definitely something I'd look to review.

@dadoonet dadoonet self-assigned this Jun 18, 2020
@dadoonet dadoonet added the new label Jun 18, 2020
@dadoonet dadoonet added this to the 7.x milestone Jun 18, 2020
@dadoonet
Copy link
Owner

Could you create another PR or edit this one and remove the testcontainer change?
I'd really like to have separate PRs.

BTW if the change of the mapping/templates (removal of _doc) is needed to compile the project before adding any of your changes, it'd be great to have that as a fix within another PR.

Could you do that?

Thanks a ton!

@dadoonet dadoonet self-requested a review June 18, 2020 14:24
@HJK181
Copy link
Contributor Author

HJK181 commented Jun 18, 2020

I'll refactor and create two separate PRs for testcontainers and pipeline support.

The change on the mappings template was necessary as Elasticsearch removed mapping types: removal-of-types.html. I don't understand why the tests did not fail for you as you already used Elastic 7.7.1 with the fabric8 docker image. I got exceptions with testcontainers that _doc is not allowed.

@HJK181
Copy link
Contributor Author

HJK181 commented Jun 18, 2020

If I remove the testcontainer changes from this branch, the test will fail. If it were not a fork I would create another PR for the 1673bae into the test-containers branch of PR 121. However, this is not possible.

So do you prefer me to delete the commit from this branch and ignore the failing tests, or should I wait until PR 121 is merged into master and than refactor this one?

Copy link
Owner

@dadoonet dadoonet left a comment

Choose a reason for hiding this comment

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

In general this project uses spaces instead of tabs. Could you fix it?

I made a first pass. Could you remove the change for TC and just keep here the pipeline change? Also format using spaces and not tabs so much less changes will be part of your PR.

Thanks a lot!


By default, Beyonder will not overwrite a pipeline if it already exists.
This can be overridden by setting `force` to `true` in the expanded factory method
`ElasticsearchBeyonder.start()`.
Copy link
Owner

Choose a reason for hiding this comment

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

This line is misplaced as it is still related to index templates. Could you move it back to line 203?

<commons.io.version>2.7</commons.io.version>
<jackson.version>2.11.0</jackson.version>

<!-- For integration tests using Docker or external cluster -->
Copy link
Owner

Choose a reason for hiding this comment

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

Please revert this as this is part of #121

protected static Client transportClient;

@BeforeClass
public static void initilizeElasticSearch() throws IOException, InterruptedException {
Copy link
Owner

Choose a reason for hiding this comment

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

Please revert all this as this will be reviewed in #121

}

@Test
public void testPipeline() throws Exception {
Copy link
Owner

Choose a reason for hiding this comment

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

I think that only this change is needed.

@dadoonet
Copy link
Owner

Hey @HJK181

Do you still want to get this change in?
I'd love to support it. Any chance you can move it forward?

@dadoonet dadoonet changed the title Feature/ingest pipeline Add support for ingest pipelines Jul 17, 2020
@HJK181
Copy link
Contributor Author

HJK181 commented Jul 17, 2020

HI @dadoonet ,

sry didn't find the time lately to work on your requested changes. It's still on my list though.

@dadoonet
Copy link
Owner

Great to hear. No worries 😉

@dadoonet dadoonet removed the new label Oct 20, 2020
@dadoonet dadoonet removed this from the 7.x milestone Oct 20, 2020
@dadoonet
Copy link
Owner

Closing in favor of #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants