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

Fix line length for IndexLifecycleActionIT #36586

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

@@ -67,7 +67,8 @@ public void testIndexLifecycleActionsWith11Shards1Backup() throws Exception {
final String node1 = getLocalNodeId(server_1);

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