On 11 November 2015 at 14:41, Malith Dhanushka <[email protected]> wrote:
> ok then. Why we cant simply override the existing gadget with the same > name(by giving a warning). even when server restart and redeploying the > Capps. > +1, I was under the impression that we disallow having gadgets with the same name for a single tenant. IMO that way, we can maintain a consistent story throughout, where the client is aware that older gadgets could become overwritten with the new ones if the names are the same. This way, we can also avoid situations where multiple gadgets may exist with the same name in the Dashboard. We could also print a WARN level log saying that an earlier gadget has been overwritten in this case. > > > On Wed, Nov 11, 2015 at 2:14 PM, Sachith Withana <[email protected]> wrote: > >> >> >> On Wed, Nov 11, 2015 at 2:10 PM, Malith Dhanushka <[email protected]> >> wrote: >> >>> Does the current model shows the gadgets created by one tenant to >>> another tenant? >>> >> No. >> >>> >>> On Wed, Nov 11, 2015 at 1:56 PM, Sachith Withana <[email protected]> >>> 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 >>>> [email protected] >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> Malith Dhanushka >>> Senior Software Engineer - Data Technologies >>> *WSO2, Inc. : wso2.com <http://wso2.com/>* >>> *Mobile* : +94 716 506 693 >>> >>> _______________________________________________ >>> Architecture mailing list >>> [email protected] >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> 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 >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > Malith Dhanushka > Senior Software Engineer - Data Technologies > *WSO2, Inc. : wso2.com <http://wso2.com/>* > *Mobile* : +94 716 506 693 > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Gokul Balakrishnan Senior Software Engineer, WSO2, Inc. http://wso2.com Mob: +94 77 593 5789 | +1 650 272 9927
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
