Skip to content

Terms Query block: Include/Exclude controls #71443

@kmanijak

Description

@kmanijak

What problem does this address?

#49094 covers development of Terms Query block in its basic form. One of the discussed features is Include / Exclude controls so user can specify terms they want to display or omit.

What is your proposed solution?

Requirements:

  • Inputs:

    • Text Input with "chips" where user can list terms they want to include/exclude
    • Use FormTokenField as in other similar cases
  • "Include" control

    • Including at least one item means that only terms listed in this input are displayed (and its descendants if "Show only top level" is disabled)
  • "Exclude" control

    • Hides specific terms even if it matches other criteria.
    • Hides ONLY this specific term (doesn't impact descendants - @mikachan, how do you feel, is that how you see it? Or should it also exclude descendants? I think the latter would be too limiting 🤔)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions