Skip to content

Conversation

@russcam
Copy link
Contributor

@russcam russcam commented Apr 26, 2018

This PR fixes the compile warnings from the introduction of ObsoleteAttribute to methods and types that are removed in 6.x

@russcam russcam requested a review from codebrain April 26, 2018 23:21
Copy link
Contributor

@codebrain codebrain left a comment

Choose a reason for hiding this comment

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

Some minor comments

/// Stores a search template that can be used to pre render search requests,
/// before they are executed and fill the search template with template parameters.
/// </summary>
[Obsolete("Removed in NEST 6.x. In NEST 6.x, use the PutScript API to store templates")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Removed in NEST 6.x, use the PutScript API to store templates

Copy link
Contributor

Choose a reason for hiding this comment

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

A few instances that have this phrasing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Users should continue to use PutSearchTemplate in 5.x, but when moving to 6.x, should use PutScript. I thought it was ambiguous when In NEST 6.x, is left out as to whether users should transition to PutScript now or when they move to 6.x, so thought it was clearer to indicate when users should move to using PutScript

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is that clear? 😄

protected override bool ExpectIsValid => true;
protected override HttpMethod HttpMethod => HttpMethod.POST;
protected override string UrlPath => "/project/_suggest";
protected override string UrlPath => "/project/project/_search";
Copy link
Contributor

Choose a reason for hiding this comment

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

/project/project?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

{index}/{type}/_search

@russcam russcam merged commit 5576423 into 5.x Apr 27, 2018
@russcam russcam deleted the fix/5.x-warnings branch April 27, 2018 03:22
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