Skip to content

Commit

Permalink
Incorporating reviewer feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Locke committed Sep 1, 2020
1 parent 9145874 commit dfc4b4f
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@ export const Bytes: FunctionComponent = () => {
)}
/>

<TargetField
helpText={i18n.translate(
'xpack.ingestPipelines.pipelineEditor.convertForm.targetFieldHelpText',
{
defaultMessage:
'Field to assign the converted value to. Defaults to the specified field name.',
}
)}
/>
<TargetField />

<IgnoreMissingField />
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const fieldsConfig: FieldsConfig = {
helpText: () => (
<FormattedMessage
id="xpack.ingestPipelines.pipelineEditor.circleForm.errorDistanceHelpText"
defaultMessage="Difference between the side of the inscribed shape to the encompassing circle. Measured in meters for {geo_shape}, but uses no units for {shape}."
defaultMessage="Difference between the side of the inscribed shape to the encompassing circle. Determines the accuracy of the output polygon. Measured in meters for {geo_shape}, but uses no units for {shape}."
values={{
geo_shape: <EuiCode>{'geo_shape'}</EuiCode>,
shape: <EuiCode>{'shape'}</EuiCode>,
Expand Down Expand Up @@ -71,7 +71,7 @@ const fieldsConfig: FieldsConfig = {
}),
helpText: i18n.translate(
'xpack.ingestPipelines.pipelineEditor.circleForm.shapeTypeFieldHelpText',
{ defaultMessage: 'Field mapping type to use when processing the circle.' }
{ defaultMessage: 'Field mapping type to use when processing the output polygon.' }
),
validations: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ifConfig: FieldConfig = {
defaultMessage: 'Condition (optional)',
}),
helpText: i18n.translate('xpack.ingestPipelines.pipelineEditor.commonFields.ifFieldHelpText', {
defaultMessage: 'Conditional statement to run with this processor.',
defaultMessage: 'Conditionally run this processor.',
}),
type: FIELD_TYPES.TEXT,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ const fieldsConfig: FieldsConfig = {
helpText: i18n.translate(
'xpack.ingestPipelines.pipelineEditor.commonFields.targetFieldHelpText',
{
defaultMessage:
'Field to assign the joined value to. If empty, the field is updated in place.',
defaultMessage: 'Output field. If empty, the input field is updated in place.',
}
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,7 @@ export const Convert: FunctionComponent = () => {
path="fields.type"
/>

<TargetField
helpText={i18n.translate(
'xpack.ingestPipelines.pipelineEditor.convertForm.targetFieldHelpText',
{
defaultMessage:
'Field to assign the converted value to. Defaults to the specified field name.',
}
)}
/>
<TargetField />

<IgnoreMissingField />
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const fieldsConfig: FieldsConfig = {
defaultMessage: 'Target fields',
}),
helpText: i18n.translate('xpack.ingestPipelines.pipelineEditor.csvForm.targetFieldsHelpText', {
defaultMessage: 'Array of fields to assign extracted values to.',
defaultMessage: 'Output fields. Extracted values are mapped to these fields.',
}),
validations: [
{
Expand Down Expand Up @@ -83,7 +83,7 @@ const fieldsConfig: FieldsConfig = {
helpText: (
<FormattedMessage
id="xpack.ingestPipelines.pipelineEditor.convertForm.separatorHelpText"
defaultMessage="Single character string used to separate data. Defaults to {value}."
defaultMessage="Delimiter used in the CSV data. Defaults to {value}."
values={{ value: <EuiCode inline>{','}</EuiCode> }}
/>
),
Expand All @@ -102,7 +102,7 @@ const fieldsConfig: FieldsConfig = {
helpText: (
<FormattedMessage
id="xpack.ingestPipelines.pipelineEditor.convertForm.quoteHelpText"
defaultMessage="Single character string used to separate data. Defaults to {value}."
defaultMessage="Escape character used in the CSV data. Defaults to {value}."
values={{ value: <EuiCode inline>{'"'}</EuiCode> }}
/>
),
Expand All @@ -115,7 +115,7 @@ const fieldsConfig: FieldsConfig = {
defaultMessage: 'Trim',
}),
helpText: i18n.translate('xpack.ingestPipelines.pipelineEditor.csvForm.trimFieldHelpText', {
defaultMessage: 'Trim whitespaces in unquoted fields.',
defaultMessage: 'Remove whitespaces in unquoted CSV data.',
}),
},
empty_value: {
Expand All @@ -127,7 +127,7 @@ const fieldsConfig: FieldsConfig = {
'xpack.ingestPipelines.pipelineEditor.convertForm.emptyValueFieldHelpText',
{
defaultMessage:
'Value used to fill empty fields. Empty fields are skipped if this value is not provided.',
'Used to fill empty fields. If no value is provided, empty fields are skipped.',
}
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const fieldsConfig: FieldsConfig = {
}),
helpText: i18n.translate('xpack.ingestPipelines.pipelineEditor.dateForm.formatsFieldHelpText', {
defaultMessage:
'Array of the expected date formats. Accepts a Java time pattern, ISO8601, UNIX, UNIX_MS, or TAI64N formats.',
'Expected date formats. Provided formats are applied sequentially. Accepts a Java time pattern, ISO8601, UNIX, UNIX_MS, or TAI64N formats.',
}),
validations: [
{
Expand Down Expand Up @@ -99,7 +99,7 @@ export const DateProcessor: FunctionComponent = () => {
helpText={
<FormattedMessage
id="xpack.ingestPipelines.pipelineEditor.dateForm.targetFieldHelpText"
defaultMessage="Field that will hold the parsed date. Defaults to {defaultField}."
defaultMessage="Output field. If empty, the input field is updated in place. Defaults to {defaultField}."
values={{
defaultField: <EuiCode inline>{'@timestamp'}</EuiCode>,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const getFieldsConfig = (esDocUrl: string): Record<string, FieldConfig> => {
helpText: (
<FormattedMessage
id="xpack.ingestPipelines.pipelineEditor.dissectForm.appendSeparatorHelpText"
defaultMessage="Characters used to separate fields when appending two or more results together. Defaults to {value}."
defaultMessage="If you specify a key modifier, this character separates the fields when appending results. Defaults to {value}."
values={{ value: <EuiCode inline>{'""'}</EuiCode> }}
/>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const fieldsConfig: Record<string, FieldConfig> = {
}),
helpText: i18n.translate('xpack.ingestPipelines.pipelineEditor.dotExpanderForm.pathHelpText', {
defaultMessage:
'Field containing the object to expand. Only required if the field to expand is part another object field.',
'Output field. Only required if the field to expand is part another object field.',
}),
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ export const mapProcessorTypeToDescriptor: MapProcessorTypeToDescriptor = {
defaultMessage: 'Circle',
}),
description: i18n.translate('xpack.ingestPipelines.processors.description.circle', {
defaultMessage:
'Converts circle definitions of shapes to regular polygons that approximate them. The error distance determines the accuracy of the polygon that represents the circle.',
defaultMessage: 'Converts a circle definition into an approximate polygon.',
}),
},
convert: {
Expand All @@ -97,7 +96,7 @@ export const mapProcessorTypeToDescriptor: MapProcessorTypeToDescriptor = {
defaultMessage: 'CSV',
}),
description: i18n.translate('xpack.ingestPipelines.processors.description.csv', {
defaultMessage: 'Extracts fields from a CSV line in a single text field within a document.',
defaultMessage: 'Extracts fields values from CSV data.',
}),
},
date: {
Expand All @@ -118,7 +117,7 @@ export const mapProcessorTypeToDescriptor: MapProcessorTypeToDescriptor = {
}),
description: i18n.translate('xpack.ingestPipelines.processors.description.dateIndexName', {
defaultMessage:
'Points documents to the correct time-based index, based on a date or timestamp field in a document using the date math support in index names.',
'Uses a date or timestamp to add documents to the correct time-based index. Index names must use a date math pattern, such as my-index-yyyy-MM-dd.',
}),
},
dissect: {
Expand All @@ -128,8 +127,7 @@ export const mapProcessorTypeToDescriptor: MapProcessorTypeToDescriptor = {
defaultMessage: 'Dissect',
}),
description: i18n.translate('xpack.ingestPipelines.processors.description.dissect', {
defaultMessage:
'Matches a single text field against a defined pattern to extract structured fields within a document.',
defaultMessage: 'Uses dissect patterns to extract matches from a field.',
}),
},
dot_expander: {
Expand Down

0 comments on commit dfc4b4f

Please sign in to comment.