deckhand/doc/source/revision_history.rst
Felipe Monteiro c69f29e92f Revamp Deckhand documentation
This PS updates all Deckhand documentation to be
sphinx-compliant so that it can be rendered into
HTML automatically for hosting.

This PS also removes deprecated/redundant/unhelpful
documentation and upates README to a bit more
informative and helpful. The design.md file has been
broken up into different sections with deckhand/docs
for easier consumption.

Change-Id: I44afcd22a7f5f05e44563342bb98b30fd806f598
2017-10-16 20:11:56 +01:00

2.2 KiB

Revision History

Revision History

Documents will be ingested in batches which will be given a revision index. This provides a common language for describing complex validations on sets of documents.

Revisions can be thought of as commits in a linear git history, thus looking at a revision includes all content from previous revisions.

Revision Diffing

By maintaining a linear history of all the documents in each revision, Deckhand is able to diff different revisions together to report what has changed across revisions, allowing external services to determine whether the Deckhand configuration undergone any changes since the service last queried the Deckhand API.

The revision difference is calculated by comparing the overall difference across all the documents in the buckets associated with the two revisions that are diffed. For example, if a bucket shared between two revisions contains two documents, and between the first revision and the second revision, if only one of those two documents has been modified, the bucket itself is tagged as modified. For more information about revision diffing, please reference the api-ref.

Revision Rollback

As all the changes to documents are maintained via revisions, it is possible to rollback the latest revision in Deckhand to a prior revision. This behavior can be loosely compared to a git rebase in which it is possible to squash the latest revision in order to go back to the previous revision. This behavior is useful for undoing accidental changes and returning to a stable internal configuration.