Skip to content

Commit

Permalink
fix: remove sentry (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois authored Sep 25, 2024
1 parent d609ab2 commit c3ba541
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 224 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 @@ -78,9 +78,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
11 changes: 0 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -993,14 +993,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 @@ -1172,9 +1164,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 Down
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 @@ -89,10 +89,6 @@ default: &default
scope: <%= ENV["OMNIAUTH_FC_SCOPE"] %>
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 c3ba541

Please sign in to comment.