Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • JMAP
    • None

    Description

      === 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 :

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

      === 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

      Attachments

        Issue Links

          Activity

            People

              aduprat Antoine Duprat
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m