-
-
Notifications
You must be signed in to change notification settings - Fork 153
Change default server, fix bug writing config to file #1393
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1393 +/- ##
===========================================
+ Coverage 84.33% 84.35% +0.01%
===========================================
Files 38 38
Lines 5325 5325
===========================================
+ Hits 4491 4492 +1
+ Misses 834 833 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
This looks correct to me and the code works with "https://api.openml.org/api/v1/xml" for me bug free.
I cannot see yet how it affects the CLI
value = globals()[f] if f == field else config.get(f) # type: ignore | ||
if value is not None: | ||
fh.write(f"{f} = {value}\n") |
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.
Sorry for not being clear about the CLI fix. That's this bit of code.. it's used only by the CLI (I think). I understand that's not particularly clear since the other edit is in the cli.py
file which you might reasonably expect to also have the fix that was mentioned.
Basically, if f!=field
then it would write the name of the variable to itself (e.g., apikey = apikey
), instead of fetching the corresponding value from the configuration and re-writing that.
Reference Issue
None, recent issues with proxy.
What does this PR implement/fix? Explain your changes.
Sets the default url to use the
api
subdomain, which avoids a layer of indirection and subsequently should be stable.It also fixes an issue with the CLI tool so that it's possible again to set variables through it.
How should this PR be tested?
Affects all endpoints. Not really that suitable for manual testing.
Any other comments?