Skip to content

Expose Purge Infos to Clients #2634

@janl

Description

@janl

Summary

CouchDB keeps a list of purge infos to ensure that purges can be applied on a cluster without purged documents being re-introduced by internal replication.

It would be useful to make this list available for replication clients like PouchDB, who then could apply local purges on their own. I know PouchDB doesn’t implement purge just yet, but it’s something that folks will need before long.

Desired Behaviour

GET /db/_purge_infos[?limit=X&offset=Y]
{
  "purge_infos": [
    {...purge info...},
    ...
  ]
}

Possible Solution

Expose the internal purge_infos API to chttpd.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions