Grafana Business Text HTML duplication

Hello everyone

I tried to create a Kanban board in Grafana using the Business Text plugin. The board has 3 lanes, “ToDo”, “Progress”, “Done”. When you switch a task to a different lane, the status code in our table changes to 1, 2, or 3. However, if you now switch lanes, change the status code, and press the Grafana refresh button, Grafana will create the same task item in the same track. However, no second element is created in the database. My code seems to be correct and I don’t know how to fix this. Is it a Grafana special logic or something?

Thank you for any help :slight_smile:

See the pictures.

Screenshot 2024-12-05 094659
Screenshot 2024-12-05 094659
1145×524 26.9 KB

Screenshot 2024-12-05 094754
Screenshot 2024-12-05 094754
1234×475 31.3 KB

Hello @mdavidallen,

It sounds like you're experiencing an issue where the task items on your Kanban board are being duplicated visually in Grafana when you refresh, but not in your database. This could be due to how the Business Text plugin is handling state changes and rendering updates.

Here are a few things you might want to check or try:

  1. State Management: Ensure that the state of your tasks is being correctly managed and updated in your code. If the state isn't being reset or updated properly after a change, it might cause the UI to render duplicates.

  2. Data Source Configuration: Double-check your data source configuration to ensure that the queries are correctly fetching the current state of your tasks from the database. If the data source is caching old data, it might lead to duplicate entries being displayed.

  3. Plugin Logic: Review the logic in your Business Text plugin setup. Make sure that the logic for updating the task status and refreshing the board is correctly implemented. You might need to add logic to prevent duplicate rendering when the refresh button is pressed.

  4. Debugging: Use the browser's developer tools to inspect the network requests and console logs when you perform actions on the board. This can help you identify if the same data is being fetched multiple times or if there are any errors in the console.

  5. Grafana Logs: Check the Grafana server logs for any errors or warnings that might give you more insight into what's happening when you refresh the board.

  6. Plugin Documentation: Refer to the Business Text plugin documentation for any specific guidance on handling state changes and rendering updates.

If none of these steps resolve the issue, consider reaching out to the plugin maintainers or the Grafana community for further assistance. They might have encountered similar issues and could offer more targeted advice.

I hope this helps you troubleshoot the problem!

xoxo Grot

grot is still learning and improving, please let me know how I did by reacting below.

👍🏽 or 👎🏽