Skip to content

Create a method to get changes until hasMoreChanges is false #45

@alagane

Description

@alagane

As a library user (eg: OpenPaas)
I want to get all the Mailbox changes using only one method
So that I do not have to worry about the hasMoreChanges mechanic which will be handled by the library

When I get all the changes
And the response property hasMoreChanges is false
Then the behaviour is the same than mailbox_changes

When I get all the changes
And the response property hasMoreChanges is true
Then more requests are made and merged until hasMoreChanges is false
And the client should get a response like if it was done in one request (but it will take more time)

Merging responses would be:

  • union of created (minus those in destroyed) -> if a Mailbox was created and destroyed, no need to fetch it
  • union of updated (minus those on created and those on destroyed) -> if a mailbox was created and updated, it will be fetched because in created; if a mailbox was updated and destroyed, no need to fetch it
  • union of destroyed (minus those on created) -> if a Mailbox was created and destroyed, no need to remove it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions