Serious error in new collection editor when reordering with more than 40 items

JimCarnicelli
Contributor III

Overall the new collection editor works fairly well. But things get screwy when you have more than 40 items. You'll see a "Load More Items" button. Which mostly works. I do notice some duplication. Item #41 is identical to item #40. Probably a minor array index error in the code. But if I then try to reorder items via drag and drop things go haywire. Probably related to that index problem. I end up seeing apparent clones of the item I'm dragging. And eventually the page goes blank with only the header visible. I have to refresh the browser. Thankfully the clones such seen during manual ordering don't appear in the actual publicly visible page.

Technical note. As mentioned, this bug probably is a consequence of an array indexing issue. Let's say you enumerate the items on the first page as 1 - 40. But then on the second page you enumerate as 40 - 79. You would see the duplicate of item 40 as though it were item 41. And using a 1-based index with 0-based algorithms could cause all the cloning and screwy sorting behaviors. And attempting to move an item past the last array index could cause a runtime error that results in the page getting cleared. If I am right about this being the source of this bug then it should be easy to fix.

4 REPLIES 4

Jadendreamer13
Valued Contributor III

#codemaster.

Scott
Community Manager
Community Manager

Engineering is aware and hopes to have this fixed very soon

k8hayes
Contributor II

"Things go haywire" doesn't begin to describe it. Today I am trying to push my just-added Halloween items to the top of my "Holidays" collection, and ... haywire! It hasn't worked yet; the item I'm trying to move is actually going back to the bottom at random as I'm dragging and dropping it, 3 rows at a time, toward the top. PLEASE put this closer to the top of your priority list! 

Scott
Community Manager
Community Manager

I'm locking this discussion before it becomes a series of unrelated but serious issues about collections.

As I've mentioned, this is something that engineering is working on, and we do hope to have a fix very soon.