Skip to content

fix(model): add is_file to conversation - #1681

Merged
mwbrooks merged 2 commits into
slackapi:mainfrom
rasharab:feat-conversation-is-file
Nov 11, 2026
Merged

mwbrooks merged 2 commits into
slackapi:mainfrom
rasharab:feat-conversation-is-file

Conversation

@rasharab

@rasharab rasharab commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Slack's conversation object includes is_file ("Whether this is a file channel"). Slack sets it on the hidden conversation it creates behind a canvas. ChannelCreatedEvent.Channel already maps it, but Conversation, which conversations.info and conversations.list responses parse into, drops it. Apps then can't tell a canvas conversation from a real channel without parsing name_normalized.

This adds isFile to Conversation, alongside isThreadOnly/isNonThreadable, adds the key to the conversations.info and conversations.list samples, and adds a parsing test.

Category (place an x in each of the [ ])

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

Slack's conversation object includes is_file, which it sets on the hidden
conversation behind a canvas. ChannelCreatedEvent.Channel already maps it,
but Conversation (conversations.info / conversations.list) drops it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rasharab
rasharab requested a review from a team as a code owner November 10, 2026 18:04
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @rasharab to sign the Salesforce Inc. Contributor License Agreement.

@rasharab

Copy link
Copy Markdown
Contributor Author

@mwbrooks Is this all right with you guys?

@mwbrooks mwbrooks added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:slack-api-model project:slack-api-model semver:patch labels Nov 10, 2026
@mwbrooks mwbrooks added this to the 1.54.1 milestone Nov 10, 2026
@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.75%. Comparing base (fe0c436) to head (aaff76e).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1681      +/-   ##
============================================
+ Coverage     73.72%   73.75%   +0.02%     
- Complexity     4678     4679       +1     
============================================
  Files           487      487              
  Lines         14669    14669              
  Branches       1528     1528              
============================================
+ Hits          10815    10819       +4     
+ Misses         2944     2941       -3     
+ Partials        910      909       -1     
Flag Coverage Δ
jdk-14 73.75% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

✅ Thanks @rasharab! 🎉 Congrats on your first contribution to the Java Slack SDK!

@SerializedName("is_non_threadable")
private boolean isNonThreadable;
@SerializedName("is_file")
private boolean isFile;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

praise: Thanks for adding is_file here! It matches how ChannelCreatedEvent.Channel already maps it, so canvas conversations are easy to spot now.

@mwbrooks mwbrooks changed the title Add is_file to Conversation fix(model): add is_file to conversation Nov 11, 2026
@mwbrooks
mwbrooks merged commit 7adae31 into slackapi:main Nov 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented cla:signed project:slack-api-model project:slack-api-model semver:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants