Skip to content

Curate available filters instead of auto-generation#3671

Open
williamjallen wants to merge 1 commit intoKitware:masterfrom
williamjallen:preset-filter-lists
Open

Curate available filters instead of auto-generation#3671
williamjallen wants to merge 1 commit intoKitware:masterfrom
williamjallen:preset-filter-lists

Conversation

@williamjallen
Copy link
Copy Markdown
Collaborator

Filters are currently automatically-generated based on the available GraphQL fields for a given filter input type. That works wonderfully when filtering by primary records, but breaks down when trying to add support for relationship filtering. For example, it would be difficult to add label relationship filters because users expect labels to simply be text strings, when in reality they are shared entities with id and text columns. This PR completely rewrites the filter UI field generation logic to instead use a predetermined list of available filter fields. The available fields are identical to the fields previously available. I plan to immediately follow this PR with a PR which adds label relationship filters.

Filters are currently automatically-generated based on the available GraphQL fields for a given filter input type.  That works wonderfully when filtering by primary records, but breaks down when trying to add support for relationship filtering.  For example, it would be difficult to add label relationship filters because users expect labels to simply be text strings, when in reality they are shared entities with id and text columns.  This PR completely rewrites the filter UI field generation logic to instead use a predetermined list of available filter fields.  The available fields are identical to the fields previously available.  I plan to immediately follow this PR with a PR which adds label relationship filters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant