product-apim icon indicating copy to clipboard operation
product-apim copied to clipboard

Application searching is not working as expected in APIM 3.0.0 after building the Devportal project

Open WathsalaKoralege opened this issue 4 years ago • 0 comments

Description:

There is a missing configuration in '<APIM-HOME>/repository/deployment/server/jaggeryapps/devportal/source/src/app/data/Application.jsx' as below and the same is needed for the Application searching task.

Available configuration in the pack(In the latest WUM level as well - 1608562360956):

static all(limit = 3, offset = null, sortOrder = 'asc', sortBy = 'name') { ... return client.apis.Applications.get_applications({ limit, offset, sortOrder, sortBy,

Correct configuration[1]:

static all(limit = 3, offset = null, sortOrder = 'asc', sortBy = 'name', query = '') {
       ...
        return client.apis.Applications.get_applications({
            limit, offset, sortOrder, sortBy, query,

The flow works fine in the default pack since we have the relevant configurations in <APIM-HOME>/repository/deployment/server/jaggeryapps/devportal/site/public/dist/ProtectedApp..bundle.js'.

The issue occurs after building the Devportal project(with/without any customizations).

Steps to reproduce:

Build the Devportal project as in [2].

Affected Product Version:

APIM 3.0.0

[1] https://github.com/wso2-support/carbon-apimgt/blob/support-6.5.349/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/src/app/data/Application.jsx#L244

[2] https://apim.docs.wso2.com/en/3.0.0/learn/consume-api/customizations/customizing-the-developer-portal/advanced-customization/

WathsalaKoralege avatar Jan 20 '21 05:01 WathsalaKoralege