-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Improve the deprecation messages around include_type_name. #38052
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,9 +59,9 @@ | |
| public class RestGetMappingAction extends BaseRestHandler { | ||
| private static final Logger logger = LogManager.getLogger(RestGetMappingAction.class); | ||
| private static final DeprecationLogger deprecationLogger = new DeprecationLogger(logger); | ||
| public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Using include_type_name in get" + | ||
| " mapping requests is deprecated. The parameter will be removed in the next major version."; | ||
|
|
||
| public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] The response format of get index " + | ||
| "template requests will change in 7.0. Please start using the include_type_name parameter set to false to " + | ||
|
||
| "move to the new, typeless response format that will become the default."; | ||
|
|
||
| public RestGetMappingAction(final Settings settings, final RestController controller) { | ||
| super(settings); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,9 +41,9 @@ | |
| public class RestPutMappingAction extends BaseRestHandler { | ||
| private static final DeprecationLogger deprecationLogger = new DeprecationLogger( | ||
| LogManager.getLogger(RestPutMappingAction.class)); | ||
| public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in put mapping " + | ||
| "requests is deprecated. The parameter include_type_name should be provided and set to false to be " + | ||
| "compatible with the next major version."; | ||
| public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in create index " + | ||
| "requests is deprecated. To be compatible with 7.0, the mapping definition should not nested under the " + | ||
| "type name, and the parameter include_type_name must be provided and set to false."; | ||
|
||
|
|
||
| public RestPutMappingAction(Settings settings, RestController controller) { | ||
| super(settings); | ||
|
|
||
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.
Worrying, this decline in the be population.
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.
Thanks Julie, I am ok with this message as well, but may be more explicit instruction what needs to be done could be more clear, e.g using Mark's comment "To be compatible with 7.0, the type must be removed from the usual mapping -> type -> properties hierarchy, and the parameter ..."
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!