-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Ruby on Rails to 7.2.0 #929
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #929 +/- ##
===========================================
+ Coverage 91.82% 96.73% +4.91%
===========================================
Files 74 73 -1
Lines 1052 1012 -40
===========================================
+ Hits 966 979 +13
+ Misses 86 33 -53 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
зкооперуйся з Іванною Амброзяк, разом гляньте до цього ПРа, до її, аби все гарно зробити
config/environments/development.rb
Outdated
config.action_mailer.delivery_method = :letter_opener | ||
config.action_mailer.perform_deliveries = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а чому цей конфіг видалений?
config/environments/production.rb
Outdated
config.action_mailer.delivery_method = :smtp | ||
config.action_mailer.raise_delivery_errors = true | ||
config.action_mailer.perform_deliveries = true | ||
config.action_mailer.default_url_options = { | ||
host: "zero-waste-project.herokuapp.com", | ||
protocol: "https" | ||
} | ||
config.action_mailer.smtp_settings = { | ||
address: "smtp.sendgrid.net", | ||
port: 587, | ||
domain: "zero-waste-project.herokuapp.com", | ||
user_name: ENV.fetch("SENDGRID_USERNAME", nil), | ||
password: ENV.fetch("SENDGRID_API_KEY", nil), | ||
authentication: "plain", | ||
enable_starttls_auto: true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
чому цей конфіг видалений?
config/environments/production.rb
Outdated
# config.assume_ssl = true | ||
|
||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. | ||
config.force_ssl = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а чому це додала?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут же пише, що цей файл має бути видалений. Також я хотів би, аби максимальний розмір лог файла, з цього файла, був винесений в конфігурацію
public/icon.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нам цього не потрібно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а нам ця міграція потрібна?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
також всі ці інші міграції?
spec/lib/users_csv_generator_spec.rb
Outdated
@@ -3,7 +3,7 @@ | |||
require "rails_helper" | |||
|
|||
RSpec.describe UsersCsvGenerator do | |||
let(:time_login) { Time.new(2020, 0o1, 0o1).in_time_zone("Kyiv") } | |||
let(:time_login) { Time.new(2020, 0o1, 0o1).in_time_zone("Europe/Kyiv") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let(:time_login) { Time.new(2020, 0o1, 0o1).in_time_zone("Europe/Kyiv") } | |
let(:time_login) { Time.new(2020, 0o1, 0o1) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rubocop не дозволяє
config/application.rb
Outdated
# Configuration for the application, engines, and railties goes here. | ||
# | ||
# These settings can be overridden in specific environments using the files | ||
# in config/environments, which are processed later. | ||
# | ||
config.time_zone = "Kyiv" | ||
# config.time_zone = "Central Time (US & Canada)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
де таймзона?)))
config/application.rb
Outdated
config.i18n.available_locales = [:en, :uk] | ||
config.i18n.default_locale = :en | ||
|
||
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "**", "*.{rb,yml}")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а це чому видалила?
config/environments/production.rb
Outdated
# config.action_mailer.raise_delivery_errors = false | ||
|
||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to | ||
# the I18n.default_locale when a translation cannot be found). | ||
config.i18n.fallbacks = true | ||
|
||
# Send deprecation notices to registered listeners. | ||
config.active_support.deprecation = :notify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
повертай
config/environments/production.rb
Outdated
config.logger = ActiveSupport::Logger.new($stdout) | ||
.tap { |logger| logger.formatter = ::Logger::Formatter.new } | ||
.then { |logger| ActiveSupport::TaggedLogging.new(logger) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
це не гуд взагалі, глянь, як було, раніше була умова на цей конфіг
06ed92a
to
9ce562f
Compare
Gemfile
Outdated
gem "rubocop-factory_bot" | ||
gem "rubocop-capybara" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require false
config/environments/test.rb
Outdated
|
||
# Show full error reports and disable caching. | ||
config.consider_all_requests_local = true | ||
config.action_controller.perform_caching = false | ||
config.cache_store = :null_store | ||
|
||
# Raise exceptions instead of rendering exception templates. | ||
# Render exception templates for rescuable exceptions and raise for other exceptions. | ||
config.action_dispatch.show_exceptions = :none |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
через цю штуку тести падають
03a3caf
to
7d2dc81
Compare
dev
Code reviewers
Summary of issue
Update Ruby on Rails to latest
Summary of change
Updated Ruby on Rails to 7.2.0
CHECK LIST