Rename Rust evaluator event_property_contains field value_type to value too#16045
Rename Rust evaluator event_property_contains field value_type to value too#16045bnjbvr wants to merge 2 commits intomatrix-org:developfrom bnjbvr:fix-rust-value-type
event_property_contains field value_type to value too#16045Conversation
…to value too Following what happened in #15781.
event_property_contains field value_type to value tooevent_property_contains field value_type to value too
|
Does this fix something or is it just refactoring? |
| pub key: Cow<'static, str>, | ||
| // During serialization, the pattern_type property gets replaced with a | ||
| // pattern property of the correct value in synapse.push.clientformat.format_push_rules_for_user. | ||
| pub value_type: Cow<'static, EventMatchPatternType>, |
There was a problem hiding this comment.
This doesn't look right, the the code still searches for value_type at https://github.com/matrix-org/synapse/pull/15781/files#diff-50b62bc5724dfc17c692c9467f9a1f92af6ecb2b2afdc41cf96939e794d12f59R68
There was a problem hiding this comment.
I'm not familiar at all with this code, so I might be super wrong. Is this using an internal format that is live-converted to what the spec mandates? If so, then does the rust module use the internal format or the spec format?
There was a problem hiding this comment.
Yes it is an internal format, the code I linked to is the serialization code which converts it.
I thought I spotted an error in passing that could have been hard to figure, but sounds like I was wrong! Closing. |
No worries! If you're seeing the |
Following what happened in #15781.
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.(run the linters)