-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Rename Command's "write" method to "apply" #8814
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
f55a027
to
e252ac9
Compare
e252ac9
to
646c07c
Compare
Looks great, thank you! I won't block on it, but let me add a suggestion to improve the docs further... |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
I would change the migration guide section in the PR body to be more concise and better fit a list format, as it is used to auto-generate the final migration guide in the changelog. A better wording would, in my opinion, be something along the following lines:
Also add this line to the migration guide:
And this line to the changelog:
As |
Done! |
/// | ||
/// This method is used to define what a command "does" when it is ultimately applied. | ||
/// Because this method takes `self`, you can store data or settings on the type that implements this trait. | ||
/// This data is set by the system or other source of the command, and then ultimately read in this method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the more detailed docs here!
Objective
Command::write
#8811 .Solution
Changelog
Command::write
has been changed toCommand::apply
EntityCommand::write
has been changed toEntityCommand::apply
Migration Guide
Command::write
implementations need to be changed to implementCommand::apply
instead. This is a mere name change, with no further actions needed.EntityCommand::write
implementations need to be changed to implementEntityCommand::apply
instead. This is a mere name change, with no further actions needed.