speakyourcode/grafana-button-panel

View on GitHub
src/buttonPanel.tsx

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function postQuery has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function postQuery(button: ButtonOptions, text: string, replaceVariables: InterpolateFunction) {
  const payload = JSON.parse(replaceVariables(button.query || '{}'));
  const ds = await getDataSourceSrv().get(button.datasource);
  const appEvents = getAppEvents();
  try {
Severity: Minor
Found in src/buttonPanel.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status