Releases: Shopify/maintenance_tasks
Releases · Shopify/maintenance_tasks
v2.4.0
What's New
- Add a no-collection option for rspec generator template by @Martin-Alexander in #911
- Introduce
list
command in CLI by @davidstosik in #914 - Allow force pause, when stuck pausing by @Schwad in #921, #929
What's Changed
- Fix loading all Tasks with namespace collision by @skipkayhil in #939
Documentation
- Mention that recurring tasks are a bad idea; fix minor typos by @noahgibbs in #908
- Make the deleted migrations section of the README linkable by @etiennebarrie in #919
Tests
- Fix test in Task with params example by @tlatsas in #909
- Fix timezone test by @etiennebarrie in #930
- Fix Chrome headless by @etiennebarrie in #936
- CI improvements by @etiennebarrie in #938
New Contributors
- @Martin-Alexander made their first contribution in #911
- @tlatsas made their first contribution in #909
- @skipkayhil made their first contribution in #939
Full Changelog: v2.3.3...v2.4.0
v2.3.3
What's Changed
- Support Rack 3 by renaming the name attributes of inputs by @etiennebarrie in #901
Using task parameters in v2.3.2 is broken on Rails 7.1 with Rack 3, this release fixes it. - Update maintenance_tasks README by @noahgibbs in #889
- Update readme with new pattern for metadata introduced in #873 by @cjavdev in #897
New Contributors
- @noahgibbs made their first contribution in #889
- @cjavdev made their first contribution in #897
Full Changelog: v2.3.2...v2.3.3
v2.3.2
What's Changed
- Update job-iteration requirement from ~> 1.3.6 to >= 1.3.6 by @dependabot in #874
- Avoid loading all tasks when first loading the CLI by @davidstosik in #877
- Rename
Task.available_tasks
to.load_all
and deprecate by @davidstosik in #878
Full Changelog: v2.3.1...v2.3.2
v2.3.1
What's fixed
- Evaluate metadata block in the context of the controller by @jennaleeb in #873
New Contributors
- @jennaleeb made their first contribution in #873
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- Add metadata to keep track on who initiated a run by @elfassy in #858
Using this feature require installing and running new migrations for the gem! Usebin/rails maintenance_tasks:install:migrations
, the new migration isadd_metadata_to_runs.maintenance_tasks
. - Avoid loading all tasks to validate a
Run#task_name
by @davidstosik in #866
New Contributors
- @davidstosik made their first contribution in #866
Full Changelog: v2.2.0...v2.3.0
v2.2.0
What's Changed
- Fix parameter name when creating a run fails due to an argument that's too long by @drcapulet in #813
- Add
parent_controller
configuration option by @shawnfrench in #819 - 2.7 EOL by @etiennebarrie in #827
- View fixes by @etiennebarrie in #828
- Don't generate a nonce by @etiennebarrie in #829
- Add helper text to datetime-local form fields by @adrianna-chang-shopify in #833
- Change cursor from bigint to string by @sambostock in #339
- fix tests using a non-production version of chrome in CI by @elfassy in #860
New Contributors
- @Schwad made their first contribution in #814
- @drcapulet made their first contribution in #813
- @shawnfrench made their first contribution in #819
- @elfassy made their first contribution in #860
Full Changelog: v2.1.1...v2.2.0
v2.1.1
Fixes
- Handle Rails 7.1 deprecation of TestFixtures#fixture_path by @etiennebarrie in #790
- Preserve inputs by only refreshing parts of the page by @etiennebarrie in #787
- Allow tasks to be loaded from nested task directories by @styrmis & @aileron in #809
New Contributors
Full Changelog: v2.1.0...v2.1.1
v2.1.0
What's Changed
- README fixes by @etiennebarrie in #721
- Remove EXISTS query on tasks#show by @etiennebarrie in #737
- Bump rubocop from 1.40.0 to 1.42.0 by @dependabot in #743
- Fix
Style/InvertibleUnlessCondition
by @etiennebarrie in #764 - Upgrade Bulma CSS from 0.9.3 to 0.9.4 by @larouxn in #770
- Fix input for decimal\float attributes via web form by @gdossantos in #773
- Use the newer
serialize
signature of Rails 7.1 if available by @casperisfine in #776
New Contributors
- @gdossantos made their first contribution in #773
- @casperisfine made their first contribution in #776
Full Changelog: v2.0.0...v2.1.0
Maintenance Tasks v2.0.0
We're excited to release v2.0 of the maintenance_tasks
gem! ✨ This release contains a couple breaking changes, and some exciting new features. Two highlights to note: (1) collection size for Active Record relations and arrays is now calculated automatically and (2) the gem now supports multiple runs per task.
Breaking Changes
- Drop support for error_handler lambdas with unsupported arities by @gmcgibbon in #623
- Drop support for MaintenanceTasks::Runner.new by @gmcgibbon in #624
- Drop support for classic autoloading by @gmcgibbon in #620
- Implicitly calculate collection size for Active Record Relations and Arrays by @adrianna-chang-shopify in #698
New Features
- Add support for CSV content from stdin in CLI by @promulo in #637
- Fail on invalid CSV content type by @george-ma in #651
- Add support for multiple runs per task by @promulo in #664, #667
Bug Fixes
- Use helper for HTML interpolation to fix compatibility with better-html by @etiennebarrie in #628
- Fix Batch CSV count off by one by @etiennebarrie in #643
- add an extra line in rspec template to avoid rubocop errors by @aditya-cherukuri in #653
- Handle job still existing for a cancelled run by @etiennebarrie in #672
- Don't rescue callback errors by @adrianna-chang-shopify in #689
Other Changes
- Document task object lifecycle by @etiennebarrie in #632
- Add typical workflow to README by @sambostock in #654
- Change tick columns to bigints by @sj26 in #663
- Use resourceful route for running a Task by @adrianna-chang-shopify in #691
- Split
TaskData
into two separate classes by @adrianna-chang-shopify in #696 - Reduce queries required for Runs pagination by @adrianna-chang-shopify in #700
New Contributors
- @aditya-cherukuri made their first contribution in #653
- @george-ma made their first contribution in #651
- @sj26 made their first contribution in #663
- @cursedcoder made their first contribution in #669
Full Changelog: v1.10.0...v2.0.0
Maintenance Tasks v1.10.3
Bug Fixes
- Handle job still existing for a cancelled run by @etiennebarrie in #672
- Don't rescue callback errors by @adrianna-chang-shopify in #689
Full Changelog: v1.10.2...v1.10.3