Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JMAP
    • None

    Description

      = WHY

      With the new specifications as an user i want to be able to sort the emails by the presence of a given keyword

      `hasKeyword - This value MUST be considered true if the Email has the keyword given as an additional keyword property on the Comparator object, or false otherwise.
      `

      Here is the query to display first the emails containing the 'james' keyword.

      [[ "Email/query",{
        "accountId": "ue150411c",
        "sort" : {
            "property": "hasKeyword",
            "keyword": "james",
            "isAscending": true
      }
      }, "0" ]]
      

      = HOW

      • accept the 'hasKeyword' value in the 'property' field of the sort field of the request.

      = DOD

      • write an integration test demonstrating the sorting of the result by 'hasKeyword' in both ascending and descending order

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: