Skip to content

Conversation

rowanseymour
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings August 26, 2025 18:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the project to use the latest version of the goflow library (v0.254.1) which introduces new specific event types for channel events, replacing generic trigger methods with more specific ones.

Key changes:

  • Update goflow dependency from v0.253.2 to v0.254.1
  • Replace generic trigger methods (Msg, Ticket, Channel, etc.) with specific event type methods (MsgReceived, TicketClosed, CallReceived, etc.)
  • Refactor event handling to use new specific event types instead of generic channel events

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
go.mod Updates goflow dependency to v0.254.1
web/simulation/simulation.go Replaces generic Msg() with specific MsgReceived() trigger method
core/tasks/realtime/ctasks/ticket_closed.go Replaces generic Ticket() with specific TicketClosed() trigger method
core/tasks/realtime/ctasks/msg_received.go Replaces generic Msg() with specific MsgReceived() trigger method
core/tasks/realtime/ctasks/event_received.go Refactors to use specific event trigger methods and removes generic parameter handling
core/tasks/campaigns/bulk_campaign_trigger.go Replaces generic Campaign() with specific CampaignFired() trigger method
core/runner/handlers/noop.go Registers handlers for new event types (CallMissed, ChatStarted)
core/runner/handlers/base_test.go Updates test to use specific MsgReceived() trigger method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 69.56522% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.03%. Comparing base (92d53dd) to head (9dec960).

Files with missing lines Patch % Lines
core/tasks/realtime/ctasks/event_received.go 56.25% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #763      +/-   ##
==========================================
+ Coverage   51.02%   51.03%   +0.01%     
==========================================
  Files         250      250              
  Lines       15100    15102       +2     
==========================================
+ Hits         7705     7708       +3     
+ Misses       6588     6587       -1     
  Partials      807      807              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rowanseymour rowanseymour merged commit df045af into main Aug 26, 2025
5 checks passed
@rowanseymour rowanseymour deleted the event_triggers branch August 26, 2025 19:07
@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants