Skip to content

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

Open
Koc wants to merge 1 commit into
mainfrom
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 into
mainfrom
bugfix/make-usergroup-selection-milti-filters-case-insensetiv

Conversation

@Koc

@Koc Koc commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

This is a follow-up for the #1798. It spreads same logic what we have in text line type to other column types. So, now everything is case insensitive.

It also fixes filters for usergroup single selection

🔘 Single selection

Before After
image image

☑️ 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
@Koc Koc force-pushed the bugfix/make-usergroup-selection-milti-filters-case-insensetiv branch from a3b8def to 120718e Compare April 5, 2026 22:40

@enjeck enjeck left a comment

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.

Thanks, some comments:

Comment thread src/shared/components/ncTable/mixins/columnsTypes/usergroup.js Outdated
Comment thread src/shared/components/ncTable/mixins/columnsTypes/selectionMulti.js Outdated
@Koc Koc force-pushed the bugfix/make-usergroup-selection-milti-filters-case-insensetiv branch from 120718e to fe95c8c Compare April 26, 2026 17:49
@Koc Koc force-pushed the bugfix/make-usergroup-selection-milti-filters-case-insensetiv branch 4 times, most recently from c1e07dc to b342f82 Compare June 25, 2026 23:22
const filterValue = (filter.magicValuesEnriched ? filter.magicValuesEnriched : filter.value).toLowerCase()
const cellLabel = this.getLabel(cell.value)?.toLowerCase()
const filterMethod = {
[FilterIds.ContainsItem]() { return filterValue.map(option => option.id).includes(cell.value) },

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.

ContainsItem crashes on Selection / SelectionMulti

  1. Create a table with a single-selection column and add a few rows.
  2. On that column open the filter menu and pick the operator "Is one of" / "Contains item" (the one that shows option chips, FilterIds.ContainsItem).
  3. Select one option and apply.
  4. Fails to create view

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

aah, good catch 🦅

Fixed now and thanx for clear reproducer.

Comment thread src/shared/components/ncTable/mixins/columnsTypes/selection.js Outdated
@Koc Koc force-pushed the bugfix/make-usergroup-selection-milti-filters-case-insensetiv branch from b342f82 to b2edadc Compare June 30, 2026 15:52
…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 b2edadc to 28efb9a Compare June 30, 2026 16:10
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