Hi, I think we should fix this,as it's wrong showing the applications without having subscriptions in 'My Subscriptions' page..Before loading the applications list to UI,shall we add a filtering logic to show only applications with subscriptions in My subscriptions page..?
Thanks; On Fri, Mar 13, 2015 at 1:56 AM, Shani Ranasinghe <sh...@wso2.com> wrote: > Hi, > > I guess the wording used above was wrong, After having a discussion with > Dinesh, it was clear that the subscriptions loaded are for application that > is selected. But however, we still have no way of filtering out the > applications that do have subscriptions. This was done as per Dinesh, as > a performance improvement, in order to avoid obtaining subscriptions for > every application in oppose to obtaining subscriptions for the selected > application. > > However, the subscriptions page is supposed to show applications with > subscriptions. But is it a must? After all, we can create a token for an > application even though there are no API's subscribed to it. A user can > create an application generate the token and subscribe API's later on. If > we decide to show only applications with subscriptions, as Dinesh mentioned > off line, probably we would have to query it in the DB level to bring in > the applications that have subscriptions. > > > > On Fri, Mar 13, 2015 at 10:46 AM, Shani Ranasinghe <sh...@wso2.com> wrote: > >> Hi, >> >> In the current APIStoreHostObject getAllSubscriptions method, it >> retrieves the Applications list and then for each application it retrieves >> the subscriptions as well. In that case I don't see any change in the logic >> yet, except that the applications are not getting filtered. Is it still >> under development? >> >> On Fri, Mar 13, 2015 at 8:15 AM, Dinesh J Weerakkody <dine...@wso2.com> >> wrote: >> >>> Hi Nuwan, >>> >>> When we do the performance improvement for mysubscription page, we >>> decided to load all the applications including the applications which >>> doesn't have subscriptions. >>> >>> As I can remember, initial logic in hostobject was, load all the >>> applications from the backend and filter applications which doesn't have >>> subscription details. So we had to load all the subscription details to do >>> this filtering. It is not efficient and then we decided to load all the >>> applications to UI without doing the filtering. >>> >>> Thanks >>> >>> *Dinesh J. Weerakkody* >>> Software Engineer >>> WSO2 Inc. >>> lean | enterprise | middleware >>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com >>> >>> On Thu, Mar 12, 2015 at 5:11 PM, Nuwan Dias <nuw...@wso2.com> wrote: >>> >>>> I guess we don't have to show Applications that do not have >>>> subscriptions on the 'My Subscriptions' page. >>>> >>>> On Thu, Mar 12, 2015 at 5:06 PM, Shani Ranasinghe <sh...@wso2.com> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> Currently in the subscription page, it lists down applications that do >>>>> not have a subscription as well. The token generation for this application >>>>> is also enabled. Is this as designed? >>>>> >>>>> >>>>> -- >>>>> Thanks and Regards >>>>> *,Shani Ranasinghe* >>>>> Software Engineer >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> mobile: +94 77 2273555 >>>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab >>>>> >>>> >>>> >>>> >>>> -- >>>> Nuwan Dias >>>> >>>> Associate Tech Lead - WSO2, Inc. http://wso2.com >>>> email : nuw...@wso2.com >>>> Phone : +94 777 775 729 >>>> >>> >>> >> >> >> -- >> Thanks and Regards >> *,Shani Ranasinghe* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> mobile: +94 77 2273555 >> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab >> > > > > -- > Thanks and Regards > *,Shani Ranasinghe* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 77 2273555 > linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab > -- Lalaji Sureshika WSO2, Inc.; http://wso2.com/ email: lal...@wso2.com; cell: +94 71 608 6811 blog: http://lalajisureshika.blogspot.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev