Skip to content

Commit

Permalink
Merge branch 'main' into exclusive2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdconrad committed Feb 25, 2025
2 parents 7ecd086 + b5e482b commit b255a2c
Show file tree
Hide file tree
Showing 129 changed files with 2,128 additions and 897 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.Transformer;
import org.gradle.api.invocation.Gradle;
import org.gradle.api.plugins.JavaBasePlugin;
import org.gradle.api.plugins.JavaPluginExtension;
import org.gradle.api.tasks.Copy;
Expand All @@ -38,6 +39,15 @@ public class EclipseConventionPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
project.getPlugins().apply(EclipsePlugin.class);
Gradle gradle = project.getGradle();

boolean isEclipse = project.getProviders().systemProperty("eclipse.launcher").isPresent() || // Gradle launched from Eclipse
project.getProviders().systemProperty("eclipse.application").isPresent() || // Gradle launched from the Eclipse compiler server
gradle.getStartParameter().getTaskNames().contains("eclipse") || // Gradle launched from the command line to do eclipse stuff
gradle.getStartParameter().getTaskNames().contains("cleanEclipse");
// for eclipse ide specific hacks...
project.getExtensions().add("isEclipse", isEclipse);

EclipseModel eclipseModel = project.getExtensions().getByType(EclipseModel.class);
EclipseProject eclipseProject = eclipseModel.getProject();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum DockerBase {
// Chainguard based wolfi image with latest jdk
// This is usually updated via renovatebot
// spotless:off
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:d74b1fda6b7fee2c90b410df258e005c049e0672fe16d79d00e58f14fb69f90b",
WOLFI("docker.elastic.co/wolfi/chainguard-base:latest@sha256:c66fdafe581a6ab1668a962015de4ce4666a60ed601d24f019f03bb4aaab8eeb",
"-wolfi",
"apk"
),
Expand Down
9 changes: 0 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,6 @@ allprojects {
}
}

// injecting groovy property variables into all projects
project.ext {
// for ide hacks...
isEclipse = providers.systemProperty("eclipse.launcher").isPresent() || // Detects gradle launched from Eclipse's IDE
providers.systemProperty("eclipse.application").isPresent() || // Detects gradle launched from the Eclipse compiler server
gradle.startParameter.taskNames.contains('eclipse') || // Detects gradle launched from the command line to do eclipse stuff
gradle.startParameter.taskNames.contains('cleanEclipse')
}

ext.bwc_tests_enabled = bwc_tests_enabled

// eclipse configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class SystemJvmOptions {
static List<String> systemJvmOptions(Settings nodeSettings, final Map<String, String> sysprops) {
String distroType = sysprops.get("es.distribution.type");
boolean isHotspot = sysprops.getOrDefault("sun.management.compiler", "").contains("HotSpot");
boolean entitlementsExplicitlyEnabled = Booleans.parseBoolean(sysprops.getOrDefault("es.entitlements.enabled", "false"));
boolean entitlementsExplicitlyEnabled = Booleans.parseBoolean(sysprops.getOrDefault("es.entitlements.enabled", "true"));
// java 24+ only supports entitlements, but it may be enabled on earlier versions explicitly
boolean useEntitlements = RuntimeVersionFeature.isSecurityManagerAvailable() == false || entitlementsExplicitlyEnabled;
return Stream.of(
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog/121827.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 121827
summary: Updates to allow using Cohere binary embedding response in semantic search
queries
area: Machine Learning
type: bug
issues: []
6 changes: 6 additions & 0 deletions docs/changelog/122886.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 122886
summary: Add support to VALUES aggregation for spatial types
area: ES|QL
type: bug
issues:
- 122413
10 changes: 10 additions & 0 deletions docs/changelog/122960.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pr: 122960
summary: Deprecate Behavioral Analytics CRUD apis
area: Search
type: deprecation
issues: [ ]
deprecation:
title: Deprecate Behavioral Analytics CRUD apis
area: Search
details: Behavioral Analytics has been deprecated as of 9.0.0 and will be removed in a future release. The APIs will still work for now, but will emit warning headers that the API has been deprecated.
impact: Behavioral Analytics has been deprecated as of 9.0.0 and will be removed in a future release.
5 changes: 5 additions & 0 deletions docs/changelog/122999.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 122999
summary: Store arrays offsets for ip fields natively with synthetic source
area: Mapping
type: enhancement
issues: []
6 changes: 6 additions & 0 deletions docs/changelog/123346.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 123346
summary: Reduce license checks in `LicensedWriteLoadForecaster`
area: CRUD
type: bug
issues:
- 123247
5 changes: 5 additions & 0 deletions docs/changelog/123384.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 123384
summary: Fixing serialization of `ScriptStats` `cache_evictions_history`
area: Stats
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[[delete-analytics-collection]]
=== Delete Analytics Collection

deprecated:[9.0.0]
beta::[]

++++
Expand All @@ -14,15 +15,6 @@ beta::[]
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
--

////
[source,console]
----
PUT _application/analytics/my_analytics_collection
----
// TESTSETUP
////

Removes a <<behavioral-analytics-overview,Behavioral Analytics>> Collection and its associated data stream.

[[delete-analytics-collection-request]]
Expand Down Expand Up @@ -59,3 +51,4 @@ The following example deletes the Analytics Collection named `my_analytics_colle
----
DELETE _application/analytics/my_analytics_collection/
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]
1 change: 1 addition & 0 deletions docs/reference/behavioral-analytics/apis/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[[behavioral-analytics-apis]]
== Behavioral Analytics APIs

deprecated:[9.0.0]
beta::[]

++++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[[list-analytics-collection]]
=== List Analytics Collections

deprecated:[9.0.0]
beta::[]

++++
Expand All @@ -14,22 +15,6 @@ beta::[]
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
--

////
[source,console]
----
PUT _application/analytics/my_analytics_collection
PUT _application/analytics/my_analytics_collection2
----
// TESTSETUP
[source,console]
----
DELETE _application/analytics/my_analytics_collection
DELETE _application/analytics/my_analytics_collection2
----
// TEARDOWN
////

Returns information about <<behavioral-analytics-overview,Behavioral Analytics>> Collections.

[[list-analytics-collection-request]]
Expand All @@ -46,8 +31,9 @@ Requires the `manage_behavioral_analytics` cluster privilege.
==== {api-path-parms-title}

`<criteria>`::
(optional, string)
Criteria is used to find a matching analytics collection. This could be the name of the collection or a pattern to match multiple. If not specified, will return all analytics collections.
(optional, string) Criteria is used to find a matching analytics collection.
This could be the name of the collection or a pattern to match multiple.
If not specified, will return all analytics collections.

[[list-analytics-collection-response-codes]]
==== {api-response-codes-title}
Expand All @@ -66,6 +52,7 @@ The following example lists all configured Analytics Collections:
----
GET _application/analytics/
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]

A sample response:

Expand All @@ -91,6 +78,7 @@ The following example returns the Analytics Collection that matches `my_analytic
----
GET _application/analytics/my_analytics_collection
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]

A sample response:

Expand All @@ -111,6 +99,7 @@ The following example returns all Analytics Collections prefixed with `my`:
----
GET _application/analytics/my*
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]

A sample response:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[[post-analytics-collection-event]]
=== Post Event to an Analytics Collection

deprecated:[9.0.0]
beta::[]

++++
Expand All @@ -14,20 +15,6 @@ beta::[]
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
--

////
[source,console]
----
PUT _application/analytics/my_analytics_collection
----
// TESTSETUP
[source,console]
----
DELETE _application/analytics/my_analytics_collection
----
// TEARDOWN
////

Post an event to a <<behavioral-analytics-overview,Behavioral Analytics>> Collection.

[[post-analytics-collection-event-request]]
Expand Down Expand Up @@ -105,3 +92,4 @@ POST _application/analytics/my_analytics_collection/event/search_click
}
}
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[[put-analytics-collection]]
=== Put Analytics Collection

deprecated:[9.0.0]
beta::[]

++++
Expand All @@ -14,14 +15,6 @@ beta::[]
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
--

////
[source,console]
----
DELETE _application/analytics/my_analytics_collection
----
// TEARDOWN
////

Creates a <<behavioral-analytics-overview,Behavioral Analytics>> Collection.

[[put-analytics-collection-request]]
Expand Down Expand Up @@ -55,3 +48,4 @@ The following example creates a new Analytics Collection called `my_analytics_co
----
PUT _application/analytics/my_analytics_collection
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]
48 changes: 48 additions & 0 deletions docs/reference/esql/functions/kibana/definition/values.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[[behavioral-analytics-api]]
=== Behavioral Analytics API overview

++++
<titleabbrev>API overview</titleabbrev>
++++

deprecated:[9.0.0]

This page outlines all the APIs available for behavioral analytics and links to their documentation.

[discrete]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<titleabbrev>Set up CORs</titleabbrev>
++++

deprecated:[9.0.0]

Behavioral Analytics sends events directly to the {es} API.
This means that the browser makes requests to the {es} API directly.
{es} supports https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS[Cross-Origin Resource Sharing (CORS)^], but this feature is disabled by default.
Expand Down Expand Up @@ -43,4 +45,4 @@ On Elastic Cloud, you can do this by {cloud}/ec-add-user-settings.html#ec-add-us
==== Proxy the request through a server that supports CORS

If you are unable to enable CORS on {es}, you can proxy the request through a server that supports CORS.
This is more complicated, but is a viable option.
This is more complicated, but is a viable option.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<titleabbrev>Events reference</titleabbrev>
++++

deprecated:[9.0.0]

Behavioral Analytics logs events using the {ecs-ref}/ecs-reference.html[Elastic Common Schema^], including a custom field set for analytics events.
Refer to <<behavioral-analytics-event-reference-examples,examples>> of the full data objects that are logged.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<titleabbrev>View events</titleabbrev>
++++

deprecated:[9.0.0]

[TIP]
====
Refer to <<behavioral-analytics-event-reference>> for a complete list of the fields logged by events.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[[behavioral-analytics-overview]]
== Search analytics

deprecated:[9.0.0]


Behavioral Analytics is an analytics event collection platform.
Use these tools to analyze your users' searching and clicking behavior.
Leverage this information to improve the relevance of your search results and identify gaps in your content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<titleabbrev>Get started</titleabbrev>
++++

deprecated:[9.0.0]

You can manage your analytics in the {kib} UI.
Go to *Search > Behavioral Analytics* to get started.

Expand Down
Loading

0 comments on commit b255a2c

Please sign in to comment.