-
Notifications
You must be signed in to change notification settings - Fork 17.6k
feat: enable translation or customization of the constants "<NULL>", "TRUE", "FALSE" and "<empty string>" #40919
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ import { render, screen, userEvent } from 'spec/helpers/testing-library'; | |
| import CollectionControl from '.'; | ||
|
|
||
| jest.mock('@superset-ui/chart-controls', () => ({ | ||
| ...jest.requireActual('@superset-ui/chart-controls'), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mock targets non-existent export
The mock targets Code suggestionCheck the AI-generated fix before applying Code Review Run #f1b1a5 Should Bito avoid suggestions like this for future reviews? (Manage Rules)
|
||
| InfoTooltip: (props: any) => ( | ||
| <button | ||
| onClick={props.onClick} | ||
|
|
||
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.
The comment at line 30 states 'If you change any constants, make sure to also change constants.py', but the new TRUE_STRING and FALSE_STRING constants lack Python counterparts. Either update the comment to scope it to NULL_STRING/EMPTY_STRING, or add the new constants to Python to honor the stated contract.
Code Review Run #91c55e
Should Bito avoid suggestions like this for future reviews? (Manage Rules)