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.

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

Reply via email to