Skip to content

Fix: Make case-insensitive search for the usergroup and multi selection columns#2446

Open
Koc wants to merge 1 commit intomainfrom
bugfix/make-usergroup-selection-milti-filters-case-insensetiv
Open

Fix: Make case-insensitive search for the usergroup and multi selection columns#2446
Koc wants to merge 1 commit intomainfrom
bugfix/make-usergroup-selection-milti-filters-case-insensetiv

Conversation

@Koc
Copy link
Copy Markdown
Contributor

@Koc Koc commented Apr 5, 2026

This is a follow-up for the #1798

☑️ Multi selection

Before After
image image

👤 User single selection

Before After
image image

👥 User multi selection

Before After
image image

@Koc Koc requested review from blizzz and enjeck as code owners April 5, 2026 22:14
…on columns

Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc Koc force-pushed the bugfix/make-usergroup-selection-milti-filters-case-insensetiv branch from a3b8def to 120718e Compare April 5, 2026 22:40
Copy link
Copy Markdown
Contributor

@enjeck enjeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, some comments:

}
})
return ret
return ret.toLowerCase()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that the search is case insentive but the other filters aren't?
For the Is equal / Is not equal operators. The filter UI stores whatever casing the user typed, so a row containing Alice now becomes alice before comparison. That makes Is equal "Alice" fail and Is not equal "Alice" incorrectly pass?

Comment on lines +74 to +75
[FilterIds.Contains]() { return valueString?.toLowerCase().includes(filterValue.toLowerCase()) },
[FilterIds.DoesNotContain]() { return !valueString?.toLowerCase().includes(filterValue.toLowerCase()) },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At https://github.com/nextcloud/tables/blob/main/src/shared/components/ncTable/partials/TableHeaderColumnOptions.vue#L315, there’s a small check meant to stop adding the same Contains or Does not contain filter twice. I think that conflicts with this?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants