-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Remove references to environment variables #4633
Remove references to environment variables #4633
Conversation
There are a few |
@montezdesousa would you give it another try (maybe on a fresh env)? |
You are right, don't know what was happening there! |
Good one. Was able to remove the function completely! |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #4633 +/- ##
==========================================
Coverage ? 55.99%
==========================================
Files ? 591
Lines ? 53957
Branches ? 0
==========================================
Hits ? 30212
Misses ? 23745
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Related with: #4665 |
What's left to do before merging? |
@montezdesousa did it here: 0f007f6 |
everything's finished now, I think! |
* removing references to test_mode as env variable * removing references to os.getenv * adding functions to change system properties * removing references to env * introducing set_system_variable and removing change_logging_suppress function * removing change_test_mode and change_debug_mode * removing change_log_collect * adjusting config_terminal and generate_sdk * generating the sdk * removing unused imoports * introducing DISABLE_STREAMLIT_WARNING * removing load_env_vars * test_print_help test * sync tests * rewrite tests * setting the auth to True as default --------- Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
As the title suggest, this PR intends to remove as many references to the environment variables as possible. This allows us:
SystemModel
Functionality check list - from the user standpoint, everything should be the same:
DEBUG_MODE
a. w/
python terminal.py --debug
b.
openbb
TEST_MODE
a. Run
python terminal.py -t -l
(check possible int tests) and thenpython terminal.py -t 2 --subproc 0 --verbose
.LOG_COLLECTION
a. if you're a dev and have this flag set to
False
on theenv
file, you should see no files on yourarchives
dir on your logs folder.ENABLE_AUTHENTICATION
a. if you've it set to
True
on you.env
file and useopenbb --login
you should still be able to use the authenticated functionalities.Not addressed environment variables that can still be found (use
CTRL+shift+F
to check it) that we probably want to keep: