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): Use the correct docs URL for regular nodes when used as tools #11529

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Nov 4, 2024

Summary

When we create tool pseudo-nodes, we currently discard the original codex in the cloned description. The codex object often contains the primary documentation url, that the frontend uses to render the docs link in NDV.
This PR ensures that NodeHelpers.convertNodeToAiTool also copies over the original codex, to render the same docs urls for the tool version of the node and the regular version.

Related Linear tickets, Github issues, and Community forum posts

https://n8nio.slack.com/archives/C05NR911BDH/p1730714790548369?thread_ts=1730714790.548369&cid=C05NR911BDH

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 Nov 4, 2024
jeanpaul
jeanpaul previously approved these changes Nov 4, 2024
Copy link
Contributor

@jeanpaul jeanpaul left a comment

Choose a reason for hiding this comment

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

Ah, thanks for adding the tests too!

Copy link
Contributor

github-actions bot commented Nov 4, 2024

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Nov 4, 2024

n8n    Run #7676

Run Properties:  status check passed Passed #7676  •  git commit 427bad7b75: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project n8n
Branch Review fix-tools-docs-url
Run status status check passed Passed #7676
Run duration 04m 25s
Commit git commit 427bad7b75: 🌳 🖥️ 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 0
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 461
View all changes introduced in this branch ↗︎

@netroy netroy merged commit a092b8e into master Nov 4, 2024
34 checks passed
@netroy netroy deleted the fix-tools-docs-url branch November 4, 2024 11:31
This was referenced Nov 6, 2024
@janober
Copy link
Member

janober commented Nov 6, 2024

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 Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants