frassinier opened a new issue, #21268: URL: https://github.com/apache/superset/issues/21268
If you try to override the superset configuration, When you change the `TIME_GRAIN_DENYLIST` value, By adding `P1D`, in order to exclude the `Day` option, You will still see `P1D`, as the default value, for TIME GRAIN select. #### How to reproduce the bug 1. Edit your `superset_config.py` and add `TIME_GRAIN_DENYLIST = ["P1D"]` 2. Reload superset server 3. Create a new chart 4. See Time grain select having "P1D" default value ### Expected results The expected behavior can be to either: 1. Have no default value `Select...` 2. Have the first value selected by default `Original value` 3. Have a way to specify the default value from the config file ### Actual results For now, this value is hardcoded, whatever if it's added to the denylist, you will see `P1D` default value. https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/index.tsx#L315 #### Screenshots <img width="289" alt="image" src="https://user-images.githubusercontent.com/18534166/187689166-591d9bae-40c7-473a-addf-ea41263720bd.png"> ### Environment (please complete the following information): - browser type and version: - superset version: `superset version` - python version: `python --version` - node.js version: `node -v` - any feature flags active: ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Add any other context about the problem here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
