Skip to content

fix(editor): Data in input/output panel incorrectly mapped #14878

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

Merged
merged 15 commits into from
Apr 28, 2025

Conversation

autologie
Copy link
Contributor

@autologie autologie commented Apr 24, 2025

Summary

This PR fixes the bug in showing input data in the new logs view, specifically the bug when the input of a node's run comes from one of branches of the previous node (e.g., true/false branch of "If" node). The fix is implemented by utilizing source field where the previous node name, output branch and run index is stored.

Also styling tweaks for radio button and tab component is added based on the latest feedback from the designer.

To run locally, set N8N_LOGS_2025_SPRING to true in local storage and refresh the browser.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/SUG-46/bug-data-in-inputoutput-panel-incorrectly-mapped

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)

@autologie autologie changed the base branch from master to sug-36-logs-tree-perf-improvement April 24, 2025 15:34
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Apr 24, 2025
Base automatically changed from sug-36-logs-tree-perf-improvement to master April 25, 2025 08:45
Copy link

codecov bot commented Apr 25, 2025

@autologie autologie marked this pull request as ready for review April 25, 2025 11:12
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

mrge found 6 issues across 16 files. View them in mrge.io

@autologie autologie requested a review from mutdmour April 25, 2025 11:28
mutdmour
mutdmour previously approved these changes Apr 25, 2025
Copy link
Contributor

@mutdmour mutdmour left a comment

Choose a reason for hiding this comment

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

LGTM

describe('Logs', () => {
// TODO: the test can be written without AI nodes once https://linear.app/n8n/issue/SUG-39 is implemented
it('should open NDV with the run index that corresponds to clicked log entry');
it('should show input and output data of correct run index and branch', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

looking forward to seeing more tests here. Created a ticket like we discussed before https://linear.app/n8n/issue/SUG-47/tech-debt-write-tests-for-new-logs-view

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

mutdmour
mutdmour previously approved these changes Apr 28, 2025
Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link
Contributor

✅ All Cypress E2E specs passed

@autologie autologie merged commit 0a2b740 into master Apr 28, 2025
36 checks passed
@autologie autologie deleted the sug-46-logs-view-run-mapping branch April 28, 2025 12:30
@github-actions github-actions bot mentioned this pull request Apr 28, 2025
@janober
Copy link
Member

janober commented Apr 28, 2025

Got released with [email protected]

ozcangungor pushed a commit to ozcangungor/n8n that referenced this pull request May 25, 2025
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 Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants