Skip to content

fix: organization query (CM-1129)#4052

Draft
ulemons wants to merge 1 commit intomainfrom
fix/search-organization-query
Draft

fix: organization query (CM-1129)#4052
ulemons wants to merge 1 commit intomainfrom
fix/search-organization-query

Conversation

@ulemons
Copy link
Copy Markdown
Contributor

@ulemons ulemons commented Apr 23, 2026

No description provided.

Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
@ulemons ulemons self-assigned this Apr 23, 2026
Copilot AI review requested due to automatic review settings April 23, 2026 14:49
@ulemons ulemons added the Bug Created by Linear-GitHub Sync label Apr 23, 2026
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for a search term in the organizations advanced query by extracting it from the filter object and applying it as a separate ILIKE clause, preventing RawQueryParser from seeing an unknown search key.

Changes:

  • Introduces handleSearchFilter() to extract/trim filter.search and remove it from the filter passed to RawQueryParser.
  • Adds an optional SQL ILIKE predicate on o."displayName" when a search term is present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

const { searchTerm, updatedFilter: filterWithoutSearch } =
OrganizationRepository.handleSearchFilter(filter)
filter = filterWithoutSearch

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

Labels

Bug Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants