Hi Amalka, did you remove unlimited tier after the API creation. Since when unlimited tier is available this cannot be observed. I think this is a bug.
Thanks. On Fri, Jun 3, 2016 at 7:52 AM, Amalka Subasinghe <[email protected]> wrote: > Hi, > > In my APIM 1.10.0 node, I have removed Unlimited tier from both api-level > and the resource-level. > > When I create an API, in the Manage page, api-level tier list display as > Gold, Silver, Bronze. But in resource-level it default set to Gold see the > image > (When I try to change the resource-level tier it shows the tier list as > Ultimate, Plus, Basic only) > > In > wso2am-1.10.0/repository/deployment/server/jaggeryapps/publisher/site/themes/default/templates/item-manage/template.jag > file, the following code block gets the default tier from api-level tier > list and sets it as default tier of the resource-level > is this the expected behavior? > > var tiers = mod.getTiers().tiers; > var resourceTiers = mod.getResourceTiers().tiers; > var default_tier = tiers[tiers.length -1].tierName; > for (var i = 0; i < tiers.length; i++){ > if(tiers[i].defaultTier){ > default_tier = tiers[i].tierName; > break; > } > } > > > > Thanks > Amalka > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Rukshan Chathuranga. Software Engineer. WSO2, Inc.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
