-
Notifications
You must be signed in to change notification settings - Fork 13.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
feat: reading language from url + resource type check fix #30318
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r for r in user.resources if r["type"] == GuestTokenResourceType.DASHBOARD | ||
r for r in user.resources if r["type"] == GuestTokenResourceType.DASHBOARD.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this was already fixed here: #30042
@@ -111,6 +111,14 @@ export const URL_PARAMS = { | |||
name: 'focused_chart', | |||
type: 'number', | |||
}, | |||
language: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the correct parameter here should be locale which is comprised of both the language and region. Another point is that we should be able to infer the currency from the locale.
SUMMARY
fix(embedded dashboard): resource type was not checked appropriately against enum.
feat(UI): added currency and language to URL_PARAMS
feat(API): using language based on query parameter if found and defaulting to session value
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION