Previously only ping and welcome message types were keeping the connection active.
Now every Action Cable message updates the pingedAt value, preventing the connection
from being marked as stale.
yauhenininjia
Add two new assertion methods for Action Cable test cases: assert_has_no_stream
and assert_has_no_stream_for.
These methods can be used to assert that a stream has been stopped, e.g. via
stop_stream or stop_stream_for. They complement the already existing
assert_has_stream and assert_has_stream_for methods.
Include the HTTP Permissions-Policy on non-HTML Content-Types
[CVE-2024-28103]
Aaron Patterson, Zack Deveau
Fix Mime::Type.parse handling type parameters for HTTP Accept headers.
Taylor Chaparro
Fix the error page that is displayed when a view template is missing to account for nested controller paths in the
suggested correct location for the missing template.
Joshua Young
Add save_and_open_page helper to IntegrationTest.
save_and_open_page is a helpful helper to keep a short feedback loop when working on system tests.
A similar helper with matching signature has been added to integration tests.
Joé Dupuis
Fix a regression in 7.1.3 passing a to: option without a controller when the controller is already defined by a scope.
Rails.application.routes.draw do
controller :home do
get "recent", to: "recent_posts"
end
end
Étienne Barrié
Request Forgery takes relative paths into account.
Stefan Wienert
Add ".test" as a default allowed host in development to ensure smooth golden-path setup with puma.dev.
DHH
Add allow_browser to set minimum browser versions for the application.
A browser that's blocked will by default be served the file in public/406-unsupported-browser.html with a HTTP status code of "406 Not Acceptable".
All tests now respect the active_job.queue_adapter config.
Previously if you had set config.active_job.queue_adapter in your config/application.rb
or config/environments/test.rb file, the adapter you selected was previously not used consistently
across all tests. In some tests your adapter would be used, but other tests would use the TestAdapter.
In Rails 7.2, all tests will respect the queue_adapter config if provided. If no config is provided,
the TestAdapter will continue to be used.
Make Active Job transaction aware when used conjointly with Active Record.
A common mistake with Active Job is to enqueue jobs from inside a transaction,
causing them to potentially be picked and ran by another process, before the
transaction is committed, which may result in various errors.
Topic.transaction do
topic = Topic.create(...)
NewTopicNotificationJob.perform_later(topic)
end
Now Active Job will automatically defer the enqueuing to after the transaction is committed,
and drop the job if the transaction is rolled back.
Various queue implementations can choose to disable this behavior, and users can disable it,
or force it on a per job basis:
class NewTopicNotificationJob < ApplicationJob
self.enqueue_after_transaction_commit = :never # or `:always` or `:default`
end
Jean Boussier, Cristian Bica
Do not trigger immediate loading of ActiveJob::Base when loading ActiveJob::TestHelper.
Maxime Réty
Preserve the serialized timezone when deserializing ActiveSupport::TimeWithZone arguments.
Fix a bug where type casting of string to Time and DateTime doesn't
calculate minus minute value in TZ offset correctly.
Akira Matsuda
Port the type_for_attribute method to Active Model. Classes that include
ActiveModel::Attributes will now provide this method. This method behaves
the same for Active Model as it does for Active Record.
Handle commas in Sqlite3 default function definitions.
Stephen Margheim
Fixes validates_associated raising an exception when configured with a
singular association and having index_nested_attribute_errors enabled.
Martin Spickermann
The constant ActiveRecord::ImmutableRelation has been deprecated because
we want to reserve that name for a stronger sense of "immutable relation".
Please use ActiveRecord::UnmodifiableRelation instead.
Xavier Noria
Add condensed #inspect for ConnectionPool, AbstractAdapter, and
DatabaseConfig.
Hartley McGuire
Fixed a memory performance issue in Active Record attribute methods definition.
Jean Boussier
Define the new Active Support notification event start_transaction.active_record.
This event is fired when database transactions or savepoints start, and
complements transaction.active_record, which is emitted when they finish.
The payload has the transaction (:transaction) and the connection (:connection).
Xavier Noria
Fix an issue where the IDs reader method did not return expected results
for preloaded associations in models using composite primary keys.
Jay Ang
The payload of sql.active_record Active Support notifications now has the current transaction in the :transaction key.
Xavier Noria
The payload of transaction.active_record Active Support notifications now has the transaction the event is related to in the :transaction key.
Xavier Noria
Define ActiveRecord::Transaction#uuid, which returns a UUID for the database transaction. This may be helpful when tracing database activity. These UUIDs are generated only on demand.
Bumps the bundler-all group with 4 updates in the / directory: redis-store, actioncable, aws-partitions and aws-sdk-core.
Updates
redis-store
from 1.10.0 to 1.11.0Release notes
Sourced from redis-store's releases.
Changelog
Sourced from redis-store's changelog.
Commits
2d8b05a
Bump to 1.11.0ac9596e
Merge pull request #374 from stanhu/sh-fix-empty-useraf50bc8
Fix handling of default username7124c69
Merge pull request #373 from stanhu/sh-support-redis-acl77e0b0c
Add Redis ACL support for UNIX domain sockets675677f
Support Redis usernames11f7f8e
Merge pull request #372 from PikachuEXE/ci/more-rubyb09e914
! Fix option key typo in publish workflow6337cce
^ Update actions/checkout v3 > v4585d05f
* Make lint & publish run on ruby 3.3Updates
actioncable
from 7.1.3.4 to 7.2.0Release notes
Sourced from actioncable's releases.
... (truncated)
Changelog
Sourced from actioncable's changelog.
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release77ad559
Merge pull request #52239 from skipkayhil/hm-fix-markup-in-template9b63450
Preparing for 7.2.0.beta3 release85630de
Add a comment for dirname vs dir usage69cee18
Fix Action Cable loader path prefixb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelog46f0dd0
Merge pull request #51979 from justinko/actioncable-changelog33bd507
Merge pull request #51980 from justinko/no-doc-actioncable-test-cookiesUpdates
actionmailbox
from 7.1.3.4 to 7.2.0Release notes
Sourced from actionmailbox's releases.
... (truncated)
Changelog
Sourced from actionmailbox's changelog.
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release9b63450
Preparing for 7.2.0.beta3 releaseb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelog9098f53
Preparing for 7.2.0.beta1 release7263da5
DeprecateConnectionPool#connection
96be090
Fix typos676fe1b
AddressDefining enums with keyword arguments
warning in Action Mailbox8565f45
Use relative includes of README's in documentation [ci-skip]Updates
actionmailer
from 7.1.3.4 to 7.2.0Release notes
Sourced from actionmailer's releases.
... (truncated)
Changelog
Sourced from actionmailer's changelog.
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release9b63450
Preparing for 7.2.0.beta3 releasecffb846
Merge pull request #52199 from rubys/rubocop-mailer-generatorb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelog9098f53
Preparing for 7.2.0.beta1 release041de49
Remove usage ofOpenStruct
50515fb
Add more ostruct requires154f7c2
Register autoload for ActiveJob::ArgumentsUpdates
actionpack
from 7.1.3.4 to 7.2.0Release notes
Sourced from actionpack's releases.
... (truncated)
Changelog
Sourced from actionpack's changelog.
... (truncated)
Commits
fb6c430
Preparing for 7.2.0 release0b3404e
Merge pull request #52531 from n-studio/allow-bots41d50f4
Preparing for 7.2.0.rc1 release3ce715b
Don't claim compatibility with unknown future Rack releases9b63450
Preparing for 7.2.0.beta3 release850d692
Merge pull request #50063 from skipkayhil/hm-doc-metala38f2dc
Merge pull request #52225 from Earlopain/rdoc-hanging3b5cc63
Merge pull request #52185 from Shopify/vs/turn_action_controller_inclusions_e...549859e
Merge pull request #52172 from yahonda/selenium-webdriver-42207358948
Merge pull request #52096 from ioquatix/rack-invalid-cookie-keyUpdates
actiontext
from 7.1.3.4 to 7.2.0Release notes
Sourced from actiontext's releases.
... (truncated)
Changelog
Sourced from actiontext's changelog.
... (truncated)
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release9b63450
Preparing for 7.2.0.beta3 release09839ee
Merge pull request #52093 from p8/actiontext/fix-remote-image-preview811eec7
Fix action-text-attachment HTML escaping regression test1dc99d3
Add author to changelog entryb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelog72a5225
Sanitize ActionText HTML ContentAttachment in Trix edit viewd6aef44
Point activestorage npm package to the same releaseUpdates
actionview
from 7.1.3.4 to 7.2.0Release notes
Sourced from actionview's releases.
... (truncated)
Changelog
Sourced from actionview's changelog.
... (truncated)
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release9b63450
Preparing for 7.2.0.beta3 release7c61bbd
Fix changelog formatting03054bf
Fix changelog formattingd3016bb
Merge pull request #52205 from Shopify/local-assigns-strict-locals76c6a11
Merge pull request #52024 from Earlopain/explicit-logger-depb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelogfcec475
Link should be separated by comma.Updates
activejob
from 7.1.3.4 to 7.2.0Release notes
Sourced from activejob's releases.
... (truncated)
Changelog
Sourced from activejob's changelog.
... (truncated)
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release0b1bb95
Merge pull request #52301 from y-yagi/fix_enqueue_after_transaction_commit_wi...3c04fb0
Merge pull request #52484 from excid3/fix-enqueue-after-transaction-commit-in...9b63450
Preparing for 7.2.0.beta3 releasee06cd70
Merge pull request #49854 from skipkayhil/hm-document-aj-loggerb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelog4e7f801
Fix deprecation horizon to be8.0
9098f53
Preparing for 7.2.0.beta1 releaseUpdates
activemodel
from 7.1.3.4 to 7.2.0Release notes
Sourced from activemodel's releases.
... (truncated)
Changelog
Sourced from activemodel's changelog.
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release79ea9f6
Merge pull request #52443 from Shopify/optimize-fast_string_to_time9b63450
Preparing for 7.2.0.beta3 release9d9ec1c
Merge pull request #52145 from Shopify/alias-attribute-override-inherited-met...e564f29
Merge pull request #52118 from Shopify/fix-code-generator-bloatb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelog9098f53
Preparing for 7.2.0.beta1 release7026382
Fix tests without assertions in the frameworkUpdates
activerecord
from 7.1.3.4 to 7.2.0Release notes
Sourced from activerecord's releases.
... (truncated)
Changelog
Sourced from activerecord's changelog.
... (truncated)
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 releasea2ec4a7
Merge pull request #52363 from eugeneius/autosave_has_one_loaded6be58c9
Merge pull request #51889 from fatkodima/db_prepare-migration-ordering43530b4
Merge pull request #52500 from GarrisonD/main5cb5cad
Merge pull request #50838 from fractaledmind/ar-fix-sqlite-table-structure-pa...9c87c23
Fix indexed nested error for singular associations229308d
Merge pull request #52402 from jhawthorn/avoid_extra_pings1b89033
Merge pull request #52359 from fatkodima/fix-find_or_initialize_by-for-cpk-as...8035bec
Merge pull request #52322 from fatkodima/fix-loaded-relation-batchingUpdates
activestorage
from 7.1.3.4 to 7.2.0Release notes
Sourced from activestorage's releases.
... (truncated)
Changelog
Sourced from activestorage's changelog.
... (truncated)
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release9b63450
Preparing for 7.2.0.beta3 releaseb752c38
Preparing for 7.2.0.beta2 release4d38eb8
update changelog9098f53
Preparing for 7.2.0.beta1 release8815475
Merge pull request #51931 from justinko/issue-51882799d942
Merge pull request #51907 from higher-pixels/no-doc-preview-image-needed32e8583
7-2-stable changelog pass0cf8444
Remove deprecatedconfig.active_storage.silence_invalid_content_types_warning
Updates
activesupport
from 7.1.3.4 to 7.2.0Release notes
Sourced from activesupport's releases.
... (truncated)
Changelog
Sourced from activesupport's changelog.
... (truncated)
Commits
fb6c430
Preparing for 7.2.0 release41d50f4
Preparing for 7.2.0.rc1 release9fb8863
Merge pull request #52473 from r7kamura/securerandom-base36