VolkovLabs / business-table

The Business Table panel is a Grafana plugin that allows to summarize large amounts of data from various data sources.
https://docs.volkovlabs.io
Apache License 2.0
13 stars 1 forks source link

Business Table version version 1.6.0, Text Area error for \n (next line character) #173

Closed KaungMAung closed 2 days ago

KaungMAung commented 3 days ago

Grafana Version 11.2.2 Business Table version version 1.6.0 Issue: Once enter nexxt line (CR) character at Text Area and submit.It can successfully submitted and update data in DB. But when edit again, and submit, got error "Error: Bad control character in string literal in JSON at position 143 (line 5 column 77)" If we remove next line character, we can submit. This can be reproduced.

Thanks and Rgds, K image

KaungMAung commented 3 days ago

I found out that Business Table version version 1.7.0 also behave same way. You need to at least do some edit to Text Area Field (like just space and delete back), then we can submit. If not, it will show error.

mikhail-vl commented 3 days ago

@KaungMAung The issue supposed to be updated in v1.7.0.

@vitPinchuk Could you please double check "You need to at least do some edit to Text Area Field (like just space and delete back), then we can submit. If not, it will show error.".

KaungMAung commented 3 days ago

I did try with 1.7.0 and encountered same issue.

mikhail-vl commented 3 days ago

@KaungMAung We will double check and update in the upcoming v1.8.0 if required.

KaungMAung commented 3 days ago

@mikhail-vl thank you so much. I will raise feature request separately for displaying Text in Text Area. Right now, it displays like a string without newlines.

mikhail-vl commented 3 days ago

@KaungMAung Please do.