mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 01:28:59 +08:00
fix: use updated query value on test query, restrict direct commit to… (#4210)
* fix: use updated query value on test query, restrict direct commit to develop,main * fix: reset error preview on success
This commit is contained in:
parent
e557ff273f
commit
b557ca5519
@ -2,3 +2,19 @@
|
|||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
cd frontend && yarn run commitlint --edit $1
|
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
|
@ -140,11 +140,12 @@ function VariableItem({
|
|||||||
enabled: false,
|
enabled: false,
|
||||||
queryFn: () =>
|
queryFn: () =>
|
||||||
dashboardVariablesQuery({
|
dashboardVariablesQuery({
|
||||||
query: variableData.queryValue || '',
|
query: variableQueryValue || '',
|
||||||
variables: variablePropsToPayloadVariables(existingVariables),
|
variables: variablePropsToPayloadVariables(existingVariables),
|
||||||
}),
|
}),
|
||||||
refetchOnWindowFocus: false,
|
refetchOnWindowFocus: false,
|
||||||
onSuccess: (response) => {
|
onSuccess: (response) => {
|
||||||
|
setErrorPreview(null);
|
||||||
handleQueryResult(response);
|
handleQueryResult(response);
|
||||||
},
|
},
|
||||||
onError: (error: {
|
onError: (error: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user