-
Notifications
You must be signed in to change notification settings - Fork 919
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
[BUG] label template not showing value for url-image #1888
Comments
The reason is that the icons loaded are missing basePath, so the path is not correct and img can't be found. By adding the basePath in the browser, the problem is solved. Issue code is at UrlFormatEditor component. I will keep research on how to add basePath to this component. |
The bug is caused by missing base path. This PR uses opensearch_dashboards_ react context to get the base path. Append the base path to original path. Issue resolved: opensearch-project#1888 Signed-off-by: Anan Zhuang <ananzh@amazon.com>
The bug is caused by missing base path. This PR uses opensearch_dashboards_ react context to get the base path. Append the base path to original path. Issue resolved: opensearch-project#1888 Signed-off-by: Anan Zhuang <ananzh@amazon.com>
The bug is caused by missing base path. This PR uses opensearch_dashboards_ react context to get the base path. Append the base path to original path. Issue resolved: opensearch-project#1888 Signed-off-by: Anan Zhuang <ananzh@amazon.com>
The bug is caused by missing base path. This PR uses opensearch_dashboards_ react context to get the base path. Append the base path to original path. Issue resolved: opensearch-project#1888 Signed-off-by: Anan Zhuang <ananzh@amazon.com>
This is because in url format htmlConverter (https://github.com/opensearch-project/OpenSearch-Dashboards/blob/7f7c7449e8fcf3a3ad58bd8f009cc7830131758b/src/plugins/data/common/field_formats/converters/url.ts#L158)](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/808129bcf077912c2ed4af5aea517c32ec1315a5/src/plugins/data/common/field_formats/converters/url.ts#L160)
the baseUrl doesn't have the basePath (the random 3 letters, like rtl). I think there are two ways to fix this. Add the basePath in url.ts
change urlTemplateWe could also modify this from
we could see it is compile the
Currently it is set to a fixed value
To fix, we could change it to a func to fetch basePath and prepend it to the original path
|
@ananzh |
@vvavdiya Make sure you can first reproduce the issue locally - feel free to ask here if you need more help to reproduce it. |
@ananzh Thanks |
Describe the bug
Label Template not showing {{Value}} when changing field format to url-image
To Reproduce
Steps to reproduce the behavior:
[Index patterns]'
Expected behavior
That edited field should show the url-image and the field {{value}} as label next to the image
OpenSearch Version
1.2.0
Dashboards Version
1.2.0
Screenshots
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: