wso2 / api-manager

All issues, tasks, improvements and new features of WSO2 API Manager
Apache License 2.0
34 stars 8 forks source link

Support organization visibility in unified search #3406

Open RusJaI opened 7 hours ago

RusJaI commented 7 hours ago

Description

Related to https://github.com/wso2/api-manager/issues/2925

Version

No response

RusJaI commented 7 hours ago

Update [2024-11-29]

A. Flows Tested in the current setup :

1. Setup: Organizations and Users: BankA: User usera. BankB: User userb. APIs: Cats and Pizzashack, both created and published by the super admin. Initial Configuration:

2. APIs published using admin credentials, with no organizational restrictions. Performed a Content-Based Search in the public DevPortal, by logging in as admin and organization users: Verified that the search works as expected for all users.

3. Restrictive Configuration: Cats API restricted to BankB organization only. Pizzashack API restricted to BankA organization only.

4. Validation of Restrictions:

B. Further observations made while debugging the current Setup :

Testing with Solr console : In the results set returned for the query to fetch devportal APIs list, it has the organization name as visible_organizations_ss value.

Debugging the code : The solr query to fetch devportal APIs contain organization ID for the visible_organizations_ss field. ex : visible_organizations_ss:(all OR a2ecd49d-9f9e-47ad-bb3f-dbf045d8d7e9) and all is not identified as a keyword by solr