-
Notifications
You must be signed in to change notification settings - Fork 83
pkg/api: add OptionalRepeatedString type #212
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
base: main
Are you sure you want to change the base?
pkg/api: add OptionalRepeatedString type #212
Conversation
Signed-off-by: Markus Lehtonen <[email protected]>
|
@klihub @chrishenzie @mikebrow Pre-work for some of my upcoming work on managing the I'm not sure if we need all the pointer's-pointer (or nil's-nil) stuff or would it be sufficient to return |
@marquiz. This is I think the only part I was wondering about. But you will probably get a much better understanding about what makes sense for Get() and what alternatives make sense for the constructor once you have written some more code exercising this. Then there are two options. Either start with the minimal set your code needs, or with what you guesstimate to be potentially necessary. But this already LGTM as such. |
|
+1 to @klihub 's comment -- would it be possible to add your intended use case as a separate commit in this PR so we can take a look how it's being used? I'd prefer to review that vs. merge now and have to make subsequent changes later |
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.
agree with your and the other comments.. without the use case, outside the test bucket itself, sort of hard to see whether some of the optional elements are a + or -
|
|
||
| assert.Equal(t, tc.expectedValue, result.Get()) | ||
| }) | ||
| } |
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.
probably want a test that ensures the cloned result.
No description provided.