Rémi Kowalski created JAMES-3382:
------------------------------------

             Summary: Email/Query Pagination 1 - handle pagination with position
                 Key: JAMES-3382
                 URL: https://issues.apache.org/jira/browse/JAMES-3382
             Project: James Server
          Issue Type: New Feature
          Components: JMAP
    Affects Versions: 3.6.0
            Reporter: Rémi Kowalski
            Assignee: Antoine Duprat


h3. WHY

As a client I want to be able to get a long list of results in several 
operations.
 As a client i want to be able to start fetching the result only since a given 
index.

On this ticket we will only consider positive position.
 {{    position: Int (default: 0) The zero-based index of the first id in the 
full list of results to return.

    If a negative value is given, it is an offset from the end of the list. 
Specifically, the negative value MUST be added to the total number of results 
given the filter, and if still negative, it’s clamped to 0. This is now the 
zero-based index of the first id to return.

    If the index is greater than or equal to the total number of objects in the 
results list, then the ids array in the response will be empty, but this is not 
an error.}} {{request}} {{    [[ "Email/query",\{
      "accountId": "ue150411c",
      "position": 5
    }, "0" ]]}}
h3. HOW
 * accept a 'position' parameter in the query request.

h3. DOD
 * write an integration test demonstrating that when the client provide a 
position parameter, only the result since this position are returned in the 
response.
 * write an integration test demonstrating that if the client provide a 
position parameter bigger than the total number of results then the response is 
empty and there is no error.
 * run the tests against the distributed version of the contract



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