Add unit test scenarios to cover Versioned with mode 'versioned'
Closed this issue · 0 comments
chrispenny commented
TIL that Versioned
has two modes:
stagedversioned
: The one we're all probably used to, where you have_Versions
records, as well as a Draft and Live record for yourDataObject
.- Any time you have applied the
Versioned::class
extension to something, this was/is actually an alias forVersioned::class . '.stagedversioned'
.
- Any time you have applied the
versioned
: Which I didn't know about, but is where you have_Versions
records, but only ever have a Live record for yourDataObject
(there is no draft).- When you apply the
Versioned::class
extension to something, you can explicitly state that you wantVersioned::class . '.versioned'
to get the "non staged" version ofVersioned
.
- When you apply the
Current scenarios only cover stagedversioned
.