Fix position when no serial positions#223
Fix position when no serial positions#223brendon merged 5 commits intobrendon:masterfrom jpalumickas:fix-not-serial-positions
Conversation
Conflicts: lib/acts_as_list/active_record/acts/list.rb
|
@brendon There is one test failing, I think it's random fail, can you restart a build for this pull request ? |
|
I restarted a build with amend, now it's passing. It was a random fail. |
| acts_as_list_class.transaction do | ||
| lower_item.decrement_position | ||
| increment_position | ||
| if lower_item.send(position_column) != self.send(position_column) |
There was a problem hiding this comment.
Just wondering with these methods. Do we need the branching here. Could the first branch not handle all situations (i.e. consecutive numbering and non-consecutive?)
There was a problem hiding this comment.
Yes, it is possible, but didn't want to change the default behaviour, just handle "non-consequence" branch, so consider that as a refactor :).
|
Thanks @jpalumickas, I just had a couple of queries. If we can settle those then I think this can be merged :) Closes #208 (replaced by this PR). |
|
Just a note. I have another possibly compatibility-breaking change here: #220 so it might make sense to bump the minor version to 0.8.0 to take both of these two changes into account. At least people will then double-think blindly upgrading. We should probably document these changes in the README with an upgrade message. |
|
Agree on both counts, version bump and doc updates On Sun, Aug 21, 2016 at 2:13 PM, Brendon Muir [email protected]
|
|
0.8.0 has been released and includes this change. |
|
Perfect, thanks 👍 |
|
Nice 👍 |
Opened branch from #208 to fix tests and rebase to master branch.
Can you take a look @brendon ?