Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email/Query sort by hasKeyword #3743

Open
remk opened this issue Sep 2, 2020 · 0 comments
Open

Email/Query sort by hasKeyword #3743

remk opened this issue Sep 2, 2020 · 0 comments

Comments

@remk
Copy link
Member

remk commented Sep 2, 2020

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
@chibenwa chibenwa added this to the Sprint 2 milestone Sep 3, 2020
@chibenwa chibenwa changed the title Email/Query filter by hasKeyword Email/Query sort by hasKeyword Sep 15, 2020
@chibenwa chibenwa removed this from the Sprint 1 milestone Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants