-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
fix: parameterize titles correctly #14509
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14509 +/- ##
==========================================
- Coverage 77.15% 77.06% -0.09%
==========================================
Files 958 958
Lines 48241 48241
Branches 5636 5636
==========================================
- Hits 37219 37178 -41
- Misses 10821 10862 +41
Partials 201 201
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -837,7 +837,7 @@ def explore( # pylint: disable=too-many-locals,too-many-return-statements,too-m | |||
bootstrap_data, default=utils.pessimistic_json_iso_dttm_ser | |||
), | |||
entry="explore", | |||
title=title, | |||
title=title.__str__(), |
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.
wait, so title
is a instance of LazyString? Seems like it should just be a string here
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.
Title is an instance of lazystring in certain cases. The call to __str__()
evaluates it to a string.
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 see now, it's title = _("Explore - %(table)s", table=table_name)
that's the problematic code path
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.
any reason to use title.__str__()
over str(title)
?
(cherry picked from commit 52dbe31)
(cherry picked from commit 52dbe31)
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION