fix: Remove sorting from pageable in favorite applications list - MEED-10293 - Meeds-io/meeds#4112#580
Merged
Jihed525 merged 1 commit intostable/7.1.x-exofrom Apr 1, 2026
Merged
Conversation
…D-10293 - Meeds-io/meeds#4112 (#576) Prior to this change, when the page size is not = 0 then an error is raised in logs: ``` java.lang.IllegalArgumentException: org.hibernate.query.sqm.UnknownPathException: Could not resolve attribute 'createdAt' of 'io.meeds.appcenter.entity.ApplicationEntity' [SELECT new FavoriteApplicationEntity(favoriteApp.id, app, favoriteApp.userName, favoriteApp.order, favoriteApp.favorite) FROM ApplicationEntity app LEFT JOIN FavoriteApplicationEntity favoriteApp ON app.id = favoriteApp.application.id AND favoriteApp.userName = :userName WHERE app.active = TRUE AND (app.isMandatory = TRUE OR (favoriteApp.id IS NOT NULL AND favoriteApp.favorite = TRUE) OR (favoriteApp.id IS NULL AND app.isDefault = TRUE)) ORDER BY favoriteApp.order NULLS LAST, app.order NULLS LAST, app.isMandatory DESC, app.createdAt desc] ``` The field `createdAt` doesn' t exist in JPA Entity `ApplicationEntity` which causes this error. This change will remove the default pageable sort default options to avoid fetching non existant field. (cherry picked from commit 68a2a1b)
boubaker
approved these changes
Apr 1, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Prior to this change, when the page size is not = 0 then an error is raised in logs:
The field
createdAtdoesn' t exist in JPA EntityApplicationEntitywhich causes this error. This change will remove the default pageable sort default options to avoid fetching non existant field.(cherry picked from commit 68a2a1b)