From 312a89828941415af9570060f1f0cf6f113c8f29 Mon Sep 17 00:00:00 2001 From: Gregor Billing Date: Wed, 1 Mar 2023 17:28:44 +0100 Subject: [PATCH] Update seedbank to 0.5.0 Including hotfix as per https://github.com/james2m/seedbank/issues/80\#issuecomment-1183799920 --- .github/dependabot.yml | 5 ----- .github/workflows/ruby.yml | 2 -- WcaOnRails/Gemfile.lock | 3 ++- WcaOnRails/spec/support/test_db_manager.rb | 8 ++++---- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 012e9f5be11..faeffe394c9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,11 +5,6 @@ updates: schedule: interval: monthly open-pull-requests-limit: 10 - ignore: - # https://github.com/thewca/worldcubeassociation.org/pull/3644 - - dependency-name: seedbank - versions: - - 0.5.0 - package-ecosystem: npm directory: "/WcaOnRails" schedule: diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 38543e5ebf3..53a3460b944 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -39,8 +39,6 @@ jobs: with: path: '~/.cache/yarn' key: ${{ runner.os }}-yarn - - name: Populate database with seeds - run: bundle exec rake db:reset - name: Pre-compile assets for frontend tests env: DISABLE_SPRING: 1 diff --git a/WcaOnRails/Gemfile.lock b/WcaOnRails/Gemfile.lock index f4e1cf54c21..62779320ab3 100644 --- a/WcaOnRails/Gemfile.lock +++ b/WcaOnRails/Gemfile.lock @@ -618,7 +618,8 @@ GEM faraday (>= 0.17.3, < 3) sdoc (2.6.1) rdoc (>= 5.0) - seedbank (0.4.0) + seedbank (0.5.0) + rake (>= 10.0) semantic_range (3.0.0) shakapacker (6.5.6) activesupport (>= 5.2) diff --git a/WcaOnRails/spec/support/test_db_manager.rb b/WcaOnRails/spec/support/test_db_manager.rb index bc0dc846919..383c25b4d17 100644 --- a/WcaOnRails/spec/support/test_db_manager.rb +++ b/WcaOnRails/spec/support/test_db_manager.rb @@ -2,18 +2,18 @@ class TestDbManager CONSTANT_TABLES = %w( - Countries Continents + Countries + eligible_country_iso2s_for_championship Events - RoundTypes Formats preferred_formats + RoundTypes teams - eligible_country_iso2s_for_championship ).freeze def self.fill_tables - Seedbank.load_tasks + Rails.application.load_tasks Rake::Task["db:seed:common"].invoke end end