Extend organization search for private packages#264
Merged
nipunayf merged 8 commits intoballerina-platform:mainfrom Sep 1, 2025
Merged
Extend organization search for private packages#264nipunayf merged 8 commits intoballerina-platform:mainfrom
nipunayf merged 8 commits intoballerina-platform:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR extends the search functionality to support filtering by current organization and searching within private packages in Ballerina Central. The implementation introduces a new filterByCurrentOrg query parameter to restrict search results to the user's organization and adds support for authenticated access to search private packages.
Key changes:
- Added
filterByCurrentOrgparameter to enable organization-specific search filtering - Implemented
searchCurrentOrganizationmethod across search command classes - Added authentication support for accessing private packages via Central API
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| SearchCommand.java | Added filterByCurrentOrg parameter and searchCurrentOrganization method infrastructure |
| TypeSearchCommand.java | Refactored organization search logic to use new searchCurrentOrganization method |
| FunctionSearchCommand.java | Updated function search to support organization filtering with new architecture |
| ConnectorSearchCommand.java | Modified connector search to handle organization filtering and private package access |
| RestClient.java | Added authentication support and hasAuthorizedAccess method for private package access |
| RemoteCentral.java | Implemented hasAuthorizedAccess interface method |
| CentralAPI.java | Added hasAuthorizedAccess method to the interface |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...-generator-core/src/main/java/io/ballerina/flowmodelgenerator/core/search/SearchCommand.java
Show resolved
Hide resolved
...odules/flow-model-central-client/src/main/java/io/ballerina/centralconnector/RestClient.java
Outdated
Show resolved
Hide resolved
0c56e41 to
b35f0a0
Compare
b35f0a0 to
2c888f8
Compare
NipunaRanasinghe
approved these changes
Sep 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This PR updates the search command by adding the filterByCurrentOrg query parameter, which restricts results to the user’s organization on Central. The implementation has also been extended to include searches for the user’s private packages.
Addresses wso2/product-ballerina-integrator#977
Remarks