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): Recommend and pre-select auth type with overrides #5684

Merged
merged 2 commits into from
Mar 17, 2023

Conversation

MiloradFilipovic
Copy link
Contributor

No description provided.

@MiloradFilipovic MiloradFilipovic self-assigned this Mar 14, 2023
@github-actions
Copy link
Contributor

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching packages/**/*.ts:

  • Added unit tests to cover new or updated functionality.

Make sure to check off this list before asking for review.

@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (a96861b) 10.25% compared to head (0871857) 10.25%.

❗ Current head 0871857 differs from pull request most recent head f136ec0. Consider uploading reports for the commit f136ec0 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5684   +/-   ##
=======================================
  Coverage   10.25%   10.25%           
=======================================
  Files        2200     2200           
  Lines       84651    84651           
  Branches    16679    16679           
=======================================
  Hits         8684     8684           
  Misses      75481    75481           
  Partials      486      486           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Mar 14, 2023
field.options.map((option) => {
// Check if credential type associated with this auth option has overwritten properties
let hasOverrides = false;
const cred = getNodeCredentialForSelectedAuthType(nodeType, option.value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we only set the overridden credential as default only in n8n cloud? Se the comment from the ticket below.

For cloud, the OAuth auth type should always be pre-selected if it's overwritten (pre-filled)

Copy link
Contributor Author

@MiloradFilipovic MiloradFilipovic Mar 16, 2023

Choose a reason for hiding this comment

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

Nice catch, looks like it was a misunderstanding. Updated in latest commit.

@MiloradFilipovic MiloradFilipovic merged commit f59b591 into master Mar 17, 2023
@MiloradFilipovic MiloradFilipovic deleted the ADO-375-recommended-auth-type-tweaks branch March 17, 2023 08:01
@n8n-assistant n8n-assistant bot added the Upcoming Release Will be part of the upcoming release label Mar 17, 2023
@janober
Copy link
Member

janober commented Mar 26, 2023

Got released with [email protected]

@janober
Copy link
Member

janober commented Mar 26, 2023

Got released with [email protected]

sunilrr pushed a commit to fl-g6/qp-n8n that referenced this pull request Apr 24, 2023
…io#5684)

* feat(editor): Recommend auth type with overrides and pre-select them when creating new credentials
* ⚡ Only auto-selecting credentials on cloud
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 Upcoming Release Will be part of the upcoming release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants