Skip to content

Persisting Commits #26

@joepio

Description

@joepio

Commits are atomic changes to a resource. If these are persisted, we can use these to generate logs and previous versions. Pretty cool.

I think it makes sense to simply store these as resources (since they are just that) - not as some special struct.

One thing I'm still pondering about, is how to deal with failed commits. For now, if a commit cannot be applied, it will not be stored. This works fine for synchronous APIs (e.g. posting a Commit to a /commit endpoint), but this would not work when these commits are sent in bulk.

For the future:

  • Generate commits when importing atomic data (parsing ad3, for example)
  • Limit write access to the commit API (maybe)
  • Start thinking about how to generate older versions of resources, and how to query these resources (probably TPF)

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