Skip to content
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

refactor: rename checkFleeStopAction -> checkFleeContinueAction #104

Merged
merged 3 commits into from Apr 20, 2022

Conversation

Jacob-Rueckert
Copy link
Contributor

@Jacob-Rueckert Jacob-Rueckert commented Apr 5, 2022

Changed the name of the Function
The Function name was irritating due to it giving a True for a Return.
While the Value was used to Continue the Function.

Therefore having the Function named CheckFleeStopAction was irritating and i changed it to CheckFleeContinueAction

irritating implementation in critter behaviour
@Jacob-Rueckert Jacob-Rueckert added the Type: Refactoring Request for or implementation of pure and automatic refactorings, e.g. renaming, to improve clarity label Apr 5, 2022
Copy link
Contributor

@skaldarnar skaldarnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change itself is good, I'm just being a bit picky about PR description and required follow-ups before we get this merged 🙃

Regarding the PR description:

irritating implementation in critter behaviour

You'll usually start off with noting what you changed, and why. The sentence above covers the first layer of why, but poses more questions for your reviewers: What was irritating about the name? Why was it misleading?

The second thing is that this action is (potentially) used in other modules. I can see two ways to address this here:

  • a) add a note to the PR that this is an incompatible or breaking change, and that consuming modules will have to adjust their reference for this rename
  • b) directly make the required changes in other modules, commit them to respective PRs, and then link back to this PR.

We already discussed that we want to go for option b. To reference another PR, you can just post the link (https://github.com/Terasology/Behaviors/pull/104) in the issue description, and GitHub will automatically create a back reference. It will also render it nicely, like #104.

Jacob-Rueckert added a commit to Terasology/WildAnimals that referenced this pull request Apr 19, 2022
body: changing depending function names from previous commit
      CheckFleeStopAction was used Twice in wildanimals
      with original Function now called CheckFleeContinueAction it needed a change

footer: mentioned commit is Terasology/Behaviors#104
@skaldarnar skaldarnar merged commit c491071 into develop Apr 20, 2022
@skaldarnar skaldarnar deleted the refactor/renamed_check_flee_stop branch April 20, 2022 19:55
skaldarnar pushed a commit to Terasology/WildAnimals that referenced this pull request Apr 20, 2022
@Jacob-Rueckert Jacob-Rueckert self-assigned this Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Refactoring Request for or implementation of pure and automatic refactorings, e.g. renaming, to improve clarity
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants