Skip to content

Commit

Permalink
Rails 7.1 Upgrade (#1146)
Browse files Browse the repository at this point in the history
* start rails 7 upgrade. upgrade gems. fix specs.

* fix rubocop offences

* fixing error serialization

* rework error serialization

* appease the rubocop gods

* fix specs

* fix specs. rework error serialization.

* fix specs

* appease the rubocop gods

* rubocop fixes

* fix specs

* fix specs

* merge master

* for testing purposes

* checking if there are any other test failures

* fix metadata specs

* fix datacite_doi_spec

* fix specs

* remove logging active record validation errors

* remove comments from gemfile

* fix deprecation warning

* remove comments

* monkeypatch Elasticsearch::Client to prevent the Elasticsearch::UnsupportedProductError

* add comment to explain the monkeypatch

* update base64 gem

* remove base64 from gemfile. setup passenger to allow using the updated gem.

* scilence flipper warnings

* configure flipper to remove warning in cloudwatch

* delete these files as they add no value and just adds to the logs

* rework eager loading

* remove attr_readonly

* fixes after setting rails 7.1 default

* fix work_type_spec

* fix index specs

* fix repository_type_spec

* fix compressed requests module lookup

* ignore the elasticsearch gem warning

* appease rubocop

* configure app to enable attr_readonly pre rails 7.1 behaviour.

* remove docker-compose config and delete useless controller specs

* fix branch
  • Loading branch information
wendelfabianchinsamy authored Apr 9, 2024
1 parent 5f40e64 commit 85c850c
Show file tree
Hide file tree
Showing 55 changed files with 392 additions and 2,197 deletions.
29 changes: 15 additions & 14 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ source "https://rubygems.org"

gem "aasm", "~> 5.0", ">= 5.0.1"
gem "active_model_serializers", "~> 0.10.0"
gem "activerecord_json_validator", "~> 1.3"
gem "activerecord_json_validator", "~> 2.1", ">= 2.1.5"
gem "apollo-federation", "1.1.3"
gem "audited", "~> 4.8"
gem "audited", "~> 5.4", ">= 5.4.3"
gem "aws-sdk-s3", require: false
gem "aws-sdk-sqs", "~> 1.3"
gem "base32-url", "~> 0.3"
gem "batch-loader", "~> 1.4", ">= 1.4.1"
gem "bcrypt", "~> 3.1.7"
gem "bolognese", "~> 2.1.1"
gem "bolognese", "~> 2.2"
gem "bootsnap", "~> 1.4", ">= 1.4.4", require: false
gem "cancancan", "~> 3.0"
gem "countries", "~> 2.1", ">= 2.1.2"
Expand All @@ -23,19 +23,19 @@ gem "ddtrace", require: "ddtrace/auto_instrument"
gem "departure", "~> 6.2"
gem "diffy", "~> 3.2", ">= 3.2.1"
gem "dotenv"
gem "elasticsearch", "7.5"
gem "elasticsearch", "~> 7.17", ">= 7.17.10"
gem "elasticsearch-model", "~> 7.1.1", ">= 7.1.1", require: "elasticsearch/model"
gem "elasticsearch-rails", "~> 7.1.1", ">= 7.1.1"
gem "elasticsearch-transport", "7.5"
gem "elasticsearch-transport", "~> 7.17", ">= 7.17.10"
gem "equivalent-xml", "~> 0.6.0"
gem "facets", require: false
gem "faraday", "~> 0.17.3"
gem "faraday", "~> 2.9"
gem "faraday_middleware-aws-sigv4", "~> 0.3.0"
# IMPORTANT!!!
# We have monkey patched this gem -> config/initializers/serialization_core.rb
# Please check this before upgrading/downgrading versions
gem "jsonapi-serializer", "~> 2.2"
gem "flipper", "~> 0.17.0"
gem "flipper", "~> 1.2", ">= 1.2.2"
gem "flipper-active_support_cache_store"
gem "gender_detector", "~> 0.1.2"
gem "git", "~> 1.11"
Expand All @@ -55,7 +55,7 @@ gem "lograge", "~> 0.11.2"
gem "logstash-event", "~> 1.2", ">= 1.2.02"
gem "logstash-logger", "~> 0.26.1"
gem "mailgun-ruby", "~> 1.1", ">= 1.1.8"
gem "maremma", "~> 4.9.6"
gem "maremma", "~> 5.0"
gem "mini_magick", "~> 4.8"
gem "mysql2", "~> 0.5.3"
gem "nokogiri", ">= 1.11.2"
Expand All @@ -65,9 +65,9 @@ gem "premailer", "~> 1.11", ">= 1.11.1"
gem "pwqgen.rb", "~> 0.1.0"
gem "rack-cors", "~> 1.0", require: "rack/cors"
gem "rack-utf8_sanitizer", "~> 1.6"
gem "rails", "~> 6.1.7"
gem "rails", "~> 7.1", ">= 7.1.3"
gem "rake", "~> 12.0"
gem "sentry-raven", "~> 2.9"
gem "sentry-raven", "~> 3.1", ">= 3.1.2"
gem "shoryuken", "~> 4.0"
gem "simple_command"
gem "slack-notifier", "~> 2.1"
Expand All @@ -81,7 +81,7 @@ gem "uuid", "~> 2.3", ">= 2.3.9"
group :development, :test do
gem "better_errors"
gem "binding_of_caller"
gem "bullet", "~> 6.1"
gem "bullet", "~> 7.1", ">= 7.1.6"
gem "byebug", platforms: %i[mri mingw x64_mingw]
gem "rspec-benchmark", "~> 0.4.0"
gem "rspec-graphql_matchers", "~> 1.4"
Expand All @@ -97,17 +97,18 @@ group :development do
gem "brakeman", "~> 6.1", ">= 6.1.2"
gem "bundler-audit", "~> 0.9.1"
gem "fasterer", "~> 0.11.0"
gem "listen", ">= 3.0.5", "< 3.2"
gem "listen", "~> 3.9"
gem "reek", "~> 6.3"
gem "seedbank"
gem "spring"
gem "spring", "~> 4.1", ">= 4.1.3"
gem "spring-commands-rspec"
gem "spring-watcher-listen", "~> 2.0.0"
gem "spring-watcher-listen", "~> 2.1"
end

group :test do
gem "capybara"
gem "database_cleaner"
gem "database_cleaner-active_record", "~> 2.1"
gem "elasticsearch-extensions", "~> 0.0.29"
gem "factory_bot_rails", "~> 6.4", ">= 6.4.3"
gem "faker", "~> 3.2", ">= 3.2.3"
Expand Down
Loading

0 comments on commit 85c850c

Please sign in to comment.