Skip to content

Conversation

@fred84
Copy link
Contributor

@fred84 fred84 commented Jun 23, 2017

Aliases, mapping, customs and settings from templates should be ignored when shrinking index #25035

@fred84 fred84 changed the title Shrink api should ignore templates (#25035) Shrink api should ignore templates Jun 23, 2017
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@jasontedor
Copy link
Member

I appreciate the work that you did here @fred84 but I think that this change is way too big to solely fix #25035. It looks instead like there's a big refactoring included here too. I would prefer that the two be separated, can we focus on #25035 only first?

@fred84
Copy link
Contributor Author

fred84 commented Jun 23, 2017

@jasontedor I think it is still reasonable to extract anonymous class to inner class without refactoring so I will be able to keep unit test for IndexCreationTask. Do you agree?

@jasontedor
Copy link
Member

@fred84 A refactoring to make this unit testable is of course very much welcome but it being so large and mixing it with a bug fix is what I'm concerned with. Because the bug fix here is not tricky, I would lean towards fixing the bug first, and then refactoring. If you want to do it the other way, I'm fine with that, but let's do it in manageable bite-size chunks. 😄

@fred84
Copy link
Contributor Author

fred84 commented Jun 23, 2017

@jasontedor Got it :-) I will make new pull request with bug fix only and keep this one for future discussion.

@fred84
Copy link
Contributor Author

fred84 commented Jul 7, 2017

@jasontedor Fix only PR: #25380

@fred84
Copy link
Contributor Author

fred84 commented Jul 13, 2017

@jasontedor As fix #25380 is merged I'll create another PR with anonymous class converted to inner and with unit test.

@jasontedor
Copy link
Member

Thanks; since you're going to open a new pull request I will close this one.

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.

3 participants