Repository navigation
Bug in SortableMixin - #1537
Bug in SortableMixin#1537crofty wants to merge 1 commit into
Conversation
|
I've done a git bisect and it appears to be this commit 66edb81 that introduced the bug. |
|
I'll take a look at this next week. @wagenet can you assign this to me? |
|
This is not a bug due to a cycle. It fails because the call to replace uses the index into the sortedArray to remove an element from the original array. If you reverse the ordering, it passes for this example because both arrays are in the same order/ |
|
Since we're refactoring this stuff I'm not sure if we'll end up merging this. As it is, it doesn't merge cleanly, but I'm not sure if more time should be spent on it anyway. |
|
Closing due to inactivity. Hopefully @igorT's proposed improvements to this area will help. |
|
@wagenet please can you reopen this PR? I have verified that this is still an issue on master. The commit that adds the failing test is here: crofty@8b4ac3c |
|
This is now fixed. |
adjust benchmark close to real-life usage
There is a bug in the SortableMixin, there is a failing test that demonstrates it below.
This test fails as all items are removed from the array proxy, the expected result is that only one item is removed.