Skip to content

Explore options to apply field masks that don't require per-field code #839

Description

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.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions