Skip to content

Conversation

kderusso
Copy link
Member

@kderusso kderusso commented Feb 19, 2025

Deprecates the Behavioral Analytics CRUD APIs and issues the following warning headers when the APIs are used: "Behavioral Analytics is deprecated and will be removed in a future release."

@kderusso kderusso changed the title Kderusso/deprecate behavioral analytics crud apis Deprecate Behavioral Analytics CRUD apis Feb 19, 2025
@kderusso kderusso added auto-backport Automatically create backport pull requests when merged :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v9.0.0 >deprecation labels Feb 19, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @kderusso, I've created a changelog YAML for you. Note that since this PR is labelled >deprecation, you need to update the changelog YAML to fill out the extended information sections.

Copy link
Contributor

Warning

It looks like this PR modifies one or more .asciidoc files. These files are being migrated to Markdown, and any changes merged now will be lost. See the migration guide for details.

----
DELETE _application/analytics/my_analytics_collection/
----
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]
Copy link
Member Author

Choose a reason for hiding this comment

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

There appears to be a bug in our test framework as emitting warnings during test setup can't be handled. Since we're not going to be updating these APIs my solution was to skip the tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Whitespace/auto-formatting

@kderusso
Copy link
Member Author

I have created a followup request to update Markdown docs: elastic/docs-content#541

Copy link
Contributor

Warning

It looks like this PR modifies one or more .asciidoc files. These files are being migrated to Markdown, and any changes merged now will be lost. See the migration guide for details.

@kderusso kderusso marked this pull request as ready for review February 20, 2025 18:43
@kderusso kderusso requested a review from a team February 20, 2025 18:43
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

Copy link
Contributor

Warning

It looks like this PR modifies one or more .asciidoc files. These files are being migrated to Markdown, and any changes merged now will be lost. See the migration guide for details.

Copy link
Contributor

Warning

It looks like this PR modifies one or more .asciidoc files. These files are being migrated to Markdown, and any changes merged now will be lost. See the migration guide for details.

Co-authored-by: Liam Thompson <[email protected]>
Copy link
Contributor

Warning

It looks like this PR modifies one or more .asciidoc files. These files are being migrated to Markdown, and any changes merged now will be lost. See the migration guide for details.

Copy link
Contributor

Warning

It looks like this PR modifies one or more .asciidoc files. These files are being migrated to Markdown, and any changes merged now will be lost. See the migration guide for details.

Copy link
Contributor

Warning

It looks like this PR modifies one or more .asciidoc files. These files are being migrated to Markdown, and any changes merged now will be lost. See the migration guide for details.

Copy link
Contributor

@ioanatia ioanatia left a comment

Choose a reason for hiding this comment

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

Looks good - I am not sure what to do about the docs migration warning.
@leemthompo we should be good to merge, can you please check the PR?

there is another thing we should add - the UpdateForV10 annotation.
See example:

@Deprecated
@UpdateForV10(owner = UpdateForV10.Owner.DATA_MANAGEMENT)
public class FreezeAction implements LifecycleAction {

but I am okay at adding this in a follow up, there might be other things we need to annotate in the ent-search plugin.

@efegurkan efegurkan merged commit ae6474d into elastic:main Feb 25, 2025
16 of 17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0

kderusso added a commit to kderusso/elasticsearch that referenced this pull request Feb 25, 2025
* Deprecate Behavioral Analytics CRUD APIs

* Add allowed warning for REST Compatibility tests

* Update docs/changelog/122960.yaml

* Update changelog

* Update docs to add deprecation flags and fix failing tests

* Update changelog

* Update changelog again

* Update docs formatting

Co-authored-by: Liam Thompson <[email protected]>

* Skip asciidoc test

---------

Co-authored-by: Efe Gürkan YALAMAN <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Efe Gürkan YALAMAN <[email protected]>
elasticsearchmachine pushed a commit that referenced this pull request Feb 25, 2025
* Deprecate Behavioral Analytics CRUD APIs

* Add allowed warning for REST Compatibility tests

* Update docs/changelog/122960.yaml

* Update changelog

* Update docs to add deprecation flags and fix failing tests

* Update changelog

* Update changelog again

* Update docs formatting



* Skip asciidoc test

---------

Co-authored-by: Efe Gürkan YALAMAN <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Efe Gürkan YALAMAN <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >deprecation :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants