Skip to content

Conversation

@danielmitterdorfer
Copy link
Member

Relates #34884

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Contributor

@pgomulka pgomulka left a comment

Choose a reason for hiding this comment

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

looks good, but one comment


logger.info("Creating index [test]");
CreateIndexResponse createIndexResponse = client().admin().indices().create(createIndexRequest("test").settings(settings)).actionGet();
CreateIndexResponse createIndexResponse = client().admin().indices().create(
Copy link
Contributor

@pgomulka pgomulka Dec 14, 2018

Choose a reason for hiding this comment

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

I noticed that you break lines on '(' . Was that an intention? Reminds me of my early projects in Lisp :) I am worried that most of other refactoring would be breaking chained methods on '.'
what do you think of breaking on '.'
for instance

client().admin().indices()
.create(reateIndexRequest("test").settings(settings)))
.actionGet();

or even one '.' per each line - although that might have been excessive

Copy link
Member Author

@danielmitterdorfer danielmitterdorfer Dec 14, 2018

Choose a reason for hiding this comment

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

The intention was to separate the request creation from the actual call.

Copy link
Contributor

@pgomulka pgomulka left a comment

Choose a reason for hiding this comment

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

LGTM

@danielmitterdorfer danielmitterdorfer merged commit 42f0949 into elastic:master Dec 14, 2018
@danielmitterdorfer
Copy link
Member Author

Thank you for the review. :)

@danielmitterdorfer danielmitterdorfer deleted the line-length-indexlifecycle branch December 14, 2018 09:00
danielmitterdorfer added a commit that referenced this pull request Dec 14, 2018
@danielmitterdorfer
Copy link
Member Author

Backported to 6.x in 7c82b15

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants