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

feat(editor): Add isEmpty on DateTime, add is empty to all types in filter component #9645

Merged

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Jun 6, 2024

Summary

  • Add isEmpty to Date/DateTime autocomplete
  • Add is empty/is not empty to all types in filter component
image image

Related tickets and issues

https://linear.app/n8n/issue/NODE-1375/make-isempty-more-visible-in-expressions-and-filter-component

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.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 6, 2024
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Looks good. Added a comment about the tests but good to go otherwise

{ left: 15, expected: false },
{ left: -15.4, expected: false },
{ left: NaN, expected: true },
{ left: null, expected: true },
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these tests needed if the option is hidded for numbers? Also should we add tests for other data types?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's hidden in the expressions because of the bug, this test is about the filter component. But will add tests for the types that are missing (DateTime,boolean)

Copy link
Contributor

github-actions bot commented Jun 6, 2024

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

Copy link

cypress bot commented Jun 6, 2024

2 flaky tests on run #5358 ↗︎

0 361 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project: n8n Commit: 8c4ce40af2
Status: Passed Duration: 05:05 💡
Started: Jun 7, 2024 10:01 AM Ended: Jun 7, 2024 10:06 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 #9645 ↗︎

Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Looking good. Thanks for adding tests!

Copy link
Contributor

github-actions bot commented Jun 6, 2024

✅ All Cypress E2E specs passed

@MiloradFilipovic MiloradFilipovic self-requested a review June 7, 2024 09:55
Copy link
Contributor

github-actions bot commented Jun 7, 2024

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit eccc637 into master Jun 7, 2024
28 checks passed
@elsmr elsmr deleted the node-1375-make-isempty-more-visible-in-expressions-and-filter branch June 7, 2024 11:25
RicardoE105 pushed a commit that referenced this pull request Jun 9, 2024
@github-actions github-actions bot mentioned this pull request Jun 12, 2024
@janober
Copy link
Member

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

Successfully merging this pull request may close these issues.

3 participants