The way we apply field masks (i.e. update patches) today is by having a map which maps field paths to a function which performs the update. This has a couple of issues:
- It requires custom code any time a new mutable field is introduced.
- Requires careful code to initialize intermediate fields when field masks have nested paths.
We should explore a solution which just uses proto reflection. Unfortunately, I can't find any official library to do that on GitHub. There is https://github.com/mennanov/fieldmask-utils which could work. We need to make sure it has the exact semantic we want.
The way we apply field masks (i.e. update patches) today is by having a map which maps field paths to a function which performs the update. This has a couple of issues:
We should explore a solution which just uses proto reflection. Unfortunately, I can't find any official library to do that on GitHub. There is https://github.com/mennanov/fieldmask-utils which could work. We need to make sure it has the exact semantic we want.