integrations: Rename HUBOT_INTEGRATIONS_LEGACY.

It is now simply called HUBOT_INTEGRATIONS.

Fixes #7402
This commit is contained in:
Aastha Gupta 2017-12-06 16:08:24 +05:30 committed by Steve Howell
parent 2f575cca72
commit 78e8d18ef3
1 changed files with 14 additions and 20 deletions

View File

@ -444,28 +444,22 @@ BOT_INTEGRATIONS = [
BotIntegration('xkcd', ['bots', 'misc'], display_name='xkcd'),
] # type: List[BotIntegration]
# Note: These are not actually displayed anywhere; we're keeping them
# around so they can be migrated into the newer HUBOT_INTEGRATIONS
HUBOT_INTEGRATIONS_LEGACY = {
'bonusly': HubotIntegration('bonusly', ['hr']),
'chartbeat': HubotIntegration('chartbeat', ['marketing']),
'darksky': HubotIntegration('darksky', ['misc'], display_name='Dark Sky',
logo_alt='Dark Sky logo'),
'hangouts': HubotIntegration('google-hangouts', ['communication'], display_name="Hangouts"),
'instagram': HubotIntegration('instagram', ['misc'],
logo='static/images/integrations/logos/instagram.png'),
'mailchimp': HubotIntegration('mailchimp', ['communication', 'marketing'],
display_name='MailChimp', logo_alt='MailChimp logo'),
'translate': HubotIntegration('google-translate', ['misc'],
display_name="Translate", logo_alt='Google Translate logo'),
'youtube': HubotIntegration('youtube', ['misc'], display_name='YouTube',
logo_alt='YouTube logo')
}
HUBOT_INTEGRATIONS = {
HUBOT_INTEGRATIONS = [
HubotIntegration('assembla', ['version-control', 'project-management'],
display_name='Assembla', logo_alt='Assembla'),
}
HubotIntegration('bonusly', ['hr']),
HubotIntegration('chartbeat', ['marketing'], display_name='Chartbeat'),
HubotIntegration('darksky', ['misc'], display_name='Dark Sky',
logo_alt='Dark Sky logo'),
HubotIntegration('google-hangouts', ['communication'], display_name='Google Hangouts',
logo_alt='Google Hangouts logo'),
HubotIntegration('instagram', ['misc'], display_name='Instagram'),
HubotIntegration('mailchimp', ['communication', 'marketing'],
display_name='MailChimp'),
HubotIntegration('google-translate', ['misc'],
display_name="Google Translate", logo_alt='Google Translate logo'),
HubotIntegration('youtube', ['misc'], display_name='YouTube'),
] # type: List[HubotIntegration]
for hubot_integration in HUBOT_INTEGRATIONS:
INTEGRATIONS[hubot_integration.name] = hubot_integration