Benoit Tellier created JAMES-3417:
-------------------------------------

             Summary: Email/query sort by size/from/to/subject
                 Key: JAMES-3417
                 URL: https://issues.apache.org/jira/browse/JAMES-3417
             Project: James Server
          Issue Type: Sub-task
          Components: JMAP
            Reporter: Benoit Tellier
            Assignee: Antoine Duprat



=== WHY 

With the new specifications as an user i want to be able to sort by 'size' and 
'from', 'to' and 'subject' properties, like this : 

{code:java}
[[ "Email/query",{
  "accountId": "ue150411c",
  "comparator" : {
      "property": "from",
      "isAscending": true
}
}, "0" ]]
{code}


=== HOW

-  accept the 'size' value in the 'propertyField' of the sort field of the 
request.
-  accept the 'from' value in the 'propertyField' of the sort field of the 
request.
-  accept the 'to' value in the 'propertyField' of the sort field of the 
request.
-  accept the 'subject' value in the 'propertyField' of the sort field of the 
request.

=== DOD

- write an integration test demonstrating the sorting of the result by 'size' 
in both ascending and descending order
- write an integration test demonstrating the sorting of the result by 'from' 
in both ascending and descending order
- write an integration test demonstrating the sorting of the result by 'to' in 
both ascending and descending order
- write an integration test demonstrating the sorting of the result by 
'subject' in both ascending and descending order
- write an integration test demonstrating that a unsupportedSort method error 
is return in case of unknown collation



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to