Kinto / Kinto/kinto

Revert operations from a particular timestamp

Open
#826 2 comments 1 reaction 1 assignee Claimed by @oronsan View on GitHub
enhancement in progress stale
Dominant language
Python
Stars
4.4k
Forks
437
Avg merge
1d 2h
Merged PRs (30d)
15

Description

We want to be able to rollback some changes that were made since a particular timestamp.

Since clients expect that timestamp never go back in the past, the idea would be to apply the reverse operations.

It would take the history entries from that particular timestamp and apply the opposite operations (deleted records get recreated, etc.).

The permissions would be restored too.

It would fail if the history is not enabled or if the oldest timestamp of the history is superior that the one specified...

Thoughts ?

It could be:
- A command `$ kinto revert --auth user:pass --bucket=test --collection=images 123456789`
- An endpoint provided by the history plugin `/buckets/tests/revert?_since=1245`

(_It could be a feature exposed in the kinto-admin too_)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.