Skip to content

PM-6059 - allow copilot search in talent search - #153

Merged
vas3a merged 1 commit into
developfrom
PM-6059_copilot-search
Aug 31, 2026
Merged

PM-6059 - allow copilot search in talent search#153
vas3a merged 1 commit into
developfrom
PM-6059_copilot-search

Conversation

@vas3a

@vas3a vas3a commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

This pull request adds support for filtering and displaying members with the "Copilot" platform role in the member search API. It introduces a new copilot filter to the search request, updates the SQL query to join and filter on copilot role assignments, and ensures that the isCopilot property is always included in the member search results. The changes are covered by new and updated tests.

Copilot Role Support in Member Search

  • API and DTO Changes:

    • Added an optional copilot boolean filter to MemberSearchBodyDto to allow searching for members with the Copilot role.
    • Added an isCopilot boolean property to MemberResultDto to indicate Copilot role status in results.
  • Service and Query Updates:

    • Updated the SQL query in member-search.service.ts to include a new copilot_members CTE, filter by Copilot role when requested, and always select the Copilot indicator for each member. [1] [2] [3] [4] [5]
    • Extended the RawMemberRow type and related service logic to handle the new isCopilot field. [1] [2]
  • Test Coverage:

    • Updated and added tests in member-search.service.spec.ts to verify Copilot filtering, result mapping, and SQL generation. [1] [2] [3] [4]
    • Updated controller tests to include the isCopilot field in expected results.

@vas3a
vas3a merged commit c92f054 into develop Aug 31, 2026
6 checks passed
@vas3a
vas3a deleted the PM-6059_copilot-search branch August 31, 2026 13:38
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.

1 participant