Skip to content

[Feature] Display existing configured Filters when setting up an OR Card Filter #4

@mostertb

Description

@mostertb

This is a feature request looking for a developer. Please comment bellow if you'd like to work on it.

About

The OR Card Filter (implemented in \AppBundle\Helper\CardFilter\OrCardFilter) allows for any number of other filters to be wrapped by it (in order for these to be logically ORed).

Within its setUp() function, it achieves this by providing a prompt asking if the user would like to add another Filter, and then iterating a loop depending on the input:

$exitQuestion = new ChoiceQuestion(
     'Would you like to add another Filter to logically OR?',
      ['y', 'n']
);

When adding many filters, it becomes mentally taxing to remember which filters are already wrapped, so it would be useful to output the filters already added just prior to the above prompt.

The display of the filters can be similar to how filters are printed in the main menu of the Card Filter Command at \AppBundle\Command\CardFilterCommand::printMenuOptions()

Gotchas

Be mindful that the list of wrapped filters can be empty if the setup of the first filter is exited via an exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions