Skip to content

docs(admin): admin config lists the three sources the gateway names (constant, default, override), without the per-environment file - #230

Draft
pviti wants to merge 1 commit into
milestone/nextfrom
fix/admin-config-source-vocabulary
Draft

pviti wants to merge 1 commit into
milestone/nextfrom
fix/admin-config-source-vocabulary

Conversation

@pviti

@pviti pviti commented Nov 27, 2026

Copy link
Copy Markdown
Member

What

rail0 admin config documents three sources for a value (constant, default, override) and no longer a fourth, environment_file.

Why

#227 added the source column when the gateway was moving its per-environment settings into a committed file per environment. That choice was reversed the same day: every setting that differs between environments (local, staging, production) or between platforms is read from a variable again, set in the deployment's own configuration, so the gateway names no file as a source. The help text, written for the file, would describe a value that never appears.

Changes

  • Help, README and the generated pages: source lists the three values; env is empty only for a constant; overridden is again "its variable is set in this process"; --overridden says the same.
  • Tests: the fixture no longer answers environment_file; one setting carries a source this version does not know, to pin that the value is passed on as it comes.

What does not change

The command. source was and is copied from the gateway's answer, and is null from a gateway older than the field.

Tests

go build, go vet, go test ./... green; go run ./tools/gendocs regenerated the two pages.

…nt, default, override)

The gateway goes back to reading every setting that differs between
environments from a variable, so no setting comes from a file per
environment and "environment_file" is not a source it names. The help, the
README and the generated pages say so; "overridden" is again only "its
variable is set in this process".

Nothing changes in what the command does: source is passed on as the gateway
gives it, also when it is a word this version does not know (now a test).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant