Skip to content
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

Feature/sort logging #4794

Closed
wants to merge 3 commits into from

Conversation

infoShare
Copy link

Incorrect sort logging introduced on #4686.
Logging query instead of sort.

@mp911de Could you please verify ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 25, 2024
@mp911de
Copy link
Member

mp911de commented Sep 25, 2024

Care to rebase your PR as it contains merge commits?

@mp911de mp911de self-assigned this Sep 25, 2024
@mp911de mp911de removed the status: waiting-for-triage An issue we've not yet triaged label Sep 25, 2024
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 25, 2024
@@ -2559,8 +2561,8 @@ protected <T> T doFindOne(String collectionName, CollectionPreparer<MongoCollect
* @return the List of converted objects.
*/
protected <T> List<T> doFind(String collectionName, CollectionPreparer<MongoCollection<Document>> collectionPreparer,
Document query, Document fields, Class<T> entityClass) {
return doFind(collectionName, collectionPreparer, query, fields, entityClass, null,
Document query, Document fields, Document sort, Class<T> entityClass) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot simply change the signature of our API. With sort being an essential part for query logging, we might consider reworking QueryCursorPreparer to remove sorting from the preparer and putting it into method signatures.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mp911de - this PR was just to show what is the problem. The easiest way was to show what was incorrectly logged.

@infoShare infoShare closed this by deleting the head repository Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants