Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2055 +/- ##
==========================================
- Coverage 84.96% 84.93% -0.03%
==========================================
Files 118 118
Lines 14287 14287
==========================================
- Hits 12139 12135 -4
- Misses 2148 2152 +4 ☔ View full report in Codecov by Harness. |
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
61172bb to
24b1d74
Compare
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-authored-by: Michael Brooks <21328+mwbrooks@users.noreply.github.com> Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
|
🌟 Thanks for the kind review @mwbrooks! The error Args line made the presentComments docs complete. |
|
👾 Strange one: the squash for this PR landed on Closing since the method is on |
Summary
This pull request adds the
entity.presentCommentsmethod to the Web API clients.entity_presentCommentstakes requiredcommentsandtrigger_id, and optionalcursor,can_post_comment,delete_action_id,user_auth_required,user_auth_url, anderror. It sends a JSON body likeentity_presentDetails.erroris a dict like the oneentity_presentDetailstakes, since the API rejects a string withmust provide an object.scripts/codegen.py, and the method is added to the Web API coverage test.This is part 1 of 2 in the
entitystack. 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.entity.presentComments👈 this pull requestentity.acknowledgeCommentActionTesting
In an app with Work Objects comments, when the
entity_comments_requestedevent arrives:client.entity_presentComments(comments=[...], trigger_id=event["trigger_id"], can_post_comment=True)and confirm the comments tab lists them with a composer.comments=[],user_auth_required=True, anduser_auth_urland confirm the tab asks the user to authenticate.AsyncWebClientto check the generated async method.Live check: a real
trigger_idneeds a Work Object flexpane, so the check is a documented error. The docs' exampletrigger_idgets past schema validation and returnsinvalid_trigger_idfor both calls above, and fromAsyncWebClienttoo (rerun on 2026-11-30). A commentidover 25 characters fails schema validation first withmust be less than 26 characters. Leaving outcommentsreturnsmissing required field: comments, even withuser_auth_required, socommentsstays required. These calls ran in a developer workspace.Category
/docs(Documents)/tutorial(PythOnBoardingBot tutorial)tests/integration_tests(Automated tests for this library)Requirements
python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.shafter making the changes.🤖 Generated with Claude Code