Updates Filter Resource Logic
MR Overview
This MR updates the filter_resources
logic to make it easier to maintain.
How It Works
The filter_resources
logic loops through a map of the conditions and their appropriate filters.
To do this, we have split up the filter_resources
method to loop through each individual resource and send it to the filter_resource
method.
The filter_resource
method is what is looping through the FILTER_MAP
.
The filter_resource
method itself has been heavily documented with inline comments as it is a slightly more complex logic to follow than it was before.
Edited by Dillon Wheeler