Skip to content

Commit

Permalink
chore(core): remove hipchat notification module (#6884)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed May 15, 2019
1 parent 98c9327 commit f7cb7ab
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 49 deletions.
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/bootstrap/angular.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ bootstrapModule.config([
bootstrapModule.config([
'$compileProvider',
($compileProvider: ICompileProvider) => {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|hipchat|slack|ssh):/);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|mailto|slack|ssh):/);
$compileProvider.preAssignBindingsEnabled(true);
},
]);
Expand Down
4 changes: 0 additions & 4 deletions app/scripts/modules/core/src/config/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export interface INotificationSettings {
googlechat: {
enabled: boolean;
};
hipchat: {
botName: string;
enabled: boolean;
};
sms: {
enabled: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module.exports = angular
we currently store application level notifications in front50 as a map indexed by type
{
"application": "ayuda",
"hipchat": [ { ... } ],
"email": [ { ... } ]
}
the code below unwraps it into a table friendly format and the saveNotifications code will
Expand All @@ -47,9 +46,7 @@ module.exports = angular
AppNotificationsService.getNotificationsForApplication($scope.application).then(function(notifications) {
$scope.notifications = _.filter(
_.flatten(
_.map(['email', 'bearychat', 'googlechat', 'sms', 'hipchat', 'slack', 'githubstatus', 'pubsub'], function(
type,
) {
_.map(['email', 'bearychat', 'googlechat', 'sms', 'slack', 'githubstatus', 'pubsub'], function(type) {
if (notifications[type]) {
return _.map(notifications[type], function(entry) {
return _.extend(entry, { type: type });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = angular.module('spinnaker.core.notifications', [
require('./types/email/email.notification.type.module').name,
SPINNAKER_CORE_NOTIFICATION_TYPES_GITHUB_STATUS,
require('./types/googlechat/googlechat.notification.type.module').name,
require('./types/hipchat/hipchat.notification.type.module').name,
require('./types/pubsub/pubsub.notification.type.module').name,
require('./types/slack/slack.notification.type.module').name,
require('./types/sms/sms.notification.type.module').name,
Expand Down

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions halconfig/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ window.spinnakerSettings = {
googlechat: {
enabled: true,
},
hipchat: {
botName: 'Skynet T-800',
enabled: true,
},
pubsub: {
enabled: true,
},
Expand Down
4 changes: 0 additions & 4 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ window.spinnakerSettings = {
googlechat: {
enabled: true,
},
hipchat: {
botName: 'Skynet T-800',
enabled: true,
},
pubsub: {
enabled: true,
},
Expand Down

0 comments on commit f7cb7ab

Please sign in to comment.