Releases: Shopify/maintenance_tasks
Releases · Shopify/maintenance_tasks
Maintenance Tasks v1.7.0
This release brings optimistic locking to the gem to handle race conditions. In order to opt into optimistic locking, you'll need to run the necessary migration to add a lock_version column to your maintenance_tasks_runs table. See instructions in the README to learn more about copying gem migrations to your app.
New features
- Render task default attributes on the form by @nvasilevski in #532
- Allow backoff to be specified via a proc by @adrianna-chang-shopify in #547
- Render type-specific fields for attributes by @ryanwilsonperkin in #540
- Ruby 3.1 support by @etiennebarrie in #556
Deprecations
- Deprecate classic autoloading by @gmcgibbon in #531
Bug Fixes
- Support Sorbet-annotated task code display in task UI by @tyetraskshopify in #524
- Race conditions now handled via optimistic locking by @adrianna-chang-shopify in #549
Other Changes
- Move Task instantiation to TaskData by @etiennebarrie in #537
- Move callback handling to Run by @etiennebarrie in #552
New Contributors
- @tjwp made their first contribution in #525
- @tyetraskshopify made their first contribution in #524
- @nvasilevski made their first contribution in #532
- @ryanwilsonperkin made their first contribution in #542
- @larouxn made their first contribution in #550
- @promulo made their first contribution in #560
Full Changelog: v1.6.0...v1.7.0
Version v1.6.0
MaintenanceTasks v1.5.0
New features
- Allow custom backtrace cleaners to be configured. #453
- Show Task Run's arguments in the UI. #455, #460
Fixes
- Remove status transition of
paused=>cancelledfrom valid transitions. #434 - Document how to upgrade the gem when migrations have been deleted. #442
- Add reusable stuck tasks constant. #448
- Persist
job_idto theRunbefore it is enqueued. #451 #459 - Add time spent running to Task show page. #452
- Remove n+1 query for active storage attachments on index page. #461
MaintenanceTasks v1.4.0
MaintenanceTasks v1.3.0
MaintenanceTasks v1.2.2
MaintenanceTasks v1.2.1
Fixes
Preserve compatibility with apps using Rails versions < 6.1 when calling .has_one_attached in Run. #385
MaintenanceTasks v1.2.0
New features
- The Active Storage service used for storing CSV files can now be configured in the gem. #372
- Make progress information available in the info card, rather than in the title attribute of the progress bar. #377
Fixes
- Minimum accepted version used in
ActiveRecord::Migrationclasses. #367 - Handle scenario where there is no
runobject when an error is raised and rescued withinTaskJob. #375
Other Changes
- Pagy removed as a dependency. Runs are now paginated using cursor-based pagination. #371
MaintenanceTasks v1.1.2
Fixes
- Avoid errors due to
active_storage_attachmentstable not existing if app doesn't have Active Storage set up. #359
MaintenanceTasks v1.1.1
Fixes
- Support for Rails application with
config.include_all_helpers = false. #337 – @shouichi - Fix duplicated timestamps in individual Task page view. #338
- Fix race conditions due to callback ordering by postponing the reenqueue of the job. #335, #345
- Remove redundant index on runs table. #342, #346
- Avoid using
private_constant. #314, #344 - Fix support for the classic autoloader. #347, #351
- Prevent
Task.namedfrom returning constants that are notTaskclasses. #348, #349 - Don't show indefinite progress bar when Task finishes. #353