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 #574

Merged
merged 1 commit into from
Oct 18, 2024
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.
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 @@ -9,6 +9,7 @@ dependencies:
- external_entities
- helfi_api_base
- media
- raven
- rest
- system
_core:
Expand All @@ -21,6 +22,7 @@ permissions:
- 'access content'
- 'display eu cookie compliance popup'
- 'restful get helfi_global_mobile_menu'
- 'send javascript errors to sentry'
- 'view helfi_announcements external entity'
- 'view helfi_news external entity'
- 'view helfi_news_groups 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 @@ -11,6 +11,7 @@ dependencies:
- helfi_api_base
- media
- paragraphs
- raven
- rest
- system
- tfa
Expand All @@ -28,6 +29,7 @@ permissions:
- 'disable own tfa'
- 'display eu cookie compliance popup'
- 'restful get helfi_global_mobile_menu'
- 'send javascript errors to sentry'
- 'setup own tfa'
- 'view helfi_announcements external entity'
- 'view helfi_news 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