Fix JMAP: Email/query: Wrong sort order on hasKeyword, allInThreadHaveKeyword, and someInThreadHaveKeyword conditions
This commit is contained in:
17
CHANGELOG.md
17
CHANGELOG.md
@@ -17,13 +17,16 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If
|
|||||||
## Fixed
|
## Fixed
|
||||||
- JMAP conformance (pass the [jmap-test-suite](https://github.com/jmapio/jmap-test-suite) tests):
|
- JMAP conformance (pass the [jmap-test-suite](https://github.com/jmapio/jmap-test-suite) tests):
|
||||||
- Default calendars and address books are not subscribed by default.
|
- Default calendars and address books are not subscribed by default.
|
||||||
- Unchanged immutable `id` property is rejected on `/set`.
|
- `*/set`: Unchanged immutable `id` property is rejected on update.
|
||||||
- `filter: null` rejected as `notRequest` on `/query` and `/queryChanges`.
|
- `*/query` and `*/queryChanges`: null` rejected as `notRequest`.
|
||||||
- `Email/query` total miscount when `collapseThreads` is enabled.
|
- `Email/query`:
|
||||||
- `SearchSnippet/get` response structure.
|
* Total miscount when `collapseThreads` is enabled.
|
||||||
- `VacationResponse` singleton handling.
|
* Wrong sort order on `hasKeyword`, `allInThreadHaveKeyword`, and `someInThreadHaveKeyword` conditions.
|
||||||
- `EmailSubmission/set` must return `sendAt` and `undoStatus` in the created response.
|
* Non-standard header values are not searchable.
|
||||||
- `Thread/changes` never emits a container delete when a thread becomes empty.
|
- `SearchSnippet/get`: incorrect response structure.
|
||||||
|
- `VacationResponse/set`: incorrect singleton handling.
|
||||||
|
- `EmailSubmission/set`: return `sendAt` and `undoStatus` in the created response.
|
||||||
|
- `Thread/changes`: emit a container delete when a thread becomes empty.
|
||||||
- OIDC: Add default domain name to groups that are not email addresses.
|
- OIDC: Add default domain name to groups that are not email addresses.
|
||||||
- RocksDB: Enable blob garbage collection to reclaim disk space from deleted blobs.
|
- RocksDB: Enable blob garbage collection to reclaim disk space from deleted blobs.
|
||||||
|
|
||||||
|
|||||||
@@ -200,8 +200,8 @@ impl QueryResults {
|
|||||||
for comparator in &comparators {
|
for comparator in &comparators {
|
||||||
let (a, b, is_ascending) = match comparator {
|
let (a, b, is_ascending) = match comparator {
|
||||||
SearchComparator::DocumentSet { set, ascending } => (
|
SearchComparator::DocumentSet { set, ascending } => (
|
||||||
!set.contains(*a) as u32,
|
set.contains(*a) as u32,
|
||||||
!set.contains(*b) as u32,
|
set.contains(*b) as u32,
|
||||||
*ascending,
|
*ascending,
|
||||||
),
|
),
|
||||||
SearchComparator::SortedSet { set, ascending } => {
|
SearchComparator::SortedSet { set, ascending } => {
|
||||||
|
|||||||
Reference in New Issue
Block a user