Put demo code behind a feature flag #19
Labels
No labels
backend
beginner friendly
frontend
size/extra-large
size/large
size/medium
size/small
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/tartan-vote#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
The backend adds demo/dev-only endpoints and HTML:
demo_home, the auth-bypass login form, anddemo_not_found, etc. These are useful for local development but should be gated so they can be turned off.Tasks
demo_home, the bypass login HTML/JS, anddemo_not_foundbehind a cargo feature (e.g.demo) or a runtime config flag, defaulting to off.server.rsso the demo routes and demo fallback are only mounted when the flag is enabled, and verify locally that they are absent when it is off.TEST-HTTP), but gate the user-facing demo UI.Files:
auth/,server.rs,Cargo.toml