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(editor): Show correct schema for output with falsy keys #9556

Merged

Conversation

tomi
Copy link
Contributor

@tomi tomi commented May 30, 2024

Summary

If the output data contains objects that have properties with falsy values, the schema would incorrectly be hidden. This fixes the empty data check to show the schema in these cases.

Before:

image

After:

image

Related tickets and issues

https://linear.app/n8n/issue/ADO-1648/bug-schema-view-does-not-render-when-only-boolean-item

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

If the output data contains objects that have properties with falsy values,
the schema would incorrectly be hidden. This fixes the empty data check
to show the schema in these cases.
Copy link

cypress bot commented May 31, 2024

2 flaky tests on run #5205 ↗︎

0 361 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 tomi 🗃️ e2e/*
Project: n8n Commit: 1510ae1078
Status: Passed Duration: 05:18 💡
Started: May 31, 2024 8:23 AM Ended: May 31, 2024 8:29 AM
Flakiness  cypress/e2e/5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video

Review all test suite changes for PR #9556 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels May 31, 2024
@tomi tomi merged commit 020bd36 into master May 31, 2024
28 checks passed
@tomi tomi deleted the ado-1648-bug-schema-view-does-not-render-when-only-boolean-item branch May 31, 2024 08:33
@github-actions github-actions bot mentioned this pull request Jun 5, 2024
@janober
Copy link
Member

janober commented Jun 5, 2024

Got released with n8n@1.45.0

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 ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants