-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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(editor): Cap NDV Output View Tab Index to prevent rare edge case #11614
fix(editor): Cap NDV Output View Tab Index to prevent rare edge case #11614
Conversation
…tputview-breaks-when-on-outdated-tab-during-new-test-step
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected, kudos for adding a comment there 🙌🏻
Two questions though:
- Can we add a test for it?
- Is it easy to update the output panel as number of outputs change so we don't see the generic branch name at all?
n8n Run #7780
Run Properties:
|
Project |
n8n
|
Branch Review |
ADO-2763/bug-ndv-outputview-breaks-when-on-outdated-tab-during-new-test-step
|
Run status |
Passed #7780
|
Run duration | 04m 24s |
Commit |
37bc8dd0f2: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 CharlieKolb 🗃️ e2e/*
|
Committer | Charlie Kolb |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
1
|
Pending |
2
|
Skipped |
0
|
Passing |
466
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
They're great questions, I had the same ones for myself :D There aren't any existing test for tabulation so it'd quite involved, and considering this PR merely narrows an invalid range to a valid one I'm tempted to forgo adding one here. I considered updating the shown branches but I don't think we actually want this behavior, as the user might have relevant data in the selected tab. |
Makes sense, good to go on my end then |
…tputview-breaks-when-on-outdated-tab-during-new-test-step
✅ All Cypress E2E specs passed |
Got released with |
Summary
currentOutputIndex
may end up out of bound asoutputIndex
is not reactive. Rather than making it a ref which complicates user selection I prefer capping the publiccurrentOutputIndex
as this "remembers" the selected branch if it reappears (unless the user selected a new one in the meantime).After:
Screen.Recording.2024-11-07.at.09.45.14.mov
See ticket for before video.
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/ADO-2763/bug-ndv-outputview-breaks-when-on-outdated-tab-during-new-test-step
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)