Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map not rendering correctly in 6.3 #17

Closed
code4me-xx opened this issue Oct 2, 2019 · 12 comments
Closed

Map not rendering correctly in 6.3 #17

code4me-xx opened this issue Oct 2, 2019 · 12 comments

Comments

@code4me-xx
Copy link

Hi,

I've just tried this panel and like it very much, but I realized that it have the same rendering problem as the ordinary worldmap on Grafana >= 6.3.

The fix is to use a low refresh interval, but they actually solved it.

grafana#212

Regards Peter

@amotl
Copy link

amotl commented Oct 2, 2019

Dear Peter,

the respective fix by @torkelo for mitigating the rendering woes should already have landed here through f652100, see also grafana#213. Thanks for downstreaming this, @ryantxu!

However, we have not been able release an installeable artifact yet, so you should try to build from source in order to get that.

We will be happy to hear about the outcome.

Cheers,
Andreas.

@amotl amotl changed the title Map not redering correcly in 6.3 Map not rendering correcly in 6.3 Oct 2, 2019
@amotl amotl changed the title Map not rendering correcly in 6.3 Map not rendering correctly in 6.3 Oct 2, 2019
@code4me-xx
Copy link
Author

Hi Andreas,

Thank you for the prompt response :-)

I've tried to build from source but it fails on 'npm run build' with:

ERROR in /home/mint/go/src/github.com/grafana/grafana/data/plugins/grafana-worldmap-panel/src/core.ts [tsl] ERROR in /home/mint/go/src/github.com/grafana/grafana/data/plugins/grafana-worldmap-panel/src/core.ts(54,17) TS2339: Property 'url' does not exist on type 'JQueryXHR'

Regards Peter

@amotl
Copy link

amotl commented Oct 2, 2019

Hi Peter,

invoking yarn install and then yarn build recently worked for us, see also #8. You are working on the "develop" branch, right?

Please let us know about your outcome.

With kind regards,
Andreas.

@code4me-xx
Copy link
Author

Hi Andreas,

I deleted everything and started over, making sure it was the development branch. Using yarn install and yarn build gives the same error.

Building Grafana and plugins from source is quite new for me so there might be something wrong with the tool chain, but Grafana is building and running fine using this guide https://grafana.com/docs/v6.2/project/building_from_source/

I'm trying to follow the steps in CONTRIBUTING.md, but is that wrong?

Regards Peter

@amotl
Copy link

amotl commented Oct 4, 2019

Dear Peter,

sorry to hear that building from source doesn't work for you out of the box. I just tried to repeat the process and can confirm it works for us.

git clone https://github.com/panodata/grafana-worldmap-panel
cd grafana-worldmap-panel
yarn install
yarn build

Then, you would symlink the dist/ folder into the Grafana plugins directory, which is /var/lib/grafana/plugins on Linux and /usr/local/var/lib/grafana/plugins on macOS/Homebrew, like

ln -s $(pwd)/dist /usr/local/var/lib/grafana/plugins/grafana-worldmap-panel-dev

While I can't say anything about the contents of CONTRIBUTING.md being outdated, we are using yarn over here which works pretty well for us.

With kind regards,
Andreas.

@code4me-xx
Copy link
Author

Hi Andreas,

I've made a fresh Linux with only git and yarn, and was able to build the plugin. I tried to use the panel on a development server but the name is apparently the same as the original map.

I'll try again after the weekend.

Regards Peter

@code4me-xx
Copy link
Author

code4me-xx commented Oct 7, 2019

Hi Andreas,

I've managed to build and deploy the source, but it isn't rendering correctly. It is better and display a map, but it isn't using the entire panel before the refresh timer kicks in (See examples below).

66287879-8f38fc80-e8d7-11e9-88bd-21db1322a402

66287910-b1327f00-e8d7-11e9-90d7-dacf3dcc9523

Regards Peter

@amotl
Copy link

amotl commented Oct 7, 2019

Dear Peter,

thanks for the update. I've experienced the behavior you are observing a few times during development of the Worldmap Panel improvements. Hoping that the current thing would still work on Grafana 6.3, there seem to have been some updates on Grafana 6.4 which influence the timing behavior obviously in the same way I've recognized before.

With kind regards,
Andreas.

@amotl
Copy link

amotl commented Oct 8, 2019

Hi there,

looks like Grafana 6.4.2 makes things work again, see grafana#223. Please confirm.

Cheers,
Andreas.

@amotl
Copy link

amotl commented Oct 28, 2019

Dear Peter,

are you able to confirm this starts working for you when using Grafana >6.4.2 again?

With kind regards,
Andreas.

@code4me-xx
Copy link
Author

Hi Andreas,

Yes it works. Thank you.

Regards Peter

@amotl
Copy link

amotl commented Oct 29, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants