Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Configuration changes via API not reflected on dashboard #27

Closed
deshsidd opened this issue Nov 11, 2024 · 0 comments · Fixed by #28
Closed

[BUG] Configuration changes via API not reflected on dashboard #27

deshsidd opened this issue Nov 11, 2024 · 0 comments · Fixed by #28
Labels
bug Something isn't working untriaged

Comments

@deshsidd
Copy link
Collaborator

deshsidd commented Nov 11, 2024

What is the bug?

Configuration changes via API not reflected on dashboard in my local testing on the latest main.
Even after page refresh the configuration changes are not updated properly.
Cmd+Shift+R to hard reload cache also did not work.

How can one reproduce the bug?

  1. Configure top N with only latency enabled:
{
    "persistent": {
        "search.insights.top_queries.latency.enabled" : true,
        "search.insights.top_queries.group_by" : "none",
        "search.insights.top_queries.latency.window_size" : "1m",
        "search.insights.top_queries.latency.top_n_size" : 10
    }
}

Shown properly on the UI:
image

  1. API call to enable cpu and memory followed by refreshing the UI page:
{
    "acknowledged": true,
    "persistent": {
        "search": {
            "insights": {
                "top_queries": {
                    "cpu": {
                        "enabled": "true"
                    },
                    "group_by": "none",
                    "memory": {
                        "enabled": "true"
                    },
                    "latency": {
                        "top_n_size": "10",
                        "window_size": "1m",
                        "enabled": "true"
                    }
                }
            }
        }
    },
    "transient": {}
}

Statuses for configuration changes not updated on the UI for CPU and Memory:
image

CPU configuration section not updated:
image

Memory configuration section not updated:
image

What is the expected behavior?

Any configuration change on the backend should be updated on the UI - especially after page refresh.

What is your host/environment?

Operating system, version.
mac os

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

Add any other context about the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
1 participant