Hi Tanya,

Yes, you have to give the current host details of your server at [1]. So it
will set the hostname to what you given on the config.

@Dmitry

Can you please try changing the host details to match your server by using
the following config [1]? this might solve your problem.

[1]
https://github.com/wso2/carbon-dashboards/blob/v2.0.3/apps/portal/configs/designer.json#L76

Thank you,

On Sun, Jul 2, 2017 at 9:28 PM, Tanya Madurapperuma <[email protected]> wrote:

> Hi Dmitry,
>
> WSO2IS-Analytics 5.30 version is using carbon dashboards 2.0.3 version.
> [1]. This particular version of carbon dashboards has pluggable store
> support where you can plug any desired third party gadget store. The
> default store is fs (file system).
> So even though you specified the gadget url or thumbnail url prefixing
> with a store:// this version of carbon dashboards doesn't require that.
>
> "data": {
>         "url": "gadget/generic-gadget/index.xml"
>     },
>
> instead of
>
> "data": {
>         "url": "store://gadget/generic-gadget/index.xml"
>     },
>
> But even if you used store:// , it also should work since this feature is
> written in a backward compatible way. [2]
>
> URL resolving logic for the default store fs can be found at  [3] which
> uses relativePrefix function at [4]
>
> AFAIR if you have a different host other than localhost, you need to
> define your hostname at [5] in designer.json file. @ NipunaC : Please
> correct me if I am wrong.
>
>
> [1] https://github.com/wso2/analytics-is/blob/v5.3.0/pom.xml#L523
> [2] https://github.com/wso2/carbon-dashboards/commit/
> 10f9934e4a58867115359b3150ef6f06128f6fc7
> [3] https://github.com/wso2/carbon-dashboards/blob/v2.0.3/
> apps/portal/extensions/uris/fs/index.js
> [4] https://github.com/wso2/carbon-dashboards/blob/v2.0.3/
> apps/portal/js/ues.js#L7
> [5] https://github.com/wso2/carbon-dashboards/blob/v2.0.3/
> apps/portal/configs/designer.json#L76
>
> Thanks,
> Tanya
>
> On Sat, Jul 1, 2017 at 3:04 AM, Gimantha Bandara <[email protected]>
> wrote:
>
>>
>> On Sat, Jul 1, 2017 at 2:04 AM Dmitry Lukyanov <[email protected]> wrote:
>>
>>> Hello all,
>>>
>>> Please help me to understand how "store://" resolved to real url.
>>> wso2 analytics connects to itself by localhost for urls defined as
>>> store://... and I need to change this for docker.
>>>
>>> Sample gadget.json file:
>>> https://docs.wso2.com/display/DS200/Creating+a+Gadget#Creati
>>> ngaGadget-Step3-Definethegadget.jsonfile
>>>
>>> Thanks,
>>>  Dmitry
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>> --
>> Gimantha Bandara
>> Software Engineer
>> WSO2. Inc : http://wso2.com
>> Mobile : +94714961919 <071%20496%201919>
>>
>
>
>
> --
> Tanya Madurapperuma
>
> Associate Technical Lead,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439 <+94%2071%20818%204439>
> Blog : http://tanyamadurapperuma.blogspot.com
>



-- 
Nipuna Marcus
*Senior Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
[email protected]
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to