Hi, On Wed, Nov 11, 2015 at 2:32 PM, Sachith Withana <sach...@wso2.com> wrote:
> The problem occurs when deploying CApps. > > If we try to deploy a CApp which contains the gadget "x" ( without knowing > that there is another gadget already there with the same name), > that gadget would be overridden with the new one. > Yes. It is completely natural for users to use same name for gadgets in two different CAR files. According to the current implementation if we deploy second CApp, gadget deployed from the first CApp will get overridden. One possible fix would be to check whether gadget with a same name already exists at the CApp deployment and prevent the second CApp from being getting deployed by giving a warning message(warning message can use to notify the user about the existence of gadget with the same name). However, this could lead us to some issues at server startup. In server startup, each CApp will get redeployed and since there are already deployed gadget exists, redeployment will also fail. We can prevent this by checking whether a particular existing gadget come from a CApp being deployed, i.e, if the gadget "x" deployed from CApp "A", we will allow redeploying CApp "A". . > > On Wed, Nov 11, 2015 at 2:25 PM, Nirmal Fernando <nir...@wso2.com> wrote: > >> Under a single tenant, what's the usage of having two X named gadgets? >> >> On Wed, Nov 11, 2015 at 1:56 PM, Sachith Withana <sach...@wso2.com> >> wrote: >> >>> Hi all, >>> >>> Currently in the CApp deployment, the gadgets and the layout are copied >>> to gadget or layout directories under the tenant ID. >>> >>> With the current implementation, if there's already a gadget deployed >>> called "x", and another CApp tries to deploy its own gadget called "x", the >>> previous gadget gets overridden since all the gadgets are copied to the >>> same gadget folder for the same tenant. >>> >>> IMO this should be prevented. >>> >>> If we prefix the gadget folder with the respective CApp name, since the >>> gadget name taken from a property file inside the gadget folder, there will >>> be multiple gadgets with the same name appearing in the dashboard. >>> >>> Any thoughts on how we could solve this issue? >>> >>> >>> -- >>> Sachith Withana >>> Software Engineer; WSO2 Inc.; http://wso2.com >>> E-mail: sachith AT wso2.com >>> M: +94715518127 >>> Linked-In: <http://goog_416592669> >>> https://lk.linkedin.com/in/sachithwithana >>> >>> _______________________________________________ >>> Architecture mailing list >>> Architecture@wso2.org >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> >> Thanks & regards, >> Nirmal >> >> Team Lead - WSO2 Machine Learner >> Associate Technical Lead - Data Technologies Team, WSO2 Inc. >> Mobile: +94715779733 >> Blog: http://nirmalfdo.blogspot.com/ >> >> >> > > > -- > Sachith Withana > Software Engineer; WSO2 Inc.; http://wso2.com > E-mail: sachith AT wso2.com > M: +94715518127 > Linked-In: <http://goog_416592669> > https://lk.linkedin.com/in/sachithwithana > > _______________________________________________ > Architecture mailing list > Architecture@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Thanks & Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture