Skip to content

feat: add entity.acknowledgeCommentAction method - #2054

Open
zimeg wants to merge 8 commits into
mainfrom
zimeg-feat-entity-acknowledge-comment-action
Open

zimeg wants to merge 8 commits into
mainfrom
zimeg-feat-entity-acknowledge-comment-action

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds the entity.acknowledgeCommentAction method to the Web API clients.

  • entity_acknowledgeCommentAction takes a required trigger_id, plus the saved comment after a post or edit, or an error message when the action failed. It sends a JSON body like entity_presentDetails.
  • The async and legacy clients are regenerated with scripts/codegen.py, and the method is added to the Web API coverage test.

This is part 2 of 2 in the entity stack. It's in the B9 work object comments batch. Each pull request builds on the one before it and merges on its own, bottom to top. Related to #2014.

  1. feat: add entity.presentComments method #2055 entity.presentComments
  2. feat: add entity.acknowledgeCommentAction method #2054 entity.acknowledgeCommentAction 👈 this pull request

Testing

In an app with Work Objects comments, after a user posts a comment from the flexpane:

  1. Call client.entity_acknowledgeCommentAction(trigger_id=..., comment={...}) with the trigger_id from the view_submission payload and confirm the saved comment shows in the flexpane.
  2. Call it with error="You do not have permission to edit this comment" instead and confirm the user sees the message.

Live check: a real trigger_id needs a comment action on a Work Object flexpane, so the check is a documented error. The docs' example trigger_id gets past schema validation and returns invalid_trigger_id with a comment and with an error, and from AsyncWebClient too (rerun on 2026-11-30). An empty body returns missing required field: trigger_id and a string comment returns must provide an object, so the API reads the JSON body before it checks the trigger. These calls ran in a developer workspace.

Category

  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.signature (Request Signature Verifier)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.models (UI component builders)
  • slack_sdk.scim (SCIM API client)
  • slack_sdk.audit_logs (Audit Logs API client)
  • slack_sdk.rtm_v2 (RTM client)
  • /docs (Documents)
  • /tutorial (PythOnBoardingBot tutorial)
  • tests/integration_tests (Automated tests for this library)

Requirements

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I have signed the Salesforce CLA (required before your PR can be reviewed or merged).
  • I've run python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh after making the changes.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.72727% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.92%. Comparing base (df953d1) to head (ad9b99f).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
slack_sdk/web/async_client.py 72.72% 6 Missing ⚠️
slack_sdk/web/client.py 72.72% 6 Missing ⚠️
slack_sdk/web/legacy_client.py 72.72% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2054      +/-   ##
==========================================
- Coverage   84.97%   84.92%   -0.06%     
==========================================
  Files         118      118              
  Lines       14232    14298      +66     
==========================================
+ Hits        12094    12142      +48     
- Misses       2138     2156      +18     

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

zimeg and others added 2 commits November 17, 2026 22:13
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the zimeg-feat-entity-acknowledge-comment-action branch from 9f6e3ce to d043daf Compare November 18, 2026 06:15
@zimeg
zimeg changed the base branch from zimeg-feat-assistant-search-info to zimeg-feat-entity-present-comments November 18, 2026 06:15
zimeg and others added 2 commits November 18, 2026 16:43
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…wledge-comment-action

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg mentioned this pull request Nov 20, 2026
5 of 16 tasks
@zimeg zimeg modified the milestones: 3.48.0, 3.48.1 Nov 20, 2026
zimeg and others added 2 commits November 30, 2026 19:45
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…wledge-comment-action

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg marked this pull request as ready for review December 1, 2026 03:55
@zimeg
zimeg requested a review from a team as a code owner December 1, 2026 03:55

@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.

✅ Appreciate this one @zimeg, with acknowledgeCommentAction next to presentComments the Work Object comments round trip is complete in Python.

zimeg and others added 2 commits November 30, 2026 20:01
Co-authored-by: Michael Brooks <21328+mwbrooks@users.noreply.github.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…wledge-comment-action

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg changed the base branch from zimeg-feat-entity-present-comments to main December 1, 2026 06:07

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 semver:minor web-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants