Skip to content

Commit

Permalink
backport: remove sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef-Rousset committed Nov 7, 2024
1 parent be3a496 commit 55e24b5
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 226 deletions.
3 changes: 0 additions & 3 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
SECRET_KEY_BASE=
GEOCODER_LOOKUP_API_KEY=
SENTRY_DSN=
HELP_SCOUT_BEACON_ID_MAIN=
BACKUP_ENABLED=
BACKUP_S3SYNC_ENABLED=
Expand Down Expand Up @@ -48,8 +47,6 @@ AVAILABLE_LOCALES="fr,en"
# Force SSL - binary (default: 1)
# Can be disable for reverse proxy setup
FORCE_SSL=1
SENTRY_SIDEKIQ_SAMPLE_RATE=0.1
SENTRY_SAMPLE_RATE=0.5
FRIENDLY_SIGNUP_OVERRIDE_PASSWORDS=1
FRIENDLY_SIGNUP_INSTANT_VALIDATION=1
FRIENDLY_SIGNUP_HIDE_NICKNAME=1
Expand Down
1 change: 0 additions & 1 deletion .overloads
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ config/initializers/filter_parameter_logging.rb
config/initializers/inflections.rb
config/initializers/mime_types.rb
config/initializers/new_framework_defaults_5_2.rb
config/initializers/sentry.rb
config/initializers/social_share_button.rb
config/initializers/wrap_parameters.rb
config/locales/decidim-awesome/fr.yml
Expand Down
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ group :production do
gem "health_check", "~> 3.1"
gem "lograge"
gem "sendgrid-ruby"
gem "sentry-rails"
gem "sentry-ruby"
gem "sentry-sidekiq"
gem "sidekiq", "~> 6.0"
gem "sidekiq-scheduler", "~> 5.0"
end
15 changes: 2 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ GIT

GIT
remote: https://github.com/decidim-ice/decidim-module-decidim_awesome
revision: 51bc593da8fb72d14c2e5b5df55dbb686be1fbbe
revision: b9aae42bc835485edec5887cb02062caaaf64ed1
branch: release/0.27-stable
specs:
decidim-decidim_awesome (0.10.3)
Expand Down Expand Up @@ -1036,14 +1036,6 @@ GEM
semantic_range (3.0.0)
sendgrid-ruby (6.7.0)
ruby_http_client (~> 3.4)
sentry-rails (5.16.1)
railties (>= 5.0)
sentry-ruby (~> 5.16.1)
sentry-ruby (5.16.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
sentry-sidekiq (5.16.1)
sentry-ruby (~> 5.16.1)
sidekiq (>= 3.0)
seven_zip_ruby (1.3.0)
sidekiq (6.5.12)
connection_pool (>= 2.2.5, < 3)
Expand Down Expand Up @@ -1223,9 +1215,6 @@ DEPENDENCIES
rack-attack (~> 6.6)
rubocop-faker
sendgrid-ruby
sentry-rails
sentry-ruby
sentry-sidekiq
sidekiq (~> 6.0)
sidekiq-scheduler (~> 5.0)
spring (~> 2.0)
Expand All @@ -1238,4 +1227,4 @@ RUBY VERSION
ruby 3.0.6p216

BUNDLED WITH
2.4.6
2.5.10
3 changes: 1 addition & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"heroku-redis:hobby-dev",
"memcachedcloud:30",
"newrelic:wayne",
"sendgrid:starter",
"sentry:f1"
"sendgrid:starter"
],
"scripts": {
"postdeploy":"rake db:schema:load db:migrate"
Expand Down
9 changes: 0 additions & 9 deletions app/views/layouts/decidim/_head_extra.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<% if Rails.application.secrets.dig(:sentry, :enabled) %>
<script src="https://browser.sentry-cdn.com/<%= Rails.application.secrets.dig(:sentry, :js_version) %>/bundle.min.js" crossorigin="anonymous"></script>
<script>
Sentry.init({
dsn: '<%= Rails.application.secrets.dig(:sentry, :dsn) %>'
});
</script>
<% end %>
<% if defined?(Decidim::DecidimAwesome) %>
<%= stylesheet_pack_tag "decidim_decidim_awesome", media: "all" %>
<%= render(partial: "layouts/decidim/decidim_awesome/custom_styles") if awesome_custom_styles %>
Expand Down
5 changes: 0 additions & 5 deletions config/initializers/sentry.rb

This file was deleted.

4 changes: 0 additions & 4 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ default: &default
uid_field: <%= ENV["OMNIAUTH_OPENID_CONNECT_UID_FIELD"] %>
maps:
api_key: <%= ENV["GEOCODER_LOOKUP_API_KEY"] %>
sentry:
enabled: <%= !ENV["SENTRY_DSN"].blank? %>
dsn: <%= ENV["SENTRY_DSN"] %>
js_version: "4.6.4"
etherpad:
server: <%= ENV["ETHERPAD_SERVER"] %>
api_key: <%= ENV["ETHERPAD_API_KEY"] %>
Expand Down
57 changes: 0 additions & 57 deletions lib/decidim_app/sentry_setup.rb

This file was deleted.

129 changes: 0 additions & 129 deletions spec/lib/decidim_app/sentry_setup_spec.rb

This file was deleted.

0 comments on commit 55e24b5

Please sign in to comment.