Skip to content

Commit

Permalink
Merge pull request RocketChat#463 from assistify/smarti-resync-batches
Browse files Browse the repository at this point in the history
Resync batches of messages
  • Loading branch information
ruKurz committed Sep 7, 2018
2 parents 7c0cfa1 + 8ef98eb commit c32ef87
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 121 deletions.
31 changes: 29 additions & 2 deletions packages/assistify-ai/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,45 @@ Meteor.startup(() => {
i18nDescription: 'Assistify_AI_RocketChat_Callback_URL_Description'
});

this.add('Assistify_AI_Resync', 'triggerResync', {
type: 'action',
i18nDescription: 'Assistify_AI_Resync_Full_Description',
actionText: 'Assistify_AI_Resync_Text',
sorter: 99
});

this.add('Assistify_AI_Resync_Full', 'triggerFullResync', {
type: 'action',
i18nLabel: 'Assistify_AI_Resync_Full',
i18nDescription: 'Assistify_AI_Resync_Full_Description',
actionText: 'Assistify_AI_Resync_Full_Text'
actionText: 'Assistify_AI_Resync_Full_Text',
sorter: 100
});

this.add('Assistify_AI_Resync_Batchsize', 10, {
type: 'int',
public: true,
i18nLabel: 'Assistify_AI_Resync_Batchsize'
});

this.add('Assistify_AI_Resync_Batch_Timeout', 1000, {
type: 'int',
public: true,
i18nLabel: 'Assistify_AI_Resync_Batch_Timeout'
});

this.add('Assistify_AI_Resync_Message_Limit', 1000, {
type: 'int',
public: true,
i18nLabel: 'Assistify_AI_Resync_Message_Limit'
});

this.add('Assistify_AI_Smarti_Widget_i18n', '', {
type: 'code',
public: true,
i18nLabel: 'Assistify_AI_Smarti_Widget_i18n',
i18nDescription: 'Assistify_AI_Smarti_Widget_i18n_Description'
i18nDescription: 'Assistify_AI_Smarti_Widget_i18n_Description',
sorter: 200
});
});
};
Expand Down
Loading

0 comments on commit c32ef87

Please sign in to comment.