Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sentry integration #3920

Merged
merged 1 commit into from
May 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions contribs/gmf/apps/desktop/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import appBase from '../appmodule.js';
import ngeoProjEPSG2056 from 'ngeo/proj/EPSG2056.js';
import ngeoProjEPSG21781 from 'ngeo/proj/EPSG21781.js';
import * as olBase from 'ol/index.js';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';

if (!window.requestAnimationFrame) {
alert('Your browser is not supported, please update it or use another one. You will be redirected.\n\n'
Expand Down Expand Up @@ -97,13 +99,20 @@ const exports = function($scope, $injector) {
gettextCatalog.getString('Add a theme');
gettextCatalog.getString('Add a sub theme');
gettextCatalog.getString('Add a layer');

if ($injector.has('sentryUrl')) {
Raven.config($injector.get('sentryUrl'))
.addPlugin(RavenPluginsAngular)
.install();
}
};

olBase.inherits(exports, gmfControllersAbstractDesktopController);

exports.module = angular.module('Appdesktop', [
appBase.module.name,
gmfControllersAbstractDesktopController.module.name,
RavenPluginsAngular.moduleName,
]);

exports.module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');
Expand Down
9 changes: 9 additions & 0 deletions contribs/gmf/apps/desktop_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import ngeoRoutingModule from 'ngeo/routing/module.js';
import ngeoProjEPSG2056 from 'ngeo/proj/EPSG2056.js';
import ngeoProjEPSG21781 from 'ngeo/proj/EPSG21781.js';
import * as olBase from 'ol/index.js';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';

if (!window.requestAnimationFrame) {
alert('Your browser is not supported, please update it or use another one. You will be redirected.\n\n'
Expand Down Expand Up @@ -127,6 +129,12 @@ const exports = function($scope, $injector, ngeoFile, gettext, $q) {
* @export
*/
this.bgOpacityOptions = 'Test aus Olten';

if ($injector.has('sentryUrl')) {
Raven.config($injector.get('sentryUrl'))
.addPlugin(RavenPluginsAngular)
.install();
}
};

olBase.inherits(exports, gmfControllersAbstractDesktopController);
Expand All @@ -150,6 +158,7 @@ exports.module = angular.module('Appdesktop_alt', [
gmfImportModule.name,
ngeoRoutingModule.name,
ngeoGooglestreetviewModule.name,
RavenPluginsAngular.moduleName,
]);

exports.module.controller('AlternativeDesktopController', exports);
Expand Down
8 changes: 8 additions & 0 deletions contribs/gmf/apps/mobile/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import appBase from '../appmodule.js';
import ngeoProjEPSG2056 from 'ngeo/proj/EPSG2056.js';
import ngeoProjEPSG21781 from 'ngeo/proj/EPSG21781.js';
import * as olBase from 'ol/index.js';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';

if (!window.requestAnimationFrame) {
alert('Your browser is not supported, please update it or use another one. You will be redirected.\n\n'
Expand Down Expand Up @@ -56,13 +58,19 @@ const exports = function($scope, $injector) {
*/
this.searchCoordinatesProjections = [ngeoProjEPSG21781, ngeoProjEPSG2056, 'EPSG:4326'];

if ($injector.has('sentryUrl')) {
Raven.config($injector.get('sentryUrl'))
.addPlugin(RavenPluginsAngular)
.install();
}
};

olBase.inherits(exports, gmfControllersAbstractMobileController);

exports.module = angular.module('Appmobile', [
appBase.module.name,
gmfControllersAbstractMobileController.module.name,
RavenPluginsAngular.moduleName,
]);

exports.module.controller('MobileController', exports);
Expand Down
8 changes: 8 additions & 0 deletions contribs/gmf/apps/mobile_alt/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import olStyleFill from 'ol/style/Fill.js';
import olStyleRegularShape from 'ol/style/RegularShape.js';
import olStyleStroke from 'ol/style/Stroke.js';
import olStyleStyle from 'ol/style/Style.js';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';

if (!window.requestAnimationFrame) {
alert('Your browser is not supported, please update it or use another one. You will be redirected.\n\n'
Expand Down Expand Up @@ -93,6 +95,11 @@ const exports = function($scope, $injector) {
})
});

if ($injector.has('sentryUrl')) {
Raven.config($injector.get('sentryUrl'))
.addPlugin(RavenPluginsAngular)
.install();
}
};

olBase.inherits(exports, gmfControllersAbstractMobileController);
Expand All @@ -101,6 +108,7 @@ olBase.inherits(exports, gmfControllersAbstractMobileController);
exports.module = angular.module('Appmobile_alt', [
appBase.module.name,
gmfControllersAbstractMobileController.module.name,
RavenPluginsAngular.moduleName,
]);

exports.module.controller('AlternativeMobileController', exports);
Expand Down
9 changes: 9 additions & 0 deletions contribs/gmf/apps/oeedit/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import * as olBase from 'ol/index.js';
import olCollection from 'ol/Collection.js';
import olLayerVector from 'ol/layer/Vector.js';
import olSourceVector from 'ol/source/Vector.js';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';

if (!window.requestAnimationFrame) {
alert('Your browser is not supported, please update it or use another one. You will be redirected.\n\n'
Expand Down Expand Up @@ -206,6 +208,12 @@ const exports = function($scope, $injector, $timeout) {
gettextCatalog.getString('Add a theme');
gettextCatalog.getString('Add a sub theme');
gettextCatalog.getString('Add a layer');

if ($injector.has('sentryUrl')) {
Raven.config($injector.get('sentryUrl'))
.addPlugin(RavenPluginsAngular)
.install();
}
};

olBase.inherits(exports, gmfControllersAbstractDesktopController);
Expand All @@ -214,6 +222,7 @@ exports.module = angular.module('Appoeedit', [
appBase.module.name,
gmfControllersAbstractDesktopController.module.name,
gmfObjecteditingModule.name,
RavenPluginsAngular.moduleName,
]);

exports.module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');
Expand Down
9 changes: 9 additions & 0 deletions contribs/gmf/apps/oeview/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import appBase from '../appmodule.js';
import ngeoProjEPSG2056 from 'ngeo/proj/EPSG2056.js';
import ngeoProjEPSG21781 from 'ngeo/proj/EPSG21781.js';
import * as olBase from 'ol/index.js';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';

if (!window.requestAnimationFrame) {
alert('Your browser is not supported, please update it or use another one. You will be redirected.\n\n'
Expand Down Expand Up @@ -97,13 +99,20 @@ const exports = function($scope, $injector) {
gettextCatalog.getString('Add a theme');
gettextCatalog.getString('Add a sub theme');
gettextCatalog.getString('Add a layer');

if ($injector.has('sentryUrl')) {
Raven.config($injector.get('sentryUrl'))
.addPlugin(RavenPluginsAngular)
.install();
}
};

olBase.inherits(exports, gmfControllersAbstractDesktopController);

exports.module = angular.module('Appoeview', [
appBase.module.name,
gmfControllersAbstractDesktopController.module.name,
RavenPluginsAngular.moduleName,
]);

exports.module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"phantomjs-polyfill-string-includes": "1.0.0",
"phantomjs-prebuilt": "2.1.16",
"proj4": "2.4.4",
"raven-js": "3.24.2",
"svg2ttf": "4.1.0",
"ttf2eot": "2.0.0",
"ttf2woff": "2.0.1",
Expand Down