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
Remove ScriptDocValues#getValues
#22919
Comments
+1 (with appropriate deprecation logging) |
Talked among a small group - we're fine with removing. I'll put together a change to deprecate in 5.x and remove in 6.0. |
@nik9000 Was this ever completed? |
No, but it feels like a legit thing we should do. Like, we should deprecate it in 6.x and remove in master. |
I am interested in taking a look at this. @nik9000 can you give some direction? It seems like the plan was to deprecate and remove some time in 6.x. However, we are already at 6.4 and it doesn't seem like the deprecation warnings were ever added. At this point, are we only interested in adding deprecation info? |
ScriptDocValues#getValues
ScriptDocValues#getValues
Right @j-haj! We've traditionally done this sort of thing in a two phase process:
We do this because it keeps 6.x as "mostly backports of stuff in master" and it allows us to always develop against master. So if you'd like to take this then step 1 is deprecating One important thing: on |
Perfect - I will get working on this and comment if I have any questions. |
@nik9000 I have added a call to Also, |
That depends on who you ask! Some of us aren't big fans of it to be honest.
I think it'd be good to say something about how |
Perfect - I can work with that and will have a PR out later this morning. |
First commit addressing issue elastic#22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc.foo.values.bar` should be using `doc.foo.bar` instead.
First commit addressing issue elastic#22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc.foo.values.bar` should be using `doc.foo.bar` instead.
First commit addressing issue elastic#22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc.foo.values.bar` should be using `doc.foo.bar` instead.
First commit addressing issue elastic#22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc.foo.values.bar` should be using `doc.foo.bar` instead.
First commit addressing issue elastic#22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc.foo.values.bar` should be using `doc.foo.bar` instead.
First commit addressing issue elastic#22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc['foo'].values` when `doc['foo']` is a list should be using `doc['foo']` instead.
First commit addressing issue elastic#22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc['foo'].values` when `doc['foo']` is a list should be using `doc['foo']` instead.
I closed this without thinking earlier today. The issue isn't resolved by #34279. I'm not as good at reading as I thought! |
`ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc['foo'].values` when `doc['foo']` is a list should be using `doc['foo']` instead. Closes #22919
* Adds deprecation logging to ScriptDocValues#getValues. First commit addressing issue #22919. `ScriptDocValues#getValues` was added for backwards compatibility but no longer needed. Scripts using the syntax `doc['foo'].values` when `doc['foo']` is a list should be using `doc['foo']` instead. * Fixes two build errors in #34279 * Removes unused import in ScriptDocValuesDatesTest * Removes used of `.values` in example in diversified-sampler-aggregation.asciidoc * Removes use of .values from painless test. Part of #34279 * Updates tests to use `doc[foo]` syntax rather than `doc[foo].values`. * Removes use of `getValues()` and replaces use of `doc[foo].values` with `doc[foo]`. * Indentation fix. * Remove unnecessary list construction at previous `getValues()` callsite in ScriptDocValues.GeoPoints. * Update migration doc and add link to `getValue` in ScriptDocValues javadoc. * Fix compile * Fix javadoc issue * Removes ScriptDocValues#getValues usage from painless whitelist.
This was removed in #36183 |
I expect
ScriptDocValues#getValues
was added for backwards compatibility a long time ago but at this point I don't think we need it. At this point everything every script that doesdoc.foo.values.something
can dodoc.foo.something
instead.Should we drop
ScriptDocValues#getValues
in 6.0?The text was updated successfully, but these errors were encountered: