api-manager
api-manager copied to clipboard
Inconsistent listing of APIs in Change API Provider feature
Description
When there are multiple documents and API Products available in the server, the Admin portal Change API Provider
API listing table shows inconsistent results.
This is due to the behaviour of the content search api we are using to retrieve the APIs. Content search means we search for all content including APIs, API Products and Documents as well. The default limit for the rest api call is 10. If we obtain 10 resources out of which none are APIs, the apiList becomes empty. If this happens for the first set of results, the UI shows a message No Data to Display
and hence it is not possible to navigate through to the next paginated content in the table.
If we search using the lowercase naming of an API, search results will show up as it now searches for a specific content with a query.
The UI is only supposed to display APIs while all content including API Products and Documents are searched for resulting in the misleading behaviour with pagination.
Steps to Reproduce
- Login to API Publisher and create multiple APIs, API Products and Documents amounting to more than 10 API Products and Documents.
- Login to Admin portal and try accessing the
Change API Provider
page. - You will see inconsistent pagination results.
Affected Component
APIM
Version
4.3.0, 4.4.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response