Skip to content

Extend organization search for private packages#264

Merged
nipunayf merged 8 commits intoballerina-platform:mainfrom
nipunayf:private-org-search
Sep 1, 2025
Merged

Extend organization search for private packages#264
nipunayf merged 8 commits intoballerina-platform:mainfrom
nipunayf:private-org-search

Conversation

@nipunayf
Copy link
Contributor

@nipunayf nipunayf commented Aug 29, 2025

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

Copilot AI review requested due to automatic review settings August 29, 2025 11:30
@nipunayf nipunayf requested a review from KavinduZoysa as a code owner August 29, 2025 11:30
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 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 filterByCurrentOrg parameter to enable organization-specific search filtering
  • Implemented searchCurrentOrganization method 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.

@nipunayf nipunayf force-pushed the private-org-search branch 6 times, most recently from 0c56e41 to b35f0a0 Compare September 1, 2025 06:11
@nipunayf nipunayf merged commit df582a0 into ballerina-platform:main Sep 1, 2025
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.

3 participants