-
Notifications
You must be signed in to change notification settings - Fork 239
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
Added dont_order_roots option #312
Added dont_order_roots option #312
Conversation
Crap, will get those tests fixed and resubmit. Was working locally, hmm. |
4d3f3e4
to
31c9e56
Compare
Gosh, I'm having a real hard time replicating those two spec failures on my local machine. Here is what I tried (for the second one, on 2.3.6):
All the above produce nothing but green. Any ideas? |
025939f
to
7d82209
Compare
I ran the specs again last night and two jobs failed again, but they were different jobs! So something intermittent is going on here. Still can't reproduce on my local. I just added a bunch of debug outputs and am running the specs again on Travis. |
7d82209
to
29c06c6
Compare
OK I think I found the issue -- I needed to call reload a few times in the test setup. Hopefully all should pass now... |
29c06c6
to
a8a41f9
Compare
spec/label_spec.rb
Outdated
[@a, @c, @d].each(&:reload) | ||
|
||
@a.append_sibling(@b) | ||
[@a, @c, @d, @b].each(&:reload)s |
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.
looks like the extra s is a typo
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.
How in the name of ...
I swear I ran this locally... anyway incoming...
a8a41f9
to
309c009
Compare
Yes!!! |
Nice! |
From the proposed Readme text:
By default, root nodes are also assigned order values globally across the whole database table. So for instance if you have 5 nodes with no parent, they will be ordered 0 through 4 by default. If your model represents many separate trees and you have a lot of records, this can cause performance problems, and doesn't really make much sense.
This PR adds an option for disabling this behavior.
This was proposed in issue #282.