Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support organization visibility in unified search #3406

Open
RusJaI opened this issue Dec 1, 2024 · 1 comment
Open

Support organization visibility in unified search #3406

RusJaI opened this issue Dec 1, 2024 · 1 comment
Assignees

Comments

@RusJaI
Copy link

RusJaI commented Dec 1, 2024

Description

Related to #2925

Version

No response

@RusJaI
Copy link
Author

RusJaI commented Dec 1, 2024

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:

  • DevPortal Login as usera (BankA):
    - Performed a search.
    - Result: No APIs visible.

  • DevPortal Login as userb (BankB):
    - Performed a search.
    - Result: No APIs visible.

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant