fix(core): Don't show setup in demo mode#26233
Merged
yehorkardash merged 2 commits intomasterfrom Feb 25, 2026
Merged
Conversation
Member
|
I'd also prefer is someone more familiar with the codebase co-reviewed this with me 👍🏼 🙂 |
Contributor
There was a problem hiding this comment.
No issues found across 2 files
Architecture diagram
sequenceDiagram
participant Client as Frontend UI
participant FS as FrontendService
participant Env as Environment (N8N_PREVIEW_MODE)
participant OS as OwnershipService
Note over Client, OS: Request for application configuration
Client->>FS: getPublicSettings()
FS->>FS: getSettings()
FS->>Env: Check process.env.N8N_PREVIEW_MODE
FS->>FS: NEW: getShowSetupOnFirstLoad()
alt NEW: Preview/Demo Mode is Enabled (true)
Note right of FS: Bypass DB check to allow demo access
FS->>FS: Set showSetupOnFirstLoad = false
else Standard Mode
FS->>OS: hasInstanceOwner()
OS-->>FS: return boolean
FS->>FS: CHANGED: Set showSetupOnFirstLoad = !hasInstanceOwner
end
FS-->>FS: Update this.settings.userManagement
FS-->>Client: Return PublicFrontendSettings (showSetupOnFirstLoad)
Note over Client: If false, user bypasses setup<br/>and enters the app directly.
MiloradFilipovic
approved these changes
Feb 25, 2026
Contributor
MiloradFilipovic
left a comment
There was a problem hiding this comment.
Looks good, thanks for addressing this 🙌
Merged
Contributor
|
Got released with |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
schrothbn
pushed a commit
that referenced
this pull request
Feb 26, 2026
Tuukkaa
pushed a commit
that referenced
this pull request
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes issue when sometimes in demo mode n8n returned
showSetupOnFirstLoad: trueTesting:
hooksdirectory locally from hereRelated Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)