Open sandstrom opened 5 months ago
Happy to discuss this in more detail, and elaborate more.
Friendly ping @lessthanjacob @njbbaer @ritikesh
If you think this is a reasonable suggestion, let me know! If so, I'd propose these steps:
For reference, there are also a few other issues that I've opened, where I'd also be happy to get your input.
I think this would be a reasonable refactor.
@njbbaer @ritikesh any thoughts/concerns here?
Agreed, we are open to contributions @sandstrom.
@lessthanjacob @ritikesh Thanks!
I'll have a chat with a colleague of mine, and we'll try to get back with a proposal.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still relevant!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale
Is there an existing issue for this?
Is your feature request related to a problem? Please describe
Association extractor is useful to modify to e.g. add a circuit-breaker, implement caching and for a few other things. Right now it's somewhat complicated to override/modify.
Describe the feature you'd like to see implemented
Right now, there are two types of extractors: AssociationExtractor and AutoExtractor (along with some sub-extractors).
Their roles are somewhat intertwined (AssociationExtractor calls the AutoExtractor, for example), and only one of them can be modified globally.
I'd propose a stricter separation, splitting it up into (probably) three extractors:
The default
ValueExtractor
would encapsulate the logic currently existing in AutoExtractor, and I'd move the logic of deferring to block to field/association extractors.ValueExtractor
could also be named something likeDataExtractor
instead.Example
This is a rough sketch, in reality it would probably be slightly different.
Describe alternatives you've considered
No response
Additional context
No response