Ability to query older versions of a vmspec #184
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
With this change set, we can query older versions of a spec. We need this for update and update validation.
Which issue(s) this PR fixes:
Related to #66
Special notes for your reviewer:
I tried to come up with a proper solution to this, but all of them had
flaws.
== Options I found and explored their possibilities
That's just ugly as hell. I like the Options pattern. Much easier to
update without breaking 300 calls in the codebase.
It seems odd and I think it's unnecessary because Get can handle it.
That would require checks and casting everywhere we want to use it.
== Conclusion
I picked options 1, because it causes less pain not and long term.
It does not matter what content store we are using, it HAS to be able
to manage versions somehow, even if it's an external service, the
Repository implementation has to handle versions, without versions
we are are playing with a bag of venomous snakes without any kind of
antidote, maybe fun, but not safe.
Checklist: