Skip to content

feat: add admin.conversations.linkObjects method - #1705

Draft
zimeg wants to merge 1 commit into
zimeg-feat-admin-conversations-create-for-objectsfrom
zimeg-feat-admin-conversations-link-objects
Draft

zimeg wants to merge 1 commit into
zimeg-feat-admin-conversations-create-for-objectsfrom
zimeg-feat-admin-conversations-link-objects

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds the admin.conversations.linkObjects method to the sync and async clients.

  • adminConversationsLinkObjects takes channel, recordId, and salesforceOrgId. The docs list no response fields.
  • It needs a user token with admin.conversations:manage_objects.
  • MethodsTest no longer excludes the method from its coverage check.

This is part 2 of 3 in the admin stack, which adds the admin methods one at a time. This pull request is in batch B2 object conversations. Each pull request builds on the one before it and merges on its own, bottom to top. The stack starts on main.

  1. feat: add admin.conversations.createForObjects method #1704 admin.conversations.createForObjects
  2. feat: add admin.conversations.linkObjects method #1705 admin.conversations.linkObjects 👈 this pull request
  3. feat: add admin.conversations.unlinkObjects method #1706 admin.conversations.unlinkObjects

Testing

Run the remote tests for this layer:

  • test_with_remote_apis.methods_admin_api.AdminApi_conversations_Test#linkObjects with SLACK_SDK_TEST_GRID_ORG_ADMIN_USER_TOKEN (admin.conversations:manage_objects, admin.conversations:write)

The test creates a channel, links it to the example record and org IDs from the docs, and deletes the channel. The example IDs don't match a record, so the API answers with the documented record_not_found for the real channel.

Each layer was checked against the live API by running its own remote test, along with the earlier tests in its stack.

Category

  • 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

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.82%. Comparing base (3643cd0) to head (aaa0542).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                                 Coverage Diff                                  @@
##             zimeg-feat-admin-conversations-create-for-objects    #1705   +/-   ##
====================================================================================
  Coverage                                                73.81%   73.82%           
- Complexity                                                4749     4754    +5     
====================================================================================
  Files                                                      487      487           
  Lines                                                    14820    14829    +9     
  Branches                                                  1536     1536           
====================================================================================
+ Hits                                                     10940    10948    +8     
  Misses                                                    2963     2963           
- Partials                                                   917      918    +1     
Flag Coverage Δ
jdk-14 73.82% <100.00%> (+<0.01%) ⬆️

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality project:slack-api-client project:slack-api-client semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant