Closed dmdashenkov closed 6 years ago
@armiol, PTAL at the proposal. There might be an intelligent design behind the current behavior that I'm not aware of.
As discussed with @alexander-yevsyukov, this problem should be resolved by weakening the projection state validation.
When querying a projection, there is an option to specify a
FieldMask
for the projection state.If the mask does not contain all the
required
fields (as well asrequired_field
groups,goes.with
matches, etc.), the resulting state message is not considered valid, thus the entity refuses to update its state and throws an exception.We should allow entities to be invalid on the query side.