Skip to content

Deprecate legacy index template API endpoints#71309

Merged
danhermann merged 20 commits intoelastic:masterfrom
danhermann:71307_deprecate_legacy_template_apis
Apr 16, 2021
Merged

Deprecate legacy index template API endpoints#71309
danhermann merged 20 commits intoelastic:masterfrom
danhermann:71307_deprecate_legacy_template_apis

Conversation

@danhermann
Copy link
Copy Markdown
Contributor

Closes #71307

@danhermann danhermann added :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v8.0.0 v7.13.0 labels Apr 5, 2021
@danhermann
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@danhermann danhermann marked this pull request as ready for review April 14, 2021 13:06
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Apr 14, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@dakrone dakrone self-requested a review April 15, 2021 16:04
Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for doing this @danhermann, I left two comment but they're pretty minor


public static final String DEPRECATION_WARNING = "Legacy index templates are deprecated and will be removed completely in a " +
"future version. Please use composable templates instead.";
private static final RestApiVersion DEPRECATION_VERSION = RestApiVersion.V_8;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this going to change to V_7 for the backport? Should this be V_7 right now so that the REST API compat. header still gets the deprecation (given that it's being deprecated in 7.x also)?

Copy link
Copy Markdown
Contributor

@joegallo joegallo Apr 15, 2021

Choose a reason for hiding this comment

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

Changing to V_7 (on the 7.x backport) is almost certainly the correct thing to do (in this case). The semantics of that, then, would be that here on master the legacy index templates are "merely deprecated" and separately also that on 7.x they are also "merely deprecated".

}
}

for (Iterator<String> warnings = unexpected.iterator(); warnings.hasNext();) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add a comment for this block about its purpose?

@danhermann
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@elasticmachine
Copy link
Copy Markdown
Collaborator

expected head sha didn’t match current head ref.

@danhermann
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@danhermann
Copy link
Copy Markdown
Contributor Author

Thanks, @dakrone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. >deprecation Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate legacy template API endpoints

5 participants