Prevent blank revisions from being read from the backend#32871
Prevent blank revisions from being read from the backend#32871rosstimothy merged 2 commits intomasterfrom
Conversation
espadolini
left a comment
There was a problem hiding this comment.
Why do we need the blank revision handling for the memory backend?
We either have to insert the place holder into the event stream so that resources in the cache can never have an empty string or add blank revision handling to the memory backend. |
It's the job of the backend driver to never produce an empty revision string, if that means changing the event stream code to make it so that the empty revision string never appears even when "it should" then that's what we should do, IMO. |
What's the downside to having the cache just work in the event the upstream backend has a bug? |
fspmarshall
left a comment
There was a problem hiding this comment.
R.E. the memory backend handling blank revisions; I think it should handle them correctly, but if it observes them while in mirror mode it should emit a warning.
espadolini
left a comment
There was a problem hiding this comment.
LGTM other than the memory backend
a7f1434 to
1d4f698
Compare
|
Considering the situation with the cache |
3b0f50f to
dc0c58e
Compare
Overwrites any empty resource revisions with a placeholder value to prevent any blank revisions from being provided to users.
All resource revisions are now being set on a backend.Item before persisting the item to the backend.
dc0c58e to
db9d68e
Compare
Overwrites any empty resource revisions with a placeholder value to prevent any blank revisions from being provided to users.