VolkovLabs / business-forms

The Business Forms panel is a conceptually new plugin for Grafana. It is the first plugin that allows inserting and updating application data, as well as modifying configuration directly from your Grafana dashboard.
https://docs.volkovlabs.io
Apache License 2.0
86 stars 10 forks source link

Getting the error Request ReferenceError: data is not defined after plugin upgrade to 4.5 from 3.7 #495

Closed vanimesh closed 2 months ago

vanimesh commented 2 months ago

Hi Team,

I am getting the error "Request ReferenceError: data is not defined" after upgrading the plugin to 4.5. I am using the element of type file

vanimesh commented 2 months ago

Please do let me know if any further details required

vanimesh commented 2 months ago

image

vitPinchuk commented 2 months ago

@vanimesh Thank you for your question

In version 4.0.0 were Breaking changes bounded with non-context code parameters.

4.0.0 (2024-07-01)

data -> context.panel.data

Please see the non-context code and update it to use the context

If that doesn't help, provide your JSON dashboards, please. Thanks

mikhail-vl commented 2 months ago

Updated parameters also described in the documentation: https://volkovlabs.io/plugins/business-forms/code/

We have migration logic from previous versions of Business Forms, but it's impossible to cover all use cases. Sometimes you can see undefined errors which should be updated manually.