Skip to content

Comments

Filter model providers in connection search#673

Merged
KavinduZoysa merged 3 commits intoballerina-platform:1.6.xfrom
pasindufernando1:1064Fix
Feb 3, 2026
Merged

Filter model providers in connection search#673
KavinduZoysa merged 3 commits intoballerina-platform:1.6.xfrom
pasindufernando1:1064Fix

Conversation

@pasindufernando1
Copy link
Contributor

@pasindufernando1 pasindufernando1 commented Feb 3, 2026

Purpose

This PR filters out model providers in connector search API.
Fixes : wso2/product-ballerina-integrator#1064

Screen.Recording.2026-02-03.at.15.09.03.mov

Copilot AI review requested due to automatic review settings February 3, 2026 09:44
Copy link
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

This PR addresses the issue of model providers appearing in connector search results by introducing a blacklist filter. The change prevents "ModelProvider" from being returned when searching for connectors, as model providers should only appear in dedicated model provider searches.

Changes:

  • Added a blacklist filter to exclude "ModelProvider" from connector search results in the search() method
  • Added a test case to verify that searching for "ModelProvider" in connector search returns no results

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
ConnectorSearchCommand.java Introduced BLACKLISTED_CONNECTOR_NAMES constant and applied filtering in the search method to exclude ModelProvider from connector search results
model_provider.json Added test configuration to verify ModelProvider is filtered out from connector searches

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

@KavinduZoysa KavinduZoysa merged commit 9861cad into ballerina-platform:1.6.x Feb 3, 2026
3 checks passed
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