The bi-annual Rails community survey is live!
 Your input is invaluable and will help the team at Planet Argon gather insight on the current state of

Ruby on Rails — Rails community survey, improved association validation errors and more

submited by
Style Pass
2024-05-10 08:00:07

The bi-annual Rails community survey is live! Your input is invaluable and will help the team at Planet Argon gather insight on the current state of the Rails community. Fill in the survey here. (And feel free to share with your teams). The survey will remain open until August 2nd, 2024, and the findings released shortly thereafter.

Fix index_errors and provide :nested_attributes_order mode This indexes the association validation errors based on the order received by nested attributes setter, and respects the reject_if configuration. This enables API to provide enough information to the frontend to map the validation errors back to their respective form fields.

Add flag to speed up multi-process test runs Add ENV[“SKIP_TEST_DATABASE_TRUNCATE”] flag to speed up multi-process test runs on large databases, when all tests run within default transaction. This cuts ~10 seconds from the test run of HEY when run by 24 processes against the 178 tables, since ~4,000 table truncates can then be skipped.

Replace allocations count by GC time in request logs Allocations count is often an interesting proxy for performance, but not necessarily the most relevant thing to include in request logs, given they aren’t a per thread metric, so the reporting is widely inaccurate in multi-threaded environments.

Leave a Comment