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

Added support for channel and channel_id, do not require channel. #540

Merged
merged 3 commits into from
Feb 8, 2025

Conversation

dblock
Copy link
Collaborator

@dblock dblock commented Feb 8, 2025

Closes #539.

cc: @gregsaab

@coveralls
Copy link

coveralls commented Feb 8, 2025

Pull Request Test Coverage Report for Build 13217136744

Details

  • 33 of 33 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 89.541%

Totals Coverage Status
Change from base Build 13216961224: 0.04%
Covered Lines: 5496
Relevant Lines: 6138

💛 - Coveralls

@dblock dblock changed the title Added support for channel and channel_id. Added support for channel and channel_id, do not require channel. Feb 8, 2025
@dblock dblock force-pushed the support_channel_id_s branch from 3472c48 to 98e515a Compare February 8, 2025 15:49
@dblock dblock force-pushed the support_channel_id_s branch from 06bf4a5 to bf2f795 Compare February 8, 2025 15:53
@dblock dblock merged commit 087b640 into slack-ruby:master Feb 8, 2025
11 checks passed
@dblock dblock deleted the support_channel_id_s branch February 8, 2025 16:02
conversations_id(channel: channel)['channel']['id']
end.uniq.join(',')
elsif params[:channel]
complete_upload_request_params[:channel] = conversations_id(

Choose a reason for hiding this comment

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

should this be :channel_id instead of :channel? I don't see channel as one of the available arguments in https://api.slack.com/methods/files.completeUploadExternal

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think you are right. I thought I did test it in https://github.com/slack-ruby/slack-ruby-client/blob/master/examples/files_upload_v2/files_upload_v2.rb#L20 but maybe I missed the fact that it wasn't posting to #general after all? Care to help fix, with a test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in #548, releasing as 2.5.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for channel_id in files_upload_v2.
3 participants