Skip to content

Conversation

@russcam
Copy link
Contributor

@russcam russcam commented Apr 11, 2019

This PR removes the generated obsolete parameters through code generation.

Kept the [Obsolete] Mappings for the moment.

Once elastic/elasticsearch#41098 is merged, this can be updated to pull in new
REST API specs and revert the [Obsolete] param removal implementation.

russcam added 6 commits April 10, 2019 18:36
This commit removes the generated obsolete parameters through code generation.
Once elastic/elasticsearch/#41098 is merged, this can be updated to pull in new
REST API specs and revert the `[Obsolete]` param removal impl
…to 7x/obsolete

# Conflicts:
#	src/Nest/Search/Search/SearchResponse.cs
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

+22 −432 love that ratio 😄

I don't think we should continue on obsolete in the codegeneration, instead we need to introduce *.patch.json files or code configuration to skip parent.

Will look into amending this today

public override IEnumerable<string> SkipQueryStringParams { get; } = new[]
{
"parent", //can be removed once https://github.com/elastic/elasticsearch/pull/41098 is in
"copy_settings", //this still needs a PR?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

++ much cleaner

@russcam russcam merged commit c60cc3b into 7.x Apr 11, 2019
@Mpdreamz Mpdreamz deleted the 7x/obsolete branch June 17, 2019 11:57
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