-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Allow customizing behavior of exchange rate fetching #139
Comments
see also: #97
I thought about that but it really doesn't fit well into the overall architecture. We would have to pre-define units like USD before fetching the exchange rates (so that users can type And then we would have to have special handling in the interpreter to detect the usage of those units in order to schedule the exchange rate update.
I thought about a simple on/off setting. Either you fetch them at startup, or you don't get currency units. |
Fair point.
Is it too difficult to make that setting possible to change at runtime too? |
I found a way to implement on-demand fetching now: see #107. This also solves the error handling part. What is still left open is to disable prefetching (which we currently still do by default, to have units readily available once the user needs them) |
Looks good to me, thanks! |
I think I'm gonna work on this, do you have any syntax in mind? Is it gonna be something like #55, or a line like |
I think this will be a CLI-application-only thing, so that should go into the (not yet existing) config file. See #97 for details. I will add some more thoughts there. |
Another thing I didn't consider when initially opening the issue: exchange rates get out of date fairly quickly, how would Numbat handle that? Would it reload the exchange rates after e.g. 1 day? Should the period be configurable? How would this play with the fetching behavior setting proposed in this issue? It might be a good idea to see how other software (e.g. Qalculate) handles this and other issues that exchange rate fetching brings up. |
Relevant discussion on IRC:
|
Not everybody needs exchange rate information, or uses it often; some people will also take issue with Numbat using the network without their permission or awareness. Therefore, I propose adding the following options (or at least an appropriate subset):
The text was updated successfully, but these errors were encountered: