-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance outgoing webhooks and add history (#5823)
* Convert the majority of the integrations package to JavaScript * Move the trigger handler to it's own class * Start trying to generalize integration items * Yay, additional events trigger outgoing webhooks * Silence codacy and fix eslint problems. * Started work on user created event for outgoing integrations * Finish the outgoing integration work on the user created event. * Add user join and leave room events for outgoing webhooks * Add fields to the rest api integration creation and clean up the processWebhookMessage * Add the HTTP to the incoming webhook context * Don't check for property on result if it isn't there. Closes #4175, #5762, and #5896. * Add archive room and file upload events for the webhooks * Disable integrations when the user to run/post as gets deleted. * Try to fix the tests failing due to the requird events property * Add history of integration which get fired * Add the missing file for the IntegrationHistory * Fix deleting users being broke due to my code * Add the outgoing webhook integration history viewing page along with v1 rest api to retrieve it * Integration history replays are now enabled along with advanced settings * Work on the advanced settings and enable paging on the integration history * Enable i18n for the history and advanced settings * Update the wording on the word placement * Move migration to be 88 now. * Add missing translations for the webhooks * Fix en.i18n.json identation * Fix integrations.html indentation * Fix more identations * Fix identation of integrationsOutgoing.html
- Loading branch information
1 parent
89c4d94
commit e888808
Showing
65 changed files
with
3,022 additions
and
1,520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
this.ChatIntegrations = new Meteor.Collection('rocketchat_integrations'); | ||
this.ChatIntegrationHistory = new Meteor.Collection('rocketchat_integration_history'); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
FlowRouter.route('/admin/integrations', { | ||
name: 'admin-integrations', | ||
subscriptions() { | ||
this.register('integrations', Meteor.subscribe('integrations')); | ||
}, | ||
action() { | ||
return BlazeLayout.render('main', { | ||
center: 'integrations', | ||
pageTitle: t('Integrations') | ||
}); | ||
} | ||
}); | ||
|
||
FlowRouter.route('/admin/integrations/new', { | ||
name: 'admin-integrations-new', | ||
subscriptions() { | ||
this.register('integrations', Meteor.subscribe('integrations')); | ||
}, | ||
action() { | ||
return BlazeLayout.render('main', { | ||
center: 'integrationsNew', | ||
pageTitle: t('Integration_New') | ||
}); | ||
} | ||
}); | ||
|
||
FlowRouter.route('/admin/integrations/incoming/:id?', { | ||
name: 'admin-integrations-incoming', | ||
subscriptions() { | ||
this.register('integrations', Meteor.subscribe('integrations')); | ||
}, | ||
action(params) { | ||
return BlazeLayout.render('main', { | ||
center: 'pageSettingsContainer', | ||
pageTitle: t('Integration_Incoming_WebHook'), | ||
pageTemplate: 'integrationsIncoming', | ||
params | ||
}); | ||
} | ||
}); | ||
|
||
FlowRouter.route('/admin/integrations/outgoing/:id?', { | ||
name: 'admin-integrations-outgoing', | ||
action(params) { | ||
return BlazeLayout.render('main', { | ||
center: 'integrationsOutgoing', | ||
pageTitle: t('Integration_Outgoing_WebHook'), | ||
params | ||
}); | ||
} | ||
}); | ||
|
||
FlowRouter.route('/admin/integrations/outgoing/:id?/history', { | ||
name: 'admin-integrations-outgoing-history', | ||
action(params) { | ||
return BlazeLayout.render('main', { | ||
center: 'integrationsOutgoingHistory', | ||
pageTitle: t('Integration_Outgoing_WebHook_History'), | ||
params | ||
}); | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RocketChat.AdminBox.addOption({ | ||
href: 'admin-integrations', | ||
i18nLabel: 'Integrations', | ||
permissionGranted: () => RocketChat.authz.hasAtLeastOnePermission(['manage-integrations', 'manage-own-integrations']) | ||
}); |
11 changes: 0 additions & 11 deletions
11
packages/rocketchat-integrations/client/views/integrations.coffee
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.