-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Dashboard Title Slug does not support the mix of English and Chinese in 9.4.1 #66373
Comments
thank you for creating this issue @alexandnpu I am forwarding it to the dataviz squad for review ( PR was assigned to this squad) |
@tonypowa , thanks a lot! Will updates be put here? |
yes, the team will review this issue, and inform you on the next steps |
for users, I have no workaround right now. The suggestion for users is to avoid using the mixture of Chinese and English, use all Chinese instead. I am still waiting for the fix of grafana team. |
Same issue |
Same issue |
I've encountered the similar issue in Japanese: importing the dashboard overwrite the existing one. In the older version of Grafana, based on the migration data I examined, even when Japanese was used, Romaji and Chinese Pinyin was assigned, which functioned as a unique ID, at least. As a workaround, I directly updated the slug value in the database record, allowing me to successfully import the dashboard.
Environment: Grafana version: 10.0.1 |
@yatt 🙏 Thank you for bringing that up too, we've tracked down that issue to a function using the slug rather than title to look for whether the dashboard already exists when updating it. That should be fixed by #70723. I'll try to summarize a little bit of what's been happening with the slugs (mostly for developers working on permutations of this issue, but also for anyone interested):
|
What happened:
When I create a dashboard with one title consisting both English and Chinese,the dashboard slug after creation will ignore the Chinese part. This prevents making the second dashboard with the same English prefix.
e.g.
the first dashboard title is "aws测试", the second dashboard title is "aws生产".
The first dashboard will be created with no error, while the second one will cause a dashboard conflict warning.
What you expected to happen:
The second dashboard will be created with no error or warning.
I went through the code, and found the slug change
and this PR.
It seems that the slug change causes this unexpected behavior.
I did a test in TestSlugifyTitle, which is my input and expected result.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: