-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Update java.ts - removing serverless link #204571
Conversation
x-pack/plugins/serverless_search/public/application/components/languages/java.ts
Outdated
Show resolved
Hide resolved
}, | ||
// Code Snippets, | ||
installClient: `dependencies { | ||
implementation 'co.elastic.clients:elasticsearch-java-serverless:1.0.0-20231031' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' | ||
implementation 'co.elastic.clients:elasticsearch-java:${elasticsearchVersion}' |
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.
is there a "latest" tag that we can use here? elasticsearchVersion variable doesn't exist
implementation 'co.elastic.clients:elasticsearch-java-serverless:1.0.0-20231031' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' | ||
implementation 'co.elastic.clients:elasticsearch-java:${elasticsearchVersion}' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}' |
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.
same with this jackson version
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.
I think the idea is to leave it to users to get the latest version? @swallez
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.
Indeed, there is no concept of "latest" in Java dependency management. Users have to choose an explicit version, down to the minor. This is because Java dependency management appeared before semver existed.
So the use of variables in this PR is for us to avoid updating these files at every minor release by making them "versionless". Users will find the current version in the docs.
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.
if left like this, it would actually throw an exception in the UI. ${elasticsearchVersion}
syntax are variable interpolations which are missing.
I suggest you change these to $elasticsearchVersion
if you want to give the appearance that they need to be replaced and can be rendered onto the UI.

I suggest that you run kibana also to check the display too!
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
4fb300d
to
49a18f1
Compare
21b8a1c
to
db1776d
Compare
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.
see comment on use of incorrect use of variable interpolation.
Replacing links to the serverless java client with the standard client following merging of the two.
db1776d
to
bfe743d
Compare
@joemcelroy interpolation fixed. Please cross-check, and hopefully we can merge this time. |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
5 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
as this work only affects serverless, a backport isn't needed. Removing the label |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
11 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Replacing links to the serverless java client with the standard client following merging of the two.