Skip to content

Commit

Permalink
needed for sentry functionality in reports webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Aug 21, 2017
1 parent 2346c0a commit ae48774
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/galaxy/webapps/reports/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ def check(self):
if not os.path.isdir(path):
raise ConfigurationError("Directory does not exist: %s" % path)

@property
def sentry_dsn_public( self ):
"""
Sentry URL with private key removed for use in client side scripts,
sentry server will need to be configured to accept events
"""
if self.sentry_dsn:
return re.sub( r"^([^:/?#]+:)?//(\w+):(\w+)", r"\1//\2", self.sentry_dsn )
else:
return None


def get_database_engine_options(kwargs):
"""
Expand Down

0 comments on commit ae48774

Please sign in to comment.