From 3ff6854351ddcd78728080be069b6359a58f77ef Mon Sep 17 00:00:00 2001 From: Mike Murray Date: Wed, 14 Mar 2018 17:20:42 -0700 Subject: [PATCH] docs: add catalog and revision publishing --- developer/revisions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/developer/revisions.md b/developer/revisions.md index ccb050245..8efd8c278 100644 --- a/developer/revisions.md +++ b/developer/revisions.md @@ -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.