-
Notifications
You must be signed in to change notification settings - Fork 129
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
Update FTP logging endpoint #165
Conversation
* Rename FTP.Username => FTP.User for consistency * Add FTP.PublicKey * Pointers in CreateFTPInput, UpdateFTPInput and use helpers in tests * Change GzipLevel from uint8 to uint for consistency
@phamann and I talked about this. While this is what we would like the API to be eventually (e.g., pointers, etc.), we can't make some of these changes right now without releasing a major version of the client, which we aren't ready to do. So, for this change, we will focus on additions to the API, but no in-place changes and will note for these changes to be made in a v2 release of the client. |
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
@@ -169,6 +176,14 @@ func TestClient_FTPs(t *testing.T) { | |||
if uftp.Name != "new-test-ftp" { | |||
t.Errorf("bad name: %q", uftp.Name) | |||
} | |||
// TODO (v2): This is a bug where updates to zero-values are omitted due to the |
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.
@phamann test that exercises the bug with a note for v2.
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
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.
👍 LGTM other than the pointer comment
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
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.
👍 LGTM
(edits by @mccurdyc)
Rename Username to User for consistency with API fieldUse pointers in CreateFTPInput and UpdateFTPInput structs and use helpers in testsChange GzipLevel from uint8 to uint for consistencyThe crossed-out fields are breaking changes and need to wait for v2.