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(core): AugmentObject should handle the constructor property correctly #12744

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

netroy
Copy link
Member

@netroy netroy commented Jan 21, 2025

Summary

We have a couple of places where we check for .constructor on these proxy objects, but these fail now since we switched to checking for own-property.

Related Linear tickets, Github issues, and Community forum posts

CAT-542
Fixes #12604

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)

@netroy netroy added the release/backport Changes that need to be backported to older releases. label Jan 21, 2025
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 21, 2025
Copy link
Contributor

@tomi tomi left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this 🙏 🚀

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jan 21, 2025

n8n    Run #8860

Run Properties:  status check passed Passed #8860  •  git commit 67c5eb6d23: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project n8n
Branch Review fix-CAT-542-proxy-constructor-getter
Run status status check passed Passed #8860
Run duration 04m 51s
Commit git commit 67c5eb6d23: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Committer कारतोफ्फेलस्क्रिप्ट™
View all properties for this run ↗︎

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

@netroy netroy merged commit 36bc164 into master Jan 21, 2025
37 checks passed
@netroy netroy deleted the fix-CAT-542-proxy-constructor-getter branch January 21, 2025 10:49
@github-actions github-actions bot mentioned this pull request Jan 22, 2025
@janober
Copy link
Member

janober commented Jan 22, 2025

Got released with [email protected]

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 release/backport Changes that need to be backported to older releases. Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in code node: Cannot read properties of undefined (reading 'name')
3 participants