Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output_def to PluginFunction #759

Closed

Conversation

JSCU-CNI
Copy link
Contributor

This PR adds the output_def attribute to the PluginFunction dataclass and populates it during runtime in find_plugin_functions. The output_def attribute should be filled with RecordDescriptor instances when the output_type is record. For further assumptions see test_find_plugin_function_record_def.

We use this attribute to discover all possible output field types of target-query in our (to be published) dissect-elastic tool. This tool facilitates in generating valid Elasticsearch field mapping objects.

@Schamper
Copy link
Member

Thanks - this is also already covered by my own refactor of the plugin system internals, so don't be sad if this PR will be rejected 😉. I've been sick for a few days but I'm trying to get that wrapped up as quick as I can.

@JSCU-CNI
Copy link
Contributor Author

Closing this in favor of #763.

@JSCU-CNI JSCU-CNI closed this Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants