-
Notifications
You must be signed in to change notification settings - Fork 463
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 options storage #628
Conversation
@kshnurov Were you thinking the |
I can reopen and rebase #600 of you're up to merge it. I don't understand the goal of splitting commits thought.
All of them, so you can check how ancestry is setup anywhere in your code and act based on that. Having |
Sure, you can open another PR, bless this PR - what ever works for you.
I make a few hundred PRs a year, and I merge more than that. So in a few years, it is hard to remember why a change is made. Sometimes a specific change is intentional, and other times it is just the first solution that works or even a typo that still passes the tests. So when debugging, it is helpful to include as much context around intent. For me, keeping move, search replace, and changes in logic in separate commits provides context. Introducing tests in a commit before a change, and then showing what the code changes in the results provides context, too. I'm sure you have rules of your own. In 10 years, ruby, rails, and use cases have changed quite a lot. Features for this product have as well. So bugs creep in. Every little bit of documentation around intent is helpful in squashing these bugs. For this PRRemoving the instance variable of Example: - self.base_ancestry_class.none
+ self.class.none
...
- self.ancestry_base_class.siblings_of(self)
+self.class.ancestry_base_class.siblings_of(self) Is that first one supposed to be Making this in its own commit feels like over kill, but it is a way to highlight the fact that there is an intentional change here. I mean, this change is very subtle. Maybe future versions of rails changes |
Unfortunately this lost steam. |
This is #600 rebased and with commits split up/flattened.
ancestry_column
orancestry_delimiter
accessors in the docs, this will be a breaking change for developers, so lets bump a major version.@kshnurov Please let me know if you feel this does not accurately reflect your previous PR
I was having trouble splitting apart your commits and still giving you attribution