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

Automatic update #731

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion conf/cmi/raven.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rate_limit: 0
send_request_body: false
request_tracing: true
traces_sample_rate: 0.2
browser_traces_sample_rate: null
browser_traces_sample_rate: 0.2
database_tracing: true
twig_tracing: true
auto_session_tracking: false
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
- helfi_global_navigation
- media
- openapi
- raven
- rest
- system
_core:
Expand All @@ -28,6 +29,7 @@ permissions:
- 'restful get helfi_global_menu_collection'
- 'restful get helfi_global_mobile_menu'
- 'restful get helfi_menu_link_collection'
- 'send javascript errors to sentry'
- 'view global_menu'
- 'view helfi_announcements external entity'
- 'view helfi_surveys external entity'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- media
- openapi
- paragraphs
- raven
- rest
- system
- tfa
Expand All @@ -37,6 +38,7 @@ permissions:
- 'restful get helfi_global_menu_collection'
- 'restful get helfi_global_mobile_menu'
- 'restful get helfi_menu_link_collection'
- 'send javascript errors to sentry'
- 'setup own tfa'
- 'view global_menu'
- 'view helfi_announcements external entity'
Expand Down
5 changes: 5 additions & 0 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ function drupal_get_env(string|array $variables) : mixed {
$default_log_level = getenv('APP_ENV') === 'production' ? 'info' : 'debug';
$settings['helfi_api_base.log_level'] = getenv('LOG_LEVEL') ?: $default_log_level;

// Turn sentry JS error tracking on if SENTRY_DSN_PUBLIC is defined.
if (getenv('SENTRY_DSN_PUBLIC')) {
$config['raven.settings']['javascript_error_handler'] = TRUE;
}

/**
* Deployment identifier.
*
Expand Down