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
[manila]: introduce WaitForStatus helpers for manila Shares, Replicas… #2653
base: master
Are you sure you want to change the base?
Conversation
cc @mandre @pierreprinetti kindly ping. |
Thank you for your addition. I finally find a moment to look into it. I appreciate the need for polling logic in a consumer application. However, I wonder if Gophercloud is the right place where to code it. The So my question is: would this addition solve a problem that you can't reasonably solve using a retry function from a specialised library? |
@pierreprinetti I was under impression that once There was another initiative, when |
I think I understand your point of view. You are perfectly right: other packages use the same My point is: if given the choice, I'd rather not maintain a retry library in this repository. So my question is: why do you think it's best to have this function here, rather than directly in you application's code? Also note that I am not the sole decision maker here! Let's see what others think @mandre @EmilienM |
I work with a number of OpenStack consumer projects that use these shared functions. Moving them into each project means: more code duplication, complicated maintainability, potential license copyright problems, less attention from the community for code improvement. I'd rather move them to |
Let's see what the other Gophercloud maintainers think. I don't think your function should go into |
I personally don't see a problem having convenience functions in gophercloud to make it easier to consume. Let's also remember we are also consumers, via the acceptance tests, although we're using a different implementation of WaitFor() 😅 |
I'll like to see this function in https://github.com/gophercloud/gophercloud/blob/master/util.go if possible and use it from acceptance, so we can remove gophercloud/acceptance/tools/tools.go Lines 15 to 37 in 157270b
|
I can also implement something that uses context. |
Resolves #2652