Preparing and publishing products

This guide covers: how staff prepare and publish products, then remove them from sale while keeping their records.
About this guide

Prepared with AI under human direction. Publication and variant rules were checked against backend source on 12 September 2026 at revision d305706a. The film records the July interface and has not been replayed as a current acceptance test.

1. What it does

Catalog managers prepare products privately, review them, publish them in the shop and later remove them from sale. The product record and history remain available to staff.

Before publicationCustomers cannot see drafts.

Descriptions, price, category, brand, variants and media can be prepared without exposing an incomplete product.

After approvalPublished products can appear in the shop.

Search visibility depends on the product status and the stock availability recorded by Catalog.

Practical example: the Alpine Espresso System cannot be opened by a customer while Draft. After review and publication, the same URL resolves to an in-stock product page. Archive withdraws that page while Catalog retains the record and lifecycle.

2. From draft to the shop

The film follows one product across the real Catalog backoffice and storefront with on-screen captions.

PRODUCT LIFECYCLE / 2M 15.24S

Prepare, review, publish and archive

Shows the product hidden while Draft, prepared and reviewed in Catalog, published into the live storefront, then archived and withdrawn while its product record remains available to staff.

01
Build privatelyThe product URL remains unavailable while the manager completes its price and product details.
02
Review and publishThe lifecycle records the review decision, then the same URL becomes a sellable product page.
03
Withdraw cleanlyArchive removes customer visibility while staff retain the product and its lifecycle history.

3. Archive a product without deleting it

A product can leave the assortment without deleting the business record that explains what happened.

4. What changes for the customer

TECHNICAL DEEP DIVE

How catalog governance works

The sections below explain lifecycle flow, aggregate ownership, publication checks, event delivery, search visibility and current operating limits.

5. Publishing and withdrawing products

Catalog records the product identity and status throughout preparation, publication and withdrawal.

Two straight flows show product preparation reaching the storefront and archive withdrawing it while retaining history
Publication makes a complete product eligible for discovery. Archiving sends an event so customer-facing views remove it while Catalog retains the product record.

6. Rules enforced by Product

Product enforces its rules whenever its status, variants, images, prices or relations change.

Product owns identity, lifecycle, commercial and child facts while Category, Brand and Stock remain separate authorities feeding customer projections
The customer view combines Product, Category, Brand and Stock data. Search can be rebuilt from these records. Stock decides availability.
Product managesRules enforcedOther services manage
Product content and dimensions; variant SKU, EAN and commercial termsProduct identity and required publication detailsStock manages quantities and reservations
Lifecycle, schedule and publish/archive timestampsActions, reasons and retained historySearch documents can be rebuilt
Variants, media, attributes, tags and relationsLimits, uniqueness and domain eventsOrders retain immutable commercial snapshots
Category and brand referencesOnly active references are acceptedCategory and Brand remain separate Catalog aggregates
FactCurrent rulePurpose
VariantAt most 20; unique attribute combinations. Each variant owns its price, pending price, cost and recycling fee.Keeps each sellable option and its commercial terms together
MediaImages at least 800 × 800; at most three videos; optional variant targetingPreserves usable product presentation
Category / BrandReferences must be activeKeeps navigation and filters tied to active records

Prices belong to variants, not a parent-product base price. VariantCommercialTerms requires a non-negative cost when supplied and a non-negative recycling fee no greater than the price excluding tax. The fee is included in that price, not added on top. Approving a pending price replaces the variant’s current price and clears the pending value.

Source: variant terms

VariantCommercialTerms and ProductVariantBehavior, checked 12 September 2026.

7. Publication decision

Publication approval and price approval are separate actions. Product approval requires PENDING_REVIEW and the full publication checklist. Approving a variant’s pending price updates its terms without publishing the product.

Product approval checks pending-review state and twelve publication rules; variant price approval updates terms without changing publication status
The application validator and Product’s validator both contain twelve checks. Direct publication also runs the checklist, even though it skips the editorial review workflow.
ActionChecksResult
Product.approve()Requires PENDING_REVIEW and all twelve publication checksPublishes the product and records a publication event
DefaultProductValidationServiceThe same twelve checks at the application boundaryReturns the publication validation result to the dispatcher
Variant price approvalRequires a pending variant price; validates currency compatibility with an active fixed campaignUpdates variant terms and saves the product without publishing it

The twelve checks cover name, description, image, active default variant, positive price, cost, pending price, EAN, dimensions, recycling fee, energy label and SEO metadata. Category-specific requirements apply where relevant.

Source: publication rules

Checked 12 September 2026: ProductPublicationValidator, application validator, Product approval and variant price approval. This source check does not establish a new runtime acceptance result.

8. Search updates and limits

Lifecycle changes leave Catalog through its transactional outbox. Search and other consumers update asynchronously and remain repairable from authoritative Catalog state.

Catalog product mutation commits with an outbox row, publishes to Kafka and updates search and downstream projections
Events can arrive more than once, so consumers must handle repeats without applying a change twice. Kafka carries saved changes. Catalog remains the product source of truth.
Search visibilityRebuilds include published products; normal storefront search also hides projected out-of-stock products.
Unknown stockCatalog keeps a published product visible when its stock availability is unknown.
Scheduled publicationRuns every 60 seconds by default and skips products with a pending price change.
Search recoveryPublished products can be reindexed in pages and stale documents are purged.
SecurityCatalog staff authority and employee-scoped database RLS protect management operations.
Separate approvalsVariant price approval does not publish the product. Publication still requires the full checklist.