Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not trigger sendAndWait response on bot visit if response type is approval #13792

Merged
merged 5 commits into from
Mar 11, 2025

Conversation

michael-radency
Copy link
Contributor

Summary

Do not trigger sendAndWait response on bot visit if response type is approval

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2485/google-chat-send-and-wait#comment-8def3048

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@michael-radency michael-radency added node/improvement New feature or request n8n team Authored by the n8n team node/issue Issue with a node labels Mar 10, 2025
Copy link

codecov bot commented Mar 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@dana-gill dana-gill self-requested a review March 10, 2025 14:24
Copy link
Contributor

@dana-gill dana-gill left a comment

Choose a reason for hiding this comment

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

Could you please add tests for this? :)


const result = await sendAndWaitWebhook.call(mockWebhookFunctions);

expect(result).toEqual({ noWebhookResponse: true });
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you also add a test for testing that res.send gets called with ''? :)

Copy link
Contributor

@dana-gill dana-gill left a comment

Choose a reason for hiding this comment

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

🚀

Copy link

cypress bot commented Mar 11, 2025

n8n    Run #9694

Run Properties:  status check passed Passed #9694  •  git commit 49d3d77eb9: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project n8n
Branch Review node-2485-google-chat-send-and-wait
Run status status check passed Passed #9694
Run duration 04m 39s
Commit git commit 49d3d77eb9: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Committer Michael Kret
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 5
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 441
View all changes introduced in this branch ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@michael-radency michael-radency merged commit 526a2e4 into master Mar 11, 2025
38 checks passed
@michael-radency michael-radency deleted the node-2485-google-chat-send-and-wait branch March 11, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request node/issue Issue with a node
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants