mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 08:09:22 +00:00
### **User description** - Try to lower the frequency of the following error. - Mainly, it's due to echarts.  ___ ### **PR Type** Bug fix, Enhancement ___ ### **Description** - Enable lazyUpdate and notMerge in setOption - Wrap formatter functions with try-catch - Provide safe default returns on errors - Improve chart lazy loading and error resilience ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>ChartRenderer.vue</strong><dd><code>Enable lazy chart updates in ChartRenderer</code> </dd></summary> <hr> web/src/components/dashboards/panels/ChartRenderer.vue <li>Added <code>lazyUpdate: true</code> and <code>notMerge: true</code> options to <code>chart.setOption</code><br> <li> Enabled legend updates with lazy loading<br> <li> Updated initial chart set up calls for performance </details> </td> <td><a href="https://github.com/openobserve/openobserve/pull/7387/files#diff-353fab39cd76197438814db862c4a506636ea7e15633ee92d9269adbd97fe67c">+6/-6</a> </td> </tr> </table></td></tr><tr><td><strong>Error handling</strong></td><td><table> <tr> <td> <details> <summary><strong>convertSQLData.ts</strong><dd><code>Add exception handling in formatters</code> </dd></summary> <hr> web/src/utils/dashboard/convertSQLData.ts <li>Wrapped tooltip and formatter functions in try-catch<br> <li> Added safe default return values on errors<br> <li> Used optional chaining for null-safe access </details> </td> <td><a href="https://github.com/openobserve/openobserve/pull/7387/files#diff-88c0e865040a20b2c8bb7d77e7f6bd187a5b07c1645c120223bc9d59603752c3">+451/-368</a></td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details>