Skip to content

Conversation

@robertlyson
Copy link
Contributor

PR for #1362 issue.

For IndexSettings property on IRrestoreDescriptor I reused IUpdateSettingsRequest, but I'm not sure if this name fits in this context. Way how we can combine RestoreDescriptor with UpdateSettingsDescriptor is really nice.

Moreover, I've extracted all setting names to separate class. Avoiding googling for each plain index setting is really convenient.

Any thoughts? Let me know.
Thanks.

Copy link
Member

Choose a reason for hiding this comment

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

Love moving this out of the attributes 👍 suggestion on different name UpdatableSettings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Mpdreamz much more better name 👍 . Maybe we should split this class into three? UpdatableSettings, UnmodifiableSettings and UnremovableSettings? https://github.com/elastic/elasticsearch/blob/master/src/main/java/org/elasticsearch/snapshots/RestoreService.java#L92-105

Copy link
Member

Choose a reason for hiding this comment

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

I don't see any settings in SettingsNames that are not Updatable though, maybe I need another coffee 😄

Where would we use Unmodifiable and Unremovable ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's true, looks like I need second coffee :)
I'll change name to UpdatableSettings later on.

@Mpdreamz
Copy link
Member

Mpdreamz commented May 5, 2015

PR looks awesome as usual @robertlyson 👍 left a small comment.

…gNames has been renamed to UpdatableSettings
@robertlyson
Copy link
Contributor Author

Thanks for review. I've pushed change.

Mpdreamz added a commit that referenced this pull request May 5, 2015
Support for supplying index settings on restore #1362
@Mpdreamz Mpdreamz merged commit 13852f9 into elastic:develop May 5, 2015
@Mpdreamz
Copy link
Member

Mpdreamz commented May 5, 2015

ty @robertlyson !

@robertlyson robertlyson deleted the RestoreIndexSettings branch May 6, 2015 12:36
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