Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

fix: slack plugin activity fetch#6000

Merged
5 commits merged into
mainfrom
fix/actvitiy-events
May 20, 2025
Merged

fix: slack plugin activity fetch#6000
5 commits merged into
mainfrom
fix/actvitiy-events

Conversation

@ghost

@ghost ghost commented May 20, 2025

Copy link
Copy Markdown

No description provided.

@ghost ghost requested review from Copilot, mvilanova and whitdog47 May 20, 2025 22:22
@ghost ghost self-assigned this May 20, 2025
@ghost ghost added the bug Something isn't working label May 20, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the slack plugin activity fetch functionality by streamlining the fetch_events method.

  • Simplifies the function signature and docstring.
  • Removes redundant event type checking and changes exception handling.
Comments suppressed due to low confidence (1)

src/dispatch/plugins/dispatch_slack/plugin.py:437

  • The checks for event being None or a type have been removed. Ensure that event will always be a valid object with a fetch_activity method before invoking it.
activity = event.fetch_activity(client, subject, oldest)

Comment thread src/dispatch/plugins/dispatch_slack/plugin.py Outdated
Will Sheldon and others added 2 commits May 20, 2025 15:23
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Will Sheldon <114631109+wssheldon@users.noreply.github.com>
Comment thread src/dispatch/plugins/dispatch_slack/plugin.py Outdated
Comment thread src/dispatch/plugins/dispatch_slack/plugin.py Outdated
Comment thread src/dispatch/plugins/dispatch_slack/plugin.py Outdated
Will Sheldon and others added 2 commits May 20, 2025 16:02
Co-authored-by: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
Signed-off-by: Will Sheldon <114631109+wssheldon@users.noreply.github.com>
@ghost ghost merged commit d12ac00 into main May 20, 2025
9 checks passed
@ghost ghost deleted the fix/actvitiy-events branch May 20, 2025 23:15
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants