aloyszhang commented on code in PR #9821:
URL: https://github.com/apache/inlong/pull/9821#discussion_r1525663726
##########
inlong-dashboard/src/plugins/sources/defaults/Pulsar.ts:
##########
@@ -123,13 +125,87 @@ export default class PulsarSource
@FieldDecorator({
type: 'input',
+ tooltip: i18n.t('meta.Sources.Pulsar.SubscriptionHelp'),
props: values => ({
disabled: values?.status === 101,
}),
})
@ColumnDecorator()
- @SyncField()
@IngestionField()
+ @I18n('meta.Sources.Pulsar.Subscription')
+ subscription: string;
+
+ @FieldDecorator({
+ type: 'select',
+ initialValue: 'Latest',
+ props: values => ({
+ disabled: values?.status === 101,
+ options: [
+ {
+ label: 'Earliest',
+ value: 'Earliest',
+ },
+ {
+ label: 'Latest',
+ value: 'Latest',
+ },
+ ],
+ }),
+ })
+ @ColumnDecorator()
+ @IngestionField()
+ @I18n('meta.Sources.Pulsar.SubscriptionPosition')
+ scanStartupMode: string;
+
+ @FieldDecorator({
+ type: 'select',
+ initialValue: 'Shared',
+ tooltip: i18n.t('meta.Sources.Pulsar.SubscriptionTypeHelp'),
+ props: values => ({
+ disabled: values?.status === 101,
+ options: [
Review Comment:
Why not support the Key_Shared type?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]