Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test scenarios to cover Versioned with mode 'versioned' #55

Closed
chrispenny opened this issue Sep 7, 2022 · 0 comments · Fixed by #64
Closed

Add unit test scenarios to cover Versioned with mode 'versioned' #55

chrispenny opened this issue Sep 7, 2022 · 0 comments · Fixed by #64
Assignees
Labels
enhancement New feature or request

Comments

@chrispenny
Copy link
Member

chrispenny commented Sep 7, 2022

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 your DataObject.
    • Any time you have applied the Versioned::class extension to something, this was/is actually an alias for Versioned::class . '.stagedversioned'.
  • versioned: Which I didn't know about, but is where you have _Versions records, but only ever have a Live record for your DataObject (there is no draft).
    • When you apply the Versioned::class extension to something, you can explicitly state that you want Versioned::class . '.versioned' to get the "non staged" version of Versioned.

Current scenarios only cover stagedversioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants