-
Notifications
You must be signed in to change notification settings - Fork 1.2k
remove script file related API's and obsoleted Indexed on descriptors… #2933
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
Conversation
russcam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left some comments around makring as Obsolete in 6.x, as opposed to removing and adding Obsolete attributes to 5.x
| public IndexedScriptDescriptor Id(string id) => new IndexedScriptDescriptor(id); | ||
|
|
||
| [Obsolete("Indexed() sets a property named id, this is confusing and thats why we intent to remove this in NEST 7.x please use Id()")] | ||
| public IndexedScriptDescriptor Indexed(string id) => new IndexedScriptDescriptor(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not just remove this and mark as [Obsolete] in 5.x?
|
|
||
| public IndexedScriptConditionDescriptor Id(string id) => new IndexedScriptConditionDescriptor(id); | ||
| [Obsolete("Indexed() sets a property named id, this is confusing and thats why we intent to remove this in NEST 7.x please use Id()")] | ||
| public IndexedScriptConditionDescriptor Indexed(string id) => new IndexedScriptConditionDescriptor(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not just remove this and mark as [Obsolete] in 5.x?
| public IndexedScriptConditionDescriptor Indexed(string id) => new IndexedScriptConditionDescriptor(id); | ||
|
|
||
| [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] | ||
| public InlineScriptConditionDescriptor Inline(string script) => new InlineScriptConditionDescriptor(script); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not just remove this and mark as [Obsolete] in 5.x?
acda1e6 to
0c6ff23
Compare
0c6ff23 to
42e383a
Compare
… in favor of Id