-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Flag for props check #687
Flag for props check #687
Conversation
byronz
commented
Apr 13, 2019
•
edited
Loading
edited
- add test case once confirmed with design
|
||
env_value = env.get('DASH_{}'.format(config_name.upper())) | ||
if env_value is None: | ||
def get_combined_config(name, val, default=None): |
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.
simplified the get_config by removing unnecessary parameters passing of env, and removed is_bool
@@ -340,6 +336,7 @@ def _config(self): | |||
'url_base_pathname': self.url_base_pathname, | |||
'requests_pathname_prefix': self.config.requests_pathname_prefix, | |||
'dev_tools_ui': self._dev_tools.dev_tools_ui, | |||
'dev_tools_props_check': self._dev_tools.dev_tools_props_check, |
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.
with this, the props-check will only happen when bool(dev_tools_ui && dev_tools_props_check) == True
@chriddyp I saw your branch about the dev_tools_ui, adding one commit here together with props_check. note that I changed the |
os.environ[var] = 'false' | ||
vars = load_dash_env_vars() | ||
self.assertEqual(vars[var], 'false') | ||
|
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.
good idea to include this run-time check 👍
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.
💃
…y#687) * Use start_date or min_date_allowed for initial_visible_month if initial_visible_month is undefined. * Add test for initial month. * Add datePickerRange tests. * Use max date allowed * Make function call simpler. * Run linter. * Fix typo.
* Use start_date or min_date_allowed for initial_visible_month if initial_visible_month is undefined. * Add test for initial month. * Add datePickerRange tests. * Use max date allowed * Make function call simpler. * Run linter. * Fix typo.