-
-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify autogenerated boilerplate upgrader class #22225
Conversation
(Standard links)
|
@totten I can't remember how to actually run this. Can you please |
It's generated by
I can confirm that the above procedure still appears OK. On the general merits... I am concerned that the signatures/lifecycles for the methods in OTOH, I think your point here is good wrt readers and overall readability - eg looking back over a list of 40+ of these classes, all the comments make it harder to focus-in on the things which are distinctive. The concerns about writing could perhaps be mitigated by improving the docblocks in the base-class to include or link-to examples. |
b1e8b37
to
e1eb6c6
Compare
e1eb6c6
to
3bef53f
Compare
Thanks. I was able to run it myself following that tip.
Yea the upgrade classes are still a bit screwy.
Not anymore! #22226
I think the biggest gotcha is in the comment |
The |
😃
Exactly. I've pushed up some docblocks to replace the examples. I'm OK with merge-on-pass here. |
c7ba055
to
76a2bc7
Compare
Overview
De-clutters our autogenerated upgrader classes.
Before
Every month we autogenerate a file full of unnecessary boilerplate.
After
Simpler