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): Do not show error for remote options when credentials aren't specified #10944

Conversation

burivuhster
Copy link
Contributor

@burivuhster burivuhster commented Sep 24, 2024

Summary

For newly inserted nodes, if they have parameters with remote options and credentials aren't set yet, we shouldn't show an error. Change this to the "Set up credential to see options" notice.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/AI-309/openai-model-selector-dont-show-error-if-cred-is-missing

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 n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Sep 24, 2024
OlegIvaniv
OlegIvaniv previously approved these changes Sep 24, 2024
Copy link
Contributor

@OlegIvaniv OlegIvaniv left a comment

Choose a reason for hiding this comment

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

Seems to work as expected but might be worth adding simple E2E or unit test 🤔

@burivuhster
Copy link
Contributor Author

You are right :) I've added a unit test for this case

OlegIvaniv
OlegIvaniv previously approved these changes Sep 25, 2024
Copy link
Contributor

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

Copy link

cypress bot commented Sep 25, 2024

n8n    Run #7053

Run Properties:  status check passed Passed #7053  •  git commit d649d1d829: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Project n8n
Branch Review ai-309-openai-model-selector-dont-show-error-if-cred-is-missing
Run status status check passed Passed #7053
Run duration 04m 18s
Commit git commit d649d1d829: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Committer Eugene Molodkin
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 431
View all changes introduced in this branch ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@burivuhster burivuhster merged commit 9fc3699 into master Sep 26, 2024
35 checks passed
@burivuhster burivuhster deleted the ai-309-openai-model-selector-dont-show-error-if-cred-is-missing branch September 26, 2024 10:03
This was referenced Oct 2, 2024
@janober
Copy link
Member

janober commented Oct 2, 2024

Got released with n8n@1.62.1

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