Contributions
Shaping the tools I use every day, one pull request at a time
A hand-picked selection: only the contributions worth reading about, not every merged pull request.
Eliminate the need for inheritance in action controllers — on GitHub
Every frontend controller had to extend AbstractAction, which made the class hierarchy the only extension point. Dispatching of controller_predispatch moved into a plugin, so a controller now only has to implement ActionInterface. 44 files, and the start of the whole controller decomposition effort with Vinai Kopp and Lena Orobei.
Stop a fatal error when a product image has no configured size — on GitHub
With image_width and image_height missing from the image parameters, getRatio produced a fatal error rather than a missing thumbnail. Values now fall back to zero, covered by a unit test.
Group the Ordered Products report by SKU — on GitHub
Every variation of a configurable product collapsed into one row, so a merchant could see the product sold but never which size or colour. Grouping by SKU, with an index added to keep the query in check.
Get rid of array_merge inside loops — on GitHub
foreach () { $x = array_merge($x, ...); } reallocates the whole array on every iteration — quadratic by construction. Rewritten across 42 files.
Fix the random autoloader failure in integration tests — on GitHub
Integration runs failed intermittently with Call to a member function findFile() on array whenever the autoloader had not been registered as expected. The kind of flake that gets rerun for months instead of read.
Add the <magentoCron> test action — on GitHub
Functional tests waited on real cron or faked it with CLI calls. A first-class action that runs cron groups and respects the 60-second interval between runs of the same group.
Refactor the TestGenerator class — on GitHub
The class that turns XML tests into PHP was the least readable and one of the slowest parts of the framework. Same output, far less to hold in your head.
Stop one unit test sleeping 30 seconds on every run — on GitHub
ConsumerRunnerTest took 30.002 seconds, of which 30 were a hardcoded sleep. The interval is now injected and set to zero in the test — everyone running the unit suite locally got those 30 seconds back.
Make the missing EAV attribute warning aggregatable — on GitHub
Reindex logged a padded multi-line warning per missing attribute, so every entry was a unique string and no log tool could group them. Short message, attribute id and entity type moved into the log context.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub.
Write
{{AdminLoginPage}}instead of{{AdminLoginPage.url}}and MFTF navigated to the literal placeholder string, failing several steps later with an error that pointed nowhere. Now it throws where the mistake actually is.