Giter Site home page Giter Site logo

仪表盘变量值不能为空 about fe HOT 7 OPEN

n9e avatar n9e commented on June 28, 2024
仪表盘变量值不能为空

from fe.

Comments (7)

jsers avatar jsers commented on June 28, 2024 1

我感觉你困惑的是,变量明明没有可选项了选择器里面却回填了一个值在,这个是因为 URL 里面有设置该变量参数的值 grafana 是变量的可选项为空的时候会有个 “None” 占位提示该变量没有值可选,这块后面夜莺也优化下

是这个意思

好的,这个后面我们加下

from fe.

jsers avatar jsers commented on June 28, 2024

from fe.

jangrui avatar jangrui commented on June 28, 2024

1.检查下URL的query search里面是否有类似space=null 2.尝试清空下浏览器本地缓存 Jangrui @.> 于2023年6月14日星期三16:12写入:
……
[image: image] < https://user-images.githubusercontent.com/5895682/245722136-dc3eef72-0811-4659-b75d-87d3f7c1f032.png > —直接回复此邮件,在GitHub < #43 >上查看,或取消订阅 < https://github.com/notifications/unsubscribe-auth/ABYUU6S3XUEJ7XPAAL3KVNDXLFW5ZANCNFSM6AAAAAAZF7AI24 >。您收到此消息是因为您订阅了此线路程序。消息ID:
@. >

无痕模式打开第一次不会出现,只要正常的值被加载一次,后面都会附带这个值。
image

  • 正常加载(namespace下有值)
    image
  • 不正常加载 (namespace 下没有值)
    image
    image
    image

from fe.

jsers avatar jsers commented on June 28, 2024

看了上面几个截图没发现有啥问题

  1. 回头看 issue 标题,单选的变量在有可选列表的时候是不能设置为空的
  2. 会自动填充一个不相关的值。 > 如果打开大盘 URL query 或是 本地缓存 里面没有变量的值,那么就会自动选中可选列表里面第一个值

from fe.

jangrui avatar jangrui commented on June 28, 2024

看了上面几个截图没发现有啥问题

  1. 回头看 issue 标题,单选的变量在有可选列表的时候是不能设置为空的
  2. 会自动填充一个不相关的值。 > 如果打开大盘 URL query 或是 本地缓存 里面没有变量的值,那么就会自动选中可选列表里面第一个值

grafana 如果没有变量值,会给 None,这样下面的表盘不会有数据。
image
image
image

from fe.

jsers avatar jsers commented on June 28, 2024

我感觉你困惑的是,变量明明没有可选项了选择器里面却回填了一个值在,这个是因为 URL 里面有设置该变量参数的值
grafana 是变量的可选项为空的时候会有个 “None” 占位提示该变量没有值可选,这块后面夜莺也优化下

from fe.

jangrui avatar jangrui commented on June 28, 2024

我感觉你困惑的是,变量明明没有可选项了选择器里面却回填了一个值在,这个是因为 URL 里面有设置该变量参数的值 grafana 是变量的可选项为空的时候会有个 “None” 占位提示该变量没有值可选,这块后面夜莺也优化下

是这个意思

from fe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.