-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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.
Hi @nyohasstium - just curious your thoughts on the review comments. Let us know if we can help you carry this effort forward. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #30318 +/- ##
===========================================
+ Coverage 60.48% 83.88% +23.40%
===========================================
Files 1931 533 -1398
Lines 76236 38495 -37741
Branches 8568 0 -8568
===========================================
- Hits 46114 32293 -13821
+ Misses 28017 6202 -21815
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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