Skip to content
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(formatters): Add custom d3-time-format locale #24263

Merged
merged 27 commits into from
Jun 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5b9acd5
Add default config for time format
matheusbsilva May 30, 2023
23a7515
Add support for locale on createMultiFormatter
matheusbsilva May 30, 2023
febd85e
Add support to locale on time format registry
matheusbsilva May 30, 2023
c3083ea
Pass locale attribute to smart formatters
matheusbsilva May 31, 2023
e592a3f
Change smart formatters
matheusbsilva May 31, 2023
fa0f0cd
Fix smart detailed id
matheusbsilva May 31, 2023
807f370
Change setup formatters to load smart formatters into the registry
matheusbsilva May 31, 2023
94c50c3
Use registry to retrieve smart date formatters
matheusbsilva May 31, 2023
308dd62
Add d3_time_format to bootstrap data
matheusbsilva May 31, 2023
e25b615
Load d3_time_format into setupFormatter
matheusbsilva May 31, 2023
63cb0a7
Add d3_time_format to base views
matheusbsilva May 31, 2023
0343e59
Add D3_TIME_FORMAT to config
matheusbsilva May 31, 2023
4884d71
Add d3-time-format to package
matheusbsilva May 31, 2023
06d0dcc
Update tests for smart date formatters
matheusbsilva May 31, 2023
4298700
Fix time format index test
matheusbsilva Jun 1, 2023
1b01a46
Fix nvd3 utils tests
matheusbsilva Jun 1, 2023
07605e4
Remove unused code and add tests for time registry
matheusbsilva Jun 1, 2023
b942848
Fix linter
matheusbsilva Jun 1, 2023
accabf1
Merge remote-tracking branch 'origin/master' into add-time-translation
matheusbsilva Jul 5, 2023
38b4890
Remove merge error
matheusbsilva Jul 11, 2023
51ad64f
Merge remote-tracking branch 'origin' into add-time-translation
matheusbsilva Oct 22, 2023
cbc8f2a
Merge branch 'master' into add-time-translation
matheusbsilva Nov 8, 2023
595ec24
Merge remote-tracking branch 'origin' into add-time-translation
matheusbsilva Mar 28, 2024
f3bf4b5
Fix linting errors
matheusbsilva Mar 28, 2024
35c7b21
Add tests for createMultiFormatter
matheusbsilva Apr 3, 2024
d6fd287
Merge branch 'master' into add-time-translation
matheusbsilva May 7, 2024
9875e2c
Fix linter
matheusbsilva May 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add d3_time_format to base views
  • Loading branch information
matheusbsilva committed Jun 14, 2023
commit 63cb0a78965e94d09a23c7292ce3f961c839dc15
1 change: 1 addition & 0 deletions superset/views/base.py
Original file line number Diff line number Diff line change
@@ -431,6 +431,7 @@ def cached_common_bootstrap_data(user: User) -> dict[str, Any]:
"locale": locale,
"language_pack": get_language_pack(locale),
"d3_format": conf.get("D3_FORMAT"),
"d3_time_format": conf.get("D3_TIME_FORMAT"),
"feature_flags": get_feature_flags(),
"extra_sequential_color_schemes": conf["EXTRA_SEQUENTIAL_COLOR_SCHEMES"],
"extra_categorical_color_schemes": conf["EXTRA_CATEGORICAL_COLOR_SCHEMES"],