Repository navigation
Read the DASH_VALIDATE_CALLBACKS environment variable - #4220
Open
leninworld wants to merge 2 commits into
Open
leninworld wants to merge 2 commits into
leninworld wants to merge 2 commits into
Conversation
|
❌ The last analysis has failed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes issue #4219.
DASH_VALIDATE_CALLBACKSis documented fordev_tools_validate_callbacksinDash.runandDash.enable_dev_tools, butload_dash_env_vars()did not list it, so it was ignored: without an explicitdev_tools_validate_callbacksargument, the setting followeddebug. This adds it to the list, next to the other dev tools variables.As with the other boolean
DASH_variables, onlytrueandfalse(any case) are parsed. An already exportedDASH_VALIDATE_CALLBACKSnow takes effect when no explicit argument is given.Contributor Checklist
dev(fix), see Which branch to targetDASH_VALIDATE_CALLBACKSindash/_configs.pyTest run:
tests/unit/test_configs.py,tests/unit/test_app_runners.pyand the new test intests/integration/devtools/test_callback_validation.py(Flask test client, no browser), using the Python sources of this branch over an installed Dash 4.5.2 (no local front-end build). The two new env unit cases and the new integration test fail ondevand pass here. Two other tests fail both with and without the change in that setup (test_missing_flask_compress_raises, because flask-compress was installed, andtest_process_server_smoke). black, flake8 and pylint pass on the changed files. I also ran the app from the issue headed in a browser: ondevthe "Circular Dependencies" error still appears withDASH_VALIDATE_CALLBACKS=false, and with this change it does not. The Selenium browser tests were not run.optionals
CHANGELOG.md