-
Notifications
You must be signed in to change notification settings - Fork 25
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 options like "timeout" to be passed to HTTPoison.get_blob underneath inside options
#54
base: master
Are you sure you want to change the base?
Conversation
…word list Co-authored-by: Hitalo Siqueira <[email protected]> Co-authored-by: Jon Lauridsen <[email protected]>
…son from Azurex for `get_blob` Co-authored-by: Jon Lauridsen <[email protected]>
Co-authored-by: Jon Lauridsen <[email protected]>
Allow passing connection parameters together with the container to blob functions. Values from the parameters are prioritized over default configuration.
Still always read azure connection string from application config, but allow the element itself to be parameterised. Still default to azurex. This change does introduce some breaking API changes, notably on put_blob, to nest params under options (similar to an earlier commit's work on get_blob). Co-authored-by: Aman Kumar Singh <[email protected]> Co-authored-by: Konstantinos Gkinis <[email protected]>
Was it necessary to add the config element changes in the same PR? At first glance they look like separate goals. I'm not a maintainer, just asking the question. |
@mattpolzin sorry, these are definitely separate goals. When I recently committed to this fork's master branch the other day, I had no idea this PR existed. @krishna1m let's close this, cut a branch before that recent fork commit, and PR that. If that lands, we can PR the config element bit separately. WDYT? |
This reverts commit c8f56b2.
Co-authored-by: Aman Kumar Singh <[email protected]>
Pave the way for merging in a branch from another fork that has not been accepted upstream yet, which adds support for multiple azure storage accounts, parameterised by call. Previous commits in our fork here made breaking changes to a few functions, e.g. `put_blob()`. Upstream, this function's final argument is a keyword list defaulting to `[]`. In our fork, we've nested the params keyword list inside another one, so that we can pass various non-param overrides without having 2 keyword lists. The breaking change isn't obvious in the type spec, but the user must pass a differently-shaped keyword list. The noaccOS fork has a similar motivation to add non-params overrides, but they've taken the other approach: passing 2 keyword lists. When we merge in their branch here, we'll have to pick a signature kind (2 keyword lists or a single nested one). Since we're already using a nested one, we'll stick with that pattern and resolve the merge conflicts. First though, we must finish the interface change job that we'd started, and nest params inside options for all functions. Interestingly, for some functions, this is just a rename to make it clear we'd already implicitly done this. Co-authored-by: Harisudhan V R <[email protected]>
…into krishna1m-master
And also fix all tests. Co-authored-by: Aman Kumar Singh <[email protected]> Co-authored-by: Harisudhan V R <[email protected]>
Fixes #53
Allows to call the new signature like below -