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

feat: Add RS client to hooks service #9834

Merged
merged 1 commit into from
Jun 24, 2024
Merged

feat: Add RS client to hooks service #9834

merged 1 commit into from
Jun 24, 2024

Conversation

mutdmour
Copy link
Contributor

Summary

Adds support for creating a RS client from internal hooks. This client will be used to trigger events from the Cloud hooks
(related PR here https://github.com/n8n-io/n8n-cloud/pull/1325/)
We cannot use same client as n8n backend because the user id and write key are different.
So we need a different client every time.

Related Linear tickets, Github issues, and Community forum posts

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)

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jun 21, 2024
Copy link
Contributor

@RicardoE105 RicardoE105 left a comment

Choose a reason for hiding this comment

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

Question: Remind me why we need a new client instead of the ones we already have. Somewhere, it is mentioned that we we need new keys, but I do not see why that is the case 🤔

Copy link

cypress bot commented Jun 23, 2024

1 flaky test on run #5633 ↗︎

0 395 0 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 mutdmour 🗃️ e2e/*
Project: n8n Commit: f322a5325c
Status: Passed Duration: 04:23 💡
Started: Jun 23, 2024 9:03 PM Ended: Jun 23, 2024 9:08 PM
Flakiness  e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video

Review all test suite changes for PR #9834 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@mutdmour
Copy link
Contributor Author

@RicardoE105 we have a different source in RS, so different write keys. The user ids are also different. So we definitely call the same track/identify functions

@mutdmour mutdmour merged commit b807e67 into master Jun 24, 2024
26 checks passed
@mutdmour mutdmour deleted the ado-712 branch June 24, 2024 08:44
@github-actions github-actions bot mentioned this pull request Jun 27, 2024
@janober
Copy link
Member

janober commented Jun 27, 2024

Got released with n8n@1.48.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants