Change number format default (#7137)
* Sparkline dates aren't formatting in Time Series Table (#6976) * Exclude venv for python linter to ignore * Fix NaN error * Fix the white background shown in SQL editor on drag (#7021) This PR sets the background-color css property on `.ace_scroller` instead of `.ace_content` to prevent the white background shown during resizing of the SQL editor before drag ends. * Show tooltip with time frame (#6979) * Fix time filter control (#6978) * Enhancement of query context and object. (#6962) * added more functionalities for query context and object. * fixed cache logic * added default value for groupby * updated comments and removed print (cherry picked from commitd5b9795f87) * [fix] /superset/slice/id url is too long (#6989) (cherry picked from commit6a4d507ab6) * [WIP] fix user specified JSON metadata not updating dashboard on refresh (#7027) (cherry picked from commitcc58f0e661) * feat: add ability to change font size in big number (#7003) * Add ability to change font sizes in Big Number * rename big number to header * Add comment to clarify font size values * Allow LIMIT to be specified in parameters (#7052) * [fix] Cursor jumping when editing chart and dashboard titles (#7038) (cherry picked from commitfc1770f7b7) * Changing time table viz to pass formatTime a date (#7020) (cherry picked from commit7f3c145b1f) * [db-engine-spec] Aligning Hive/Presto partition logic (#7007) (cherry picked from commit05be866117) * [fix] explore chart from dashboard missed slice title (#7046) (cherry picked from commita6d48d4052) * fix inaccurate data calculation with adata rolling and contribution (#7035) (cherry picked from commit0782e831cd) * Adding warning message for sqllab save query (#7028) (cherry picked from commitead3d48133) * [datasource] Ensuring consistent behavior of datasource editing/saving. (#7037) * Update datasource.py * Update datasource.py (cherry picked from commitc771625f10) * [csv-upload] Fixing message encoding (#6971) (cherry picked from commit48431ab5b9) * [sql-parse] Fixing LIMIT exceptions (#6963) (cherry picked from commit3e076cb60b) * Adding custom control overrides (#6956) * Adding extraOverrides to line chart * Updating extraOverrides to fit with more cases * Moving extraOverrides to index.js * Removing webpack-merge in package.json * Fixing metrics control clearing metric (cherry picked from commite6194051f4) * [sqlparse] Fixing table name extraction for ill-defined query (#7029) (cherry picked from commit07c340cf82) * [missing values] Removing replacing missing values (#4905) (cherry picked from commit61add606ca) * [SQL Lab] Improved query and results tabs rendering reliability (#7082) closes #7080 (cherry picked from commit9b58e9f492) * Fix filter_box migration PR #6523 (#7066) * Fix filter_box migration PR #6523 * Fix druid-related bug (cherry picked from commitb210742ad2) * SQL editor layout makeover (#7102) This PR includes the following layout and css tweaks: - Using flex to layout the north and south sub panes of query pane so resizing works properly in both Chrome and Firefox - Removal of necessary wrapper divs and tweaking of css in sql lab so we can scroll to the bottom of both the table list and the results pane - Make sql lab's content not overflow vertically and layout the query result area to eliminate double scroll bars - css tweaks on the basic.html page so the loading animation appears in the center of the page across the board (cherry picked from commit71f1bbd2ec) * [forms] Fix handling of NULLs (cherry picked from commit e83a07d3dfda350cc44041cb6cbaec4510887902) * handle null column_name in sqla and druid models (cherry picked from commit 2ff721ae072b8d69c5cabddc3e1a388a596b1b6f) * Use metric name instead of metric in filter box (#7106) (cherry picked from commit003364e74e) * Bump python lib croniter to an existing version (#7132) Package maintainers should really never delete packages, but it appears this happened with croniter and resulted in breaking our builds. This PR bumps to a more recent existing version of the library (cherry picked from commit215ed392a1) * Revert PR #6933 (#7162) * [bugfix] SQL Lab 'Filter Results' doesn't stick (#7104) When using a "Search Results" criteria, the subset of rows that match the criteria get displayed. While this the filter is applied, if another query is run, the filter is still active, but not displayed in the input text box. After this change, the state of the input box sticks after subsequent queries. (cherry picked from commitd5e8d663dc) * Injectable statsd client (#7138) * Add ability to inject statsd client; some py test/reqs updates - Updated the metrics logger to allow construction with an existing statsd client, so that it can be configured by external systems or libs. - added requirements to requirements-dev.txt which are needed to run tests-eg coverage, nose - removed dependency on mock lib, it is in python stdlib now - updated tox.ini to remove the now-superfluous deps * add license to test file, and remove blank line at EOF (cherry picked from commitba19a62412) * [Lyft-GA] Enable color consistency in a dashboard (#7135) * Enable color consistency in a dashboard Moved actions, minor UI, allowed dashboard copy Fix linting errors Undo unintentional change Updated and added unit tests Fail quietly if package has not been updated Fail quietly on dashboard copy if package is old * Update packages * Remove unnecessary code * Addressed Grace's comments * Small fix for item key * Reset chart's color during exploration * Do not reset chart form data when exploring chart * Fix double scroll bars when content of sql result table overflows horizontally (#7168) The PR substracts the scrollbar height from the height of the container of the react virtualized table so we don't see double scrollbars. (cherry picked from commit7ffcabd5c0) * Change number format default * Use smart formatter instead * fix merge issues * Use SMART_NUMBER
This commit is contained in:
parent
ca6a73b028
commit
62cfb2d2e3
|
|
@ -1635,7 +1635,7 @@
|
|||
"freeForm": true,
|
||||
"label": "Number format",
|
||||
"renderTrigger": true,
|
||||
"default": ".3s",
|
||||
"default": "SMART_NUMBER",
|
||||
"choices": [
|
||||
[
|
||||
".1s",
|
||||
|
|
@ -2085,7 +2085,7 @@
|
|||
"freeForm": true,
|
||||
"label": "X Axis Format",
|
||||
"renderTrigger": true,
|
||||
"default": ".3s",
|
||||
"default": "SMART_NUMBER",
|
||||
"choices": [
|
||||
[
|
||||
".1s",
|
||||
|
|
@ -2165,7 +2165,7 @@
|
|||
"freeForm": true,
|
||||
"label": "Y Axis Format",
|
||||
"renderTrigger": true,
|
||||
"default": ".3s",
|
||||
"default": "SMART_NUMBER",
|
||||
"choices": [
|
||||
[
|
||||
".1s",
|
||||
|
|
@ -2206,7 +2206,7 @@
|
|||
"type": "SelectControl",
|
||||
"freeForm": true,
|
||||
"label": "Right Axis Format",
|
||||
"default": ".3s",
|
||||
"default": "SMART_NUMBER",
|
||||
"choices": [
|
||||
[
|
||||
".1s",
|
||||
|
|
|
|||
|
|
@ -62,9 +62,6 @@ export default {
|
|||
},
|
||||
],
|
||||
controlOverrides: {
|
||||
x_axis_format: {
|
||||
default: '.3s',
|
||||
},
|
||||
color_scheme: {
|
||||
renderTrigger: false,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ const D3_FORMAT_DOCS = 'D3 format syntax: https://github.com/d3/d3-format';
|
|||
|
||||
// input choices & options
|
||||
const D3_FORMAT_OPTIONS = [
|
||||
['SMART_NUMBER', 'Adaptative formating'],
|
||||
['.1s', '.1s (12345.432 => 10k)'],
|
||||
['.3s', '.3s (12345.432 => 12.3k)'],
|
||||
[',.1%', ',.1% (12345.432 => 1,234,543.2%)'],
|
||||
|
|
@ -989,7 +990,7 @@ export const controls = {
|
|||
freeForm: true,
|
||||
label: t('Number format'),
|
||||
renderTrigger: true,
|
||||
default: '.3s',
|
||||
default: 'SMART_NUMBER',
|
||||
choices: D3_FORMAT_OPTIONS,
|
||||
description: D3_FORMAT_DOCS,
|
||||
},
|
||||
|
|
@ -1232,7 +1233,7 @@ export const controls = {
|
|||
freeForm: true,
|
||||
label: t('X Axis Format'),
|
||||
renderTrigger: true,
|
||||
default: '.3s',
|
||||
default: 'SMART_NUMBER',
|
||||
choices: D3_FORMAT_OPTIONS,
|
||||
description: D3_FORMAT_DOCS,
|
||||
},
|
||||
|
|
@ -1252,7 +1253,7 @@ export const controls = {
|
|||
freeForm: true,
|
||||
label: t('Y Axis Format'),
|
||||
renderTrigger: true,
|
||||
default: '.3s',
|
||||
default: 'SMART_NUMBER',
|
||||
choices: D3_FORMAT_OPTIONS,
|
||||
description: D3_FORMAT_DOCS,
|
||||
mapStateToProps: (state) => {
|
||||
|
|
@ -1273,7 +1274,7 @@ export const controls = {
|
|||
type: 'SelectControl',
|
||||
freeForm: true,
|
||||
label: t('Right Axis Format'),
|
||||
default: '.3s',
|
||||
default: 'SMART_NUMBER',
|
||||
choices: D3_FORMAT_OPTIONS,
|
||||
description: D3_FORMAT_DOCS,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue