Skip to content

fix: call Slack read methods as GET in purge workflow#273

Merged
nourshoreibah merged 1 commit into
mainfrom
slack-purge-replies-get
Jul 1, 2026
Merged

fix: call Slack read methods as GET in purge workflow#273
nourshoreibah merged 1 commit into
mainfrom
slack-purge-replies-get

Conversation

@nourshoreibah

Copy link
Copy Markdown
Collaborator

Summary

  • Follow-up to feat: filled deploy status bar + Slack bot-message purge workflow #272. In the Slack bot-message purge workflow, conversations.replies returned invalid_arguments when called with a JSON body, so thread reply timestamps were never collected and thread replies were never deleted.
  • Call the read methods (conversations.history / conversations.replies) as GET with query-string params, which Slack handles reliably. chat.delete stays on POST JSON (now with an explicit charset).

Test plan

  • Run the purge workflow as a dry run and confirm the found count now includes thread replies (no replies failed ... invalid_arguments in logs).
  • Run a real purge (dry_run=false, confirm=DELETE) and verify both top-level messages and their thread replies are deleted.

Made with Cursor

conversations.replies returned invalid_arguments with a JSON body, so thread
reply timestamps were never collected and replies were never deleted. Call
conversations.history/replies as GET with query params; keep chat.delete on
POST JSON (with charset).

Co-authored-by: Cursor <cursoragent@cursor.com>
github-actions Bot added a commit that referenced this pull request Jul 1, 2026
@nourshoreibah nourshoreibah merged commit 1e00299 into main Jul 1, 2026
13 checks passed
@nourshoreibah nourshoreibah deleted the slack-purge-replies-get branch July 1, 2026 05:05
github-actions Bot added a commit that referenced this pull request Jul 1, 2026
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.

1 participant