wso2 / api-manager

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

[APIM-4.0.0] [UI BUG-Developer Portal] Incorrect number of APIs displayed when "display_multiple_versions" is set to "false" #1343

Closed VinulaUthsara closed 1 year ago

VinulaUthsara commented 1 year ago

Description

When the following configuration is set to “true” in the deployment.toml as follows:

[apim.devportal] display_multiple_versions = true

All versions of each API will be displayed in the Developer Portal. The number displayed at the bottom of the page will be displayed correctly.

When the above mentioned configuration is set to “false” only the latest version of APIs will be displayed in the Developer Portal. However, the items per page listed will still be displayed as the total number of APIs and not the number of APIs displayed in the UI.

In the image attached below, you can see that the total number of APIs (including versions is 19) but even when only 10 APIs are being displayed "Items per page" shows as 19.

Screenshot from 2023-01-27 21-59-45

Steps to Reproduce

  1. Add the following configuration to the deployment.toml file with display_multiple_versions = false as follows :

[apim.devportal] display_multiple_versions = false

  1. Create an API(s)
  2. Create a new version
  3. "Items per page" will show the total number of APIs including versions (expected behavior is to show only number of APIs and versions displayed in the developer portal)

Affected Component

APIM

Version

4.0.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

IsuruMaduranga commented 1 year ago

Hi @VinulaUthsara,

This issue should be already fixed here https://github.com/wso2/product-apim/issues/11627 via https://github.com/wso2/carbon-apimgt/pull/10786. Can you please get the latest APIM pack and confirm whether the issue is reproducible or not?

Thanks, Isuru

VinulaUthsara commented 1 year ago

Hi @IsuruMaduranga,

The issue is still reproducing in the latest U2 update (178).

Please see attached image:

Screenshot from 2023-01-31 16-06-03

VinulaUthsara commented 1 year ago

Hi @IsuruMaduranga,

As per our offline discussion I tested the same in the latest APIM pack. The issue is fixed and does not reproduce in the latest pack.

Thanks, Vinula.

IsuruMaduranga commented 1 year ago

Hi @VinulaUthsara,

Closing the issue as the issue can not be reproduced.

Thanks, Isuru

iloshinik commented 1 year ago

Hi @IsuruMaduranga,

Re-opening the issue since the fix for APIM 4.0.0 is yet to be released.

Thanks, Iloshini

IsuruMaduranga commented 1 year ago

Hi @iloshinik,

Fix is released. Closing the issue.

Thanks, Isuru