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

Order of elements in a field of type list of micronodes is not preserved (when 40 or more elements) #469

Closed
cschockaert opened this Issue Jul 12, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@cschockaert

cschockaert commented Jul 12, 2018

Gentics Mesh Version, operating system, or hardware.

  • v0.24.4

Operating System

  • MacOSX

JVM

Problem

A list of micronode in a node is shuffled when 40 or more elements in it:

Reproducer

Create a simple node schema with 1 field pointing to a LIST of microschema (with for eg one text/number field)

create 39 element in the list
save --> order is preserved

image

add 1 element (40 element in the list)
image

save --> order is lost
image

after some debug in local i see that the micronode list is still in the same order when saving it
but when retreiving it to rest model it's wrong order
perhaps addItem in graph with ferma is bugged after 40 items

Expected behaviour and actual behaviour

order must be preserved

@Jotschi

This comment has been minimized.

Member

Jotschi commented Jul 12, 2018

This is a known issue and we already have a test to reproduce it. #84
It is on the roadmap for 1.0.
The list items are stored without any order and after a certain size the order changes / is mangled.
You may also encounter this problem in other lists (except basic lists like number, boolean, string).
We already have a plan to address this. Thanks for the report.

@Jotschi Jotschi closed this in 431ce2a Jul 13, 2018

@Jotschi

This comment has been minimized.

Member

Jotschi commented Jul 13, 2018

Released with 0.21.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment