-
Notifications
You must be signed in to change notification settings - Fork 3
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
Check name #32
Check name #32
Conversation
[ENH]: Guided bucket creation
Looks good! Merging. |
This isn't what we wanted is it? I thought we talked about the following:
This PR doesn't do that at all. |
I'm still working on validating the rest of the inputs. I'll push commits directly to enh_guided_create_bucket. From my perspective, the following happens when
And then it returns you to the Having to specify the name as an input with the rest would work too, so I guess it's just user preference?
Your proposal is that we instead do:
Personally, I'm perfectly happy with either way. |
Erroring out back to the resen shell prompt is an entirely different process. For example, do we now want to error out of the bucket creating if a specified mount location isn't valid? If we crash out for an invalid bucket name, why do we do something different for storage volumes? Or even more generally, why don't we just crash back for invalid input at any point? Whatever we do, we need to be consistent. Also, it's hard to work on a project when we discuss one thing but then implement something different right after the discussion. |
Ok, from the user perspective, erroring out back to the resen shell prompt after entering an invalid name is fine, but erroring out if an invalid path is entered 3 steps later would be annoying. If we're going to be consistent and treat all inputs the same, we probably want to go for the second approach (sorry, I think I misunderstood the distinction in our discussions). I'm putting together validation functions for all the inputs now, roughly following the model of
This should help manage this consistently with all inputs. |
That's true, that would be quite annoying. From a user perspective, it might be nicer if the intent is to actually create a bucket then for the I think what you wrote before, in your last example where |
Ok, sounds good. Here's an example of the new workflow.
(Please ignore the spelling of "alphabetic".) If this looks good, I'll write functions that handle the other input in a similar fashion. |
This looks good to me. I think that we (and especially me) need to write out examples like you just did here when we have discussions about what we want to do. This makes it explicitly clear what we want to do. @pmreyes2 has asked for that in the past and I completely forgot until now. |
checks if creating the bucket with the user's given input is possible before proceeding.