Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mehraban
funkwhale
Commits
bb9a614a
Verified
Commit
bb9a614a
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Added raven front dsn and enabled preference
parent
6152b3bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/funkwhale_api/instance/dynamic_preferences_registry.py
+37
-0
37 additions, 0 deletions
api/funkwhale_api/instance/dynamic_preferences_registry.py
with
37 additions
and
0 deletions
api/funkwhale_api/instance/dynamic_preferences_registry.py
0 → 100644
+
37
−
0
View file @
bb9a614a
from
dynamic_preferences
import
types
from
dynamic_preferences.registries
import
global_preferences_registry
raven
=
types
.
Section
(
'
raven
'
)
@global_preferences_registry.register
class
RavenDSN
(
types
.
StringPreference
):
show_in_api
=
True
section
=
raven
name
=
'
front_dsn
'
default
=
'
https://9e0562d46b09442bb8f6844e50cbca2b@sentry.eliotberriot.com/4
'
verbose_name
=
(
'
A raven DSN key used to report front-ent errors to
'
'
a sentry instance
'
)
help_text
=
(
'
Keeping the default one will report errors to funkwhale developers
'
)
SENTRY_HELP_TEXT
=
(
'
Error reporting is disabled by default but you can enable it if
'
'
you want to help us improve funkwhale
'
)
@global_preferences_registry.register
class
RavenEnabled
(
types
.
BooleanPreference
):
show_in_api
=
True
section
=
raven
name
=
'
front_enabled
'
default
=
False
verbose_name
=
(
'
Wether error reporting to a Sentry instance using raven is enabled
'
'
for front-end errors
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment