Skip to content

refactor(core): Make SecretsProvider.connect() return Result instead of relying on side effects#1484

Closed
everettbu wants to merge 1 commit into
masterfrom
ligo-187-tidy-up-internal-connecttest-logic-to-enable-better-error
Closed

refactor(core): Make SecretsProvider.connect() return Result instead of relying on side effects#1484
everettbu wants to merge 1 commit into
masterfrom
ligo-187-tidy-up-internal-connecttest-logic-to-enable-better-error

Conversation

@everettbu

@everettbu everettbu commented Feb 6, 2026

Copy link
Copy Markdown

Mirror of n8n-io/n8n#25433
Original author: geemanjs


Summary

  • Make connect return a result
  • Have the old endpoint behave as is
  • For the new endpoint remove the tested logic
  • Remove state history as this is unused

Partially done with claude-code

Related Linear tickets, Github issues, and Community forum posts

Closes LIGO-187

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)

@everettbu everettbu added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Feb 6, 2026
…of relying on side effects

- Add ConnectResult interface for functional error handling
- SecretsProvider.connect() now returns { success: boolean; error?: Error }
- Remove unused stateHistory tracking and hasEverBeenConnected
- Simplify ProviderLifecycle.connect() to just delegate and log
- Clean up testProviderSettings() method
@everettbu
everettbu force-pushed the ligo-187-tidy-up-internal-connecttest-logic-to-enable-better-error branch from 029f802 to 4742691 Compare February 6, 2026 14:18
@everettbu

Copy link
Copy Markdown
Author

Upstream PR was closed or merged. Code is synced via branch mirror.

@everettbu everettbu closed this Feb 23, 2026
@everettbu
everettbu deleted the ligo-187-tidy-up-internal-connecttest-logic-to-enable-better-error branch February 23, 2026 15:57
@everettbu
everettbu restored the ligo-187-tidy-up-internal-connecttest-logic-to-enable-better-error branch February 23, 2026 16:38
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants