Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public class SourceFieldMapper extends MetadataFieldMapper {

public static final String LOSSY_PARAMETERS_ALLOWED_SETTING_NAME = "index.lossy.source-mapping-parameters";

public static final String DEPRECATION_WARNING = "Configuring source mode in mappings is deprecated and will be removed "
public static final String DEPRECATION_WARNING = "Configuring source mode in mappings is deprecated.";

public static final String DEPRECATION_DETAILS = "Configuring source mode in mappings is deprecated and will be removed "
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is used in many places, let's keep this as is and add DEPRECATION_WARNING_TITLE above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point! I adjusted it. I did not notice that this is also added a header warning.

+ "in future versions. Use [index.mapping.source.mode] index setting instead.";

/** The source mode */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private DeprecationIssue checkSourceModeInComponentTemplates(ComponentTemplate t
DeprecationIssue.Level.CRITICAL,
SourceFieldMapper.DEPRECATION_WARNING,
"https://github.com/elastic/elasticsearch/pull/117172",
null,
SourceFieldMapper.DEPRECATION_DETAILS,
false,
null
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void testCheckSourceModeInComponentTemplates() throws IOException {
DeprecationIssue.Level.CRITICAL,
SourceFieldMapper.DEPRECATION_WARNING,
"https://github.com/elastic/elasticsearch/pull/117172",
null,
SourceFieldMapper.DEPRECATION_DETAILS,
false,
null
);
Expand Down