Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: use updated query value on test query, restrict direct commit to… (#4210)

Yunus Mb557ca551986
diff --git a/frontend/.husky/commit-msg b/frontend/.husky/commit-msg
index be422b654c..cb50d87a2d 100755
--- a/frontend/.husky/commit-msg
+++ b/frontend/.husky/commit-msg
@@ -2,3 +2,19 @@
. "$(dirname "$0")/_/husky.sh"
cd frontend && yarn run commitlint --edit $1
+
+branch="$(git rev-parse --abbrev-ref HEAD)"
+
+color_red="$(tput setaf 1)"
+bold="$(tput bold)"
+reset="$(tput sgr0)"
+
+if [ "$branch" = "main" ]; then
+ echo "${color_red}${bold}You can't commit directly to the main branch${reset}"
+ exit 1
+fi
+
+if [ "$branch" = "develop" ]; then
+ echo "${color_red}${bold}You can't commit directly to the develop branch${reset}"
+ exit 1
+fi
\ No newline at end of file
diff --git a/frontend/src/container/NewDashboard/DashboardSettings/Variables/VariableItem/VariableItem.tsx b/frontend/src/container/NewDashboard/DashboardSettings/Variables/VariableItem/VariableItem.tsx
index 91faea4fcc..76f0464bd2 100644
--- a/frontend/src/container/NewDashboard/DashboardSettings/Variables/VariableItem/VariableItem.tsx
+++ b/frontend/src/container/NewDashboard/DashboardSettings/Variables/VariableItem/VariableItem.tsx
@@ -140,11 +140,12 @@ function VariableItem({
enabled: false,
queryFn: () =>
dashboardVariablesQuery({
- query: variableData.queryValue || '',
+ query: variableQueryValue || '',
variables: variablePropsToPayloadVariables(existingVariables),
}),
refetchOnWindowFocus: false,
onSuccess: (response) => {
+ setErrorPreview(null);
handleQueryResult(response);
},
onError: (error: {