From 3db4045ae2e7886674663cff11819ce8983add22 Mon Sep 17 00:00:00 2001 From: megli2 Date: Wed, 4 Sep 2024 16:56:45 +0200 Subject: [PATCH] Remove sphinx and mysql from project files because of migration to postgres --- app/controllers/event/course_records_controller.rb | 1 - config/settings.yml | 5 ----- lib/tasks/tarantula.rake | 14 -------------- .../event/course_records_controller_spec.rb | 4 ++-- 4 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 lib/tasks/tarantula.rake diff --git a/app/controllers/event/course_records_controller.rb b/app/controllers/event/course_records_controller.rb index 5b7a5245..5c6835b2 100644 --- a/app/controllers/event/course_records_controller.rb +++ b/app/controllers/event/course_records_controller.rb @@ -90,7 +90,6 @@ def return_path edit_group_event_course_record_path(*parents) end - # with mysql when saving value 1 it is rerenderd as 1.0 which is considered decimal def replace_decimal_with_integer return unless entry.duration_in_hours? diff --git a/config/settings.yml b/config/settings.yml index ba03b58e..092dd734 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -22,11 +22,6 @@ application: # Initially, a password reset token may be mailed from the application to this address to set a password. root_email: hitobito-insieme@puzzle.ch -sphinx: - index: - # interval to index for full-text search in minutes - interval: 5 - groups: statistics: enabled: false diff --git a/lib/tasks/tarantula.rake b/lib/tasks/tarantula.rake deleted file mode 100644 index fa33194b..00000000 --- a/lib/tasks/tarantula.rake +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -# Copyright (c) 2012-2014, insieme Schweiz. This file is part of -# hitobito_insieme and licensed under the Affero General Public License version 3 -# or later. See the COPYING file at the top-level directory or at -# https://github.com/hitobito/hitobito_insieme. - -desc "Crawl app with tarantula" -task :tarantula do - sh "rm -rf ../../../tmp/tarantula" - sh "rm -rf ../hitobito/tmp/tarantula" - sh "bash -c \"RAILS_ENV=test #{ENV["APP_ROOT"]}/bin/with_mysql " \ - "rake app:tarantula:test\"" -end diff --git a/spec/controllers/event/course_records_controller_spec.rb b/spec/controllers/event/course_records_controller_spec.rb index 18eaa0d0..66f63caa 100644 --- a/spec/controllers/event/course_records_controller_spec.rb +++ b/spec/controllers/event/course_records_controller_spec.rb @@ -143,7 +143,7 @@ let(:dom) { Capybara::Node::Simple.new(response.body) } let(:event) { Fabricate(:course, groups: [group], leistungskategorie: leistungskategorie, fachkonzept: fachkonzept) } - context "for sk", db: :mysql do + context "for sk", db: :postgres do let(:leistungskategorie) { "sk" } let(:fachkonzept) { "sport_jugend" } @@ -157,7 +157,7 @@ end end - context "for tp", db: :mysql do + context "for tp", db: :postgres do let(:leistungskategorie) { "tp" } let(:fachkonzept) { "treffpunkt" }