Skip to content

Commit

Permalink
[INLONG-11379][Dashboard] Redis sink Properties saving problem
Browse files Browse the repository at this point in the history
  • Loading branch information
wohainilaodou committed Oct 21, 2024
1 parent 0f9054b commit d300c81
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions inlong-dashboard/src/plugins/sinks/defaults/Redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,35 +295,6 @@ export default class RedisSink extends SinkInfo implements DataWithBackend, Rend
@I18n('meta.Sinks.Redis.Ttl')
ttl: number;

@FieldDecorator({
type: EditableTable,
props: values => ({
size: 'small',
editing: ![110].includes(values?.status),
columns: getFieldListColumns(values),
canBatchAdd: true,
upsertByFieldKey: true,
}),
})
@IngestionField()
sinkFieldList: Record<string, unknown>[];

@FieldDecorator({
type: EditableTable,
initialValue: [],
props: values => ({
size: 'small',
editing: ![110].includes(values?.status),
columns: getFieldListColumns(values).filter(
item => item.dataIndex !== 'sourceFieldName' && item.dataIndex !== 'sourceFieldType',
),
canBatchAdd: true,
upsertByFieldKey: true,
}),
})
@SyncCreateTableField()
createTableField: Record<string, unknown>[];

@FieldDecorator({
type: EditableTable,
rules: [{ required: false }],
Expand Down Expand Up @@ -352,6 +323,34 @@ export default class RedisSink extends SinkInfo implements DataWithBackend, Rend
@IngestionField()
@I18n('meta.Sinks.Redis.ExtList')
properties: string;
@FieldDecorator({
type: EditableTable,
props: values => ({
size: 'small',
editing: ![110].includes(values?.status),
columns: getFieldListColumns(values),
canBatchAdd: true,
upsertByFieldKey: true,
}),
})
@IngestionField()
sinkFieldList: Record<string, unknown>[];

@FieldDecorator({
type: EditableTable,
initialValue: [],
props: values => ({
size: 'small',
editing: ![110].includes(values?.status),
columns: getFieldListColumns(values).filter(
item => item.dataIndex !== 'sourceFieldName' && item.dataIndex !== 'sourceFieldType',
),
canBatchAdd: true,
upsertByFieldKey: true,
}),
})
@SyncCreateTableField()
createTableField: Record<string, unknown>[];

@FieldDecorator({
type: 'inputnumber',
Expand Down

0 comments on commit d300c81

Please sign in to comment.