Skip to content

Commit

Permalink
docs: add catalog and revision publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemurray authored and machikoyasuda committed Mar 16, 2018
1 parent a4b0c23 commit 3ff6854
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions developer/revisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

When changes are made to a product, a collection hook in `/imports/plugins/core/revisions/server/hooks.js` is fired and diverts most changes bound for the `Products` collection to a document in the `Revisions` collection.

## Publishing revisions

The `Publish` button in the admin is used to publish revisions to the `Products` collection, and subsequently to the `Catalog` collection as a denormalized product document. The publish button is always active, even if there are no revisions to publish. In this case, the products are published directly to the `Catalog` collection, bypasing revision control.

## Schema

See `lib/collections/schemas/revisions.js` for more details.
Expand Down

0 comments on commit 3ff6854

Please sign in to comment.