silverstripe-terraformers / silverstripe-embargo-expiry

BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

Allow expiry to specific version (rather than unpublish) #17

Open chillu opened 6 years ago

chillu commented 6 years ago

Oftentimes, embargoes are for a temporary new content state, e.g. promotion of a deal on the homepage until it expires. The expiry would be around this particular content version, and shouldn't unpublish the homepage when the expiry date hits. Instead, it should just restore the old version of the homepage.

There's two schools of thought:

  1. Extend the existing data model with a version pointer (selectable in the UI, or defaulting to "previous version")
  2. Refactor data model to apply a "timeline" of versioned records, where you can declare a particular version to be live in a given timeframe. This has been extensively discussed by Marcus and Hamish five years ago.