Open leplatrem opened 8 years ago
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:
$ kinto revert --auth user:pass --bucket=test --collection=images 123456789
/buckets/tests/revert?_since=1245
(It could be a feature exposed in the kinto-admin too)
can I please work on this feature? I want to add a command to the cli first
Thank you
@oronsan I don't think anyone is working on this feature, so go for it!
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:
$ kinto revert --auth user:pass --bucket=test --collection=images 123456789
/buckets/tests/revert?_since=1245
(It could be a feature exposed in the kinto-admin too)