Skip to content

[Security Solution][Detection Engine] Refactor getFilter into separate functions #185890

Open

Description

#184890 (comment)

After #184890, we now have a function that can automatically fetch the necessary field mappings for fields in a query string. However, we don't always want to use this function, especially in loops, so it can be configured in 3 different ways: automatically load the fields, pass in a list of pre-fetched fields, or don't handle fields at all. We should refactor to split these use cases into different functions and make it more clear from the function name what the intent is instead of burying the detail in how the function parameters are set up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions