Skip to content

[dashboard] fix grafana dashboard generation bug#56346

Merged
can-anyscale merged 1 commit intoray-project:masterfrom
eric-higgins-ai:fix-dashboard-generation
Sep 9, 2025
Merged

[dashboard] fix grafana dashboard generation bug#56346
can-anyscale merged 1 commit intoray-project:masterfrom
eric-higgins-ai:fix-dashboard-generation

Conversation

@eric-higgins-ai
Copy link
Copy Markdown
Contributor

@eric-higgins-ai eric-higgins-ai commented Sep 8, 2025

Why are these changes needed?

If global_filters_str is empty then some queries in the dashboard contain ,, in their filters, which is invalid.

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: eric-higgins-ai <erichiggins@applied.co>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes a bug in the Grafana dashboard generation where an empty global_filters_str could lead to invalid queries. The change correctly handles this specific case. My review provides a suggestion to make the fix more robust and Pythonic by using a list comprehension. This not only addresses the reported issue but also handles other edge cases, such as filter strings containing multiple or trailing commas, further improving the code's correctness and maintainability.

@alanwguo
Copy link
Copy Markdown
Contributor

alanwguo commented Sep 8, 2025

thanks!

@alanwguo alanwguo added the go add ONLY when ready to merge, run all tests label Sep 8, 2025
@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Sep 8, 2025
@can-anyscale can-anyscale merged commit d72d509 into ray-project:master Sep 9, 2025
5 checks passed
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Sep 10, 2025
If global_filters_str is empty then some queries in the dashboard contain ,, in their filters, which is invalid.

Signed-off-by: eric-higgins-ai <erichiggins@applied.co>
ZacAttack pushed a commit to ZacAttack/ray that referenced this pull request Sep 24, 2025
If global_filters_str is empty then some queries in the dashboard contain ,, in their filters, which is invalid.

Signed-off-by: eric-higgins-ai <erichiggins@applied.co>
Signed-off-by: zac <zac@anyscale.com>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
If global_filters_str is empty then some queries in the dashboard contain ,, in their filters, which is invalid.

Signed-off-by: eric-higgins-ai <erichiggins@applied.co>
Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 20, 2025
If global_filters_str is empty then some queries in the dashboard contain ,, in their filters, which is invalid.

Signed-off-by: eric-higgins-ai <erichiggins@applied.co>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
If global_filters_str is empty then some queries in the dashboard contain ,, in their filters, which is invalid.

Signed-off-by: eric-higgins-ai <erichiggins@applied.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants