slms4redd / admin-interface

Administration interface for the SLMS portal
1 stars 3 forks source link

Bug on creation of charts for the statistics #72

Open alessio-alfonsetti opened 7 years ago

alessio-alfonsetti commented 7 years ago

When the charts are created as result of the elaboration of the .groovy and .html file, the charts are stored in geostore with a wrong URL - e.g.:

http://**localhost**/stg_geostore/rest/misc/category/name/ChartData/resource/name/district_lulc_ipcc_two_chartscript_172_en/data?name=district_lulc_ipcc_two_chartscript_172_en

INSTEAD OF:

http://**nfms.lk**/stg_geostore/rest/misc/category/name/ChartData/resource/name/district_lulc_ipcc_two_chartscript_172_en/data?name=district_lulc_ipcc_two_chartscript_172_en

Damianofds commented 7 years ago

Hi Alessio,

can you kindly further explain this issue?

The generated chart is stored in the Data attribute of a Geostore resource hence in order to retrieve it you have invoke the Geostore APIs. It's up to the client code to set the correctly Geostore domain.

If the Chart HTML code contains links to external resources (like images, other scripts, stylesheet) their URLs must be correctly set in the Chart template used to generate the Chart Data.

On Tue, Sep 27, 2016 at 1:25 PM, Alessio notifications@github.com wrote:

When the charts are created as result of the elaboration of the .groovy and .html file, the charts are stored in geostore with a wrong URL - e.g.:

http://_localhost_/stg_geostore/rest/misc/category/name/ ChartData/resource/name/district_lulc_ipcctwo chartscript_172_en/data?name=district_lulc_ipcc_two_chartscript_172_en

INSTEAD OF:

http://_nfms.lk http://nfms.lk_/stg_geostore/rest/misc/category/name/ ChartData/resource/name/district_lulc_ipcctwo chartscript_172_en/data?name=district_lulc_ipcc_two_chartscript_172_en

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/slms4redd/admin-interface/issues/72, or mute the thread https://github.com/notifications/unsubscribe-auth/ABl92vS-6gtSCjRkAGfnv7wlSfMpMPQFks5quP0pgaJpZM4KHjT3 .