Repository navigation
Conversation
_get_allowed_ids() returns a set, so the access filter of _search lost the order of the query: the list was not sorted as requested for anyone who is not a superuser. Filter the ordered ids instead, as mail.message does. Assisted-by: Claude Opus 5.5
skanndar
force-pushed
the
19.0-fix-mail_tracking-search-order
branch
from
December 1, 2026 15:54
c9b2227 to
ae7c65c
Compare
Contributor
Author
|
@moylop260 This PR touches the same |
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.
_get_allowed_ids()returns a set, so the access filter ofMailTrackingEmail._searchloses the order of the query: for non-superusers, the list is not sorted as requested.Filter the ordered ids instead, as core's
mail.messagedoes. The test covers the list order and an ungrouped_read_group.Assisted-by: Claude Opus 5.5