Skip to content
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

Support remote files API #859

Merged
merged 3 commits into from May 3, 2022
Merged

Conversation

ledmonster
Copy link
Contributor

This PR supports remote files APIs (#856)

I implemented remotefiles module referencing files module.

Copy link
Member

@kanata2 kanata2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
Please add test case 🙏

remotefiles.go Outdated Show resolved Hide resolved
@kanata2 kanata2 added the missing test needs a test before merge label Dec 9, 2020
@ledmonster
Copy link
Contributor Author

@kanata2 Added tests for remotefiles module.

@kanata2 kanata2 removed the missing test needs a test before merge label Jan 21, 2021
@ledmonster
Copy link
Contributor Author

@kanata2
Could you please merge this PR?

@kanata2
Copy link
Member

kanata2 commented Mar 5, 2021

Sorry for slow response. I'll confirm in the next few days...

}

// AddRemoteFile adds a remote file
func (api *Client) AddRemoteFile(params RemoteFileParameters) (remotefile *RemoteFile, err error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (api *Client) AddRemoteFile(params RemoteFileParameters) (remotefile *RemoteFile, err error) {
func (api *Client) AddRemoteFile(params RemoteFileParameters) (*RemoteFile, error) {

}

// ListRemoteFiles retrieves all remote files according to the parameters given. Uses cursor based pagination.
func (api *Client) ListRemoteFiles(params ListRemoteFilesParameters) ([]RemoteFile, *ListRemoteFilesParameters, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using string instead of ListRemoteFilesParameters in returned value?
I think ListRemoteFilesParameters should be used only as an argument to ListRemoteFiles.

@kanata2
Copy link
Member

kanata2 commented Mar 16, 2021

Please add documentation link to each GoDoc comment 🙏

@kanata2 kanata2 added the feedback given When a review has been conducted and awaiting the response from the comitter(s) label Mar 16, 2021
@kanata2 kanata2 merged commit ee3c0cc into slack-go:master May 3, 2022
@ledmonster ledmonster deleted the feature/remote-file branch October 3, 2022 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feedback given When a review has been conducted and awaiting the response from the comitter(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants