Skip to content
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

Add build_flavor back to info api rest response #88336

Merged
merged 10 commits into from
Jul 8, 2022

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Jul 7, 2022

The build_flavor was previously removed since it is no longer relevant;
only the default distribution now exists. However, the removal of build
flavor included removing it from the version information on the info
response for the root path. This API is supposed to be stable, so
removing that key was a compatibility break. This commit adds the
build_flavor back to that API, hardcoded to default. Additionally, a
test is added to ensure the key exists going forward, until it can be
properly deprecated.

closes #88318

The build_flavor was previously removed since it is no longer relevant;
only the default distribution now exists. However, the removal of build
flavor included removing it from the version information on the main
response for the root path. This API is supposed to be stable, so
removing that key was a compatibility break. This commit adds the
build_flavor back to that API, hardcoded to `default`.

closes elastic#88318
@rjernst rjernst added >bug :Core/Infra/Core Core issues without another label v8.4.0 v8.3.3 labels Jul 7, 2022
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jul 7, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine
Copy link
Collaborator

Hi @rjernst, I've created a changelog YAML for you.

@sethmlarson sethmlarson added the Team:Clients Meta label for clients team label Jul 7, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/clients-team (Team:Clients)

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM!

@rjernst rjernst added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport-and-merge labels Jul 7, 2022
Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticsearchmachine elasticsearchmachine merged commit 9016883 into elastic:master Jul 8, 2022
@rjernst rjernst deleted the main_info_restore_bwc branch July 8, 2022 00:24
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Jul 8, 2022
The build_flavor was previously removed since it is no longer relevant;
only the default distribution now exists. However, the removal of build
flavor included removing it from the version information on the info
response for the root path. This API is supposed to be stable, so
removing that key was a compatibility break. This commit adds the
build_flavor back to that API, hardcoded to `default`. Additionally, a
test is added to ensure the key exists going forward, until it can be
properly deprecated.

closes elastic#88318
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.3

elasticsearchmachine pushed a commit that referenced this pull request Jul 8, 2022
The build_flavor was previously removed since it is no longer relevant;
only the default distribution now exists. However, the removal of build
flavor included removing it from the version information on the info
response for the root path. This API is supposed to be stable, so
removing that key was a compatibility break. This commit adds the
build_flavor back to that API, hardcoded to `default`. Additionally, a
test is added to ensure the key exists going forward, until it can be
properly deprecated.

closes #88318
rjernst added a commit that referenced this pull request Jul 8, 2022
tlrx pushed a commit to tlrx/elasticsearch that referenced this pull request Jul 8, 2022
tlrx added a commit that referenced this pull request Jul 8, 2022
Reenable bwc tests after backport of #88336 on 8.3 branch.

Co-authored-by: Ryan Ernst <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Core/Infra/Core Core issues without another label Team:Clients Meta label for clients team Team:Core/Infra Meta label for core/infra team v8.3.3 v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in info API response by removing version.build_flavor field
5 participants