I just discovered `register_plugin_field` on `Targ...
# plugins
b
I just discovered
register_plugin_field
on
Target
. This is awesome!
w
I’m not sure if I fully understood how this worked based on the docs
b
You can inject fields into targets. The codegen targets like
thrift_source
use it
w
Like, in lieu of making said fields manually? Are there any coupling concerns?
c
It's also how most skip fields are registered, as skip_black for instance comes from a different backend than the target for the field.
3
b
in terms of coupling the plugin that added it probably cares about using it
w
Ahhhh, okay okay, that makes sense. I misread the example, where I thought we were pulling fields and targets in the opposite order. When I looked at the skip example, it made sense again :)
I’ve actually used it, but completely forgot 🤦‍♂️
😁 2
h
Yep, a key design goal of the Target API 🙂
b
I never put 2 and 2 together with skip fields 😅
1
2️⃣ 1
🕑 1
💯 1