Skip to content

Commit b02b80b

Browse files
committed
fix: correct params names
1 parent f574ae1 commit b02b80b

8 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/locales/datasource/en_US.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const en_US = {
3030
label: 'Group by field',
3131
more: 'More',
3232
size: 'Size',
33-
min_value: 'Min doc count',
33+
min_doc_count: 'Min doc count',
3434
},
3535
raw: {
3636
limit: 'Limit',
@@ -55,7 +55,7 @@ const en_US = {
5555
delay: 'Delay',
5656
},
5757
event: {
58-
groupBy: `Group by {{field}}, number of matches {{size}}, document minimum value {{min_value}}`,
58+
groupBy: `Group by {{field}}, number of matches {{size}}, document minimum value {{min_doc_count}}`,
5959
logs: {
6060
title: 'Logs detail',
6161
size: 'Size',

src/locales/datasource/ja_JP.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ja_JP = {
2222
label: '指定フィールドによるグループ化',
2323
more: '高度な設定',
2424
size: '一致数',
25-
min_value: 'ドキュメントの最小値',
25+
min_doc_count: 'ドキュメントの最小値',
2626
},
2727
raw: {
2828
limit: 'ログ数',
@@ -47,7 +47,7 @@ const ja_JP = {
4747
delay: '遅延実行',
4848
},
4949
event: {
50-
groupBy: '{{field}}によるグループ化、一致数 {{size}}, ドキュメントの最小値 {{min_value}}',
50+
groupBy: '{{field}}によるグループ化、一致数 {{size}}, ドキュメントの最小値 {{min_doc_count}}',
5151
logs: {
5252
title: 'ログの詳細',
5353
size: '結果数',

src/locales/datasource/ru_RU.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ru_RU = {
2222
label: 'Группировка по указанному полю',
2323
more: 'Расширенные настройки',
2424
size: 'Количество совпадений',
25-
min_value: 'Минимальное значение',
25+
min_doc_count: 'Минимальное значение',
2626
},
2727
raw: {
2828
limit: 'Количество записей',
@@ -47,7 +47,7 @@ const ru_RU = {
4747
delay: 'Задержка выполнения',
4848
},
4949
event: {
50-
groupBy: 'Группировка по {{field}}, {{size}} совпадений, минимальное значение {{min_value}}',
50+
groupBy: 'Группировка по {{field}}, {{size}} совпадений, минимальное значение {{min_doc_count}}',
5151
logs: {
5252
title: 'Детальная информация',
5353
size: 'Количество результатов',

src/locales/datasource/zh_CN.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const zh_CN = {
3030
label: '根据指定 field 分组',
3131
more: '高级设置',
3232
size: '匹配个数',
33-
min_value: '文档最小值',
33+
min_doc_count: '文档最小值',
3434
},
3535
raw: {
3636
limit: '日志条数',
@@ -55,7 +55,7 @@ const zh_CN = {
5555
delay: '延迟执行',
5656
},
5757
event: {
58-
groupBy: `根据 {{field}} 分组,匹配个数 {{size}}, 文档最小值 {{min_value}}`,
58+
groupBy: `根据 {{field}} 分组,匹配个数 {{size}}, 文档最小值 {{min_doc_count}}`,
5959
logs: {
6060
title: '日志详情',
6161
size: '结果数',

src/locales/datasource/zh_HK.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const zh_HK = {
3030
label: '根據指定 field 分組',
3131
more: '高階設定',
3232
size: '匹配個數',
33-
min_value: '文件最小值',
33+
min_doc_count: '文件最小值',
3434
},
3535
raw: {
3636
limit: '日誌條數',
@@ -55,7 +55,7 @@ const zh_HK = {
5555
delay: '延遲執行',
5656
},
5757
event: {
58-
groupBy: `根據 {{field}} 分組,匹配個數 {{size}}, 文檔最小值 {{min_value}}`,
58+
groupBy: `根據 {{field}} 分組,匹配個數 {{size}}, 文檔最小值 {{min_doc_count}}`,
5959
logs: {
6060
title: '日誌詳情',
6161
size: '結果數',

src/pages/dashboard/Editor/QueryEditor/Elasticsearch/GroupBy/Histgram.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Terms({ prefixField }) {
3838
<Col span={6}>
3939
<Input.Group>
4040
<span className='ant-input-group-addon'>文档最小值</span>
41-
<Form.Item {...prefixField} name={[prefixField.name, 'min_value']} noStyle>
41+
<Form.Item {...prefixField} name={[prefixField.name, 'min_doc_count']} noStyle>
4242
<InputNumber style={{ width: '100%' }} />
4343
</Form.Item>
4444
</Input.Group>

src/pages/dashboard/Editor/QueryEditor/Elasticsearch/GroupBy/Terms.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default function Terms({ prefixField, fieldsOptions, values }) {
5353
</InputGroupWithFormItem>
5454
</Col>
5555
<Col span={6}>
56-
<InputGroupWithFormItem label={t('datasource:es.terms.min_value')}>
56+
<InputGroupWithFormItem label={t('datasource:es.terms.min_doc_count')}>
5757
<Form.Item {...prefixField} name={[prefixField.name, 'min_doc_count']} noStyle>
5858
<InputNumber style={{ width: '100%' }} />
5959
</Form.Item>

src/plugins/elasticsearch/Event/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function ElasticsearchDetail(
6464
{i18next.t('datasource:es.event.groupBy', {
6565
field: item.field,
6666
size: item.size,
67-
min_value: item.min_value,
67+
min_doc_count: item.min_doc_count,
6868
})}
6969
</Tag>
7070
);

0 commit comments

Comments
 (0)