-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Children() not returning items in the right order #17844
Comments
Hi there @enkelmedia! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Talking with @elit0451 about this, this seems like a bug, but it's weird, as we do call Umbraco-CMS/src/Umbraco.Core/Services/Navigation/ContentNavigationServiceBase.cs Line 366 in a582732
Which returns by sortorder: Umbraco-CMS/src/Umbraco.Core/Services/Navigation/ContentNavigationServiceBase.cs Line 585 in a582732
Are you able to reproduce this on a clean install ? 😁 |
@Zeegaan if you retrieve from db(or cache), order will change, so most likely you should order after converting IPublishedContent, not before :), there is no warranty on order when retrieving from storage. |
@Zeegaan I have not seen it before when playing with v15, this was my first upgrade. I don't have a clear reproduction case from a clean install at the moment. |
@enkelmedia what storage for hybrid cache are you using? as if sql, there quite chance it does randomly order items :) |
Prying special here, just ”vanilla” config as in installing the Umbraco Template with dotnet new and point to the SQL server db |
Which Umbraco version are you using?
15.1.1
Bug summary
After inspirational information from @bergmania about the performance of the new Hybrid Cache I decided to spend some time migrating a site that have about 10k nodes. Impressive improvements, startup time -30-40% and memory footprint -50%.
The first thing i noticed was that the menu was not sorted in the same way as in the backoffice. We create the menu like this:
The order in which the nodes were returned is not the same as in the backoffice, but adding
OrderBy(x=>x.SortOrder)
solves the problem:I did try to rebuild the database cache (Settings -> Published Status) and reload the memory cache.
Is this intended behavior or is something wrong? :)
Specifics
The site was upgraded from v13.5.1 and this worked fine.
Steps to reproduce
See above.
Expected result / actual result
No response
This item has been added to our backlog AB#47319
The text was updated successfully, but these errors were encountered: