Repository navigation
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
Conversation
…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
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.
What
rail0 admin configdocuments three sources for a value (constant,default,override) and no longer a fourth,environment_file.Why
#227 added the
sourcecolumn 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
sourcelists the three values;envis empty only for a constant;overriddenis again "its variable is set in this process";--overriddensays the same.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.
sourcewas and is copied from the gateway's answer, and isnullfrom a gateway older than the field.Tests
go build,go vet,go test ./...green;go run ./tools/gendocsregenerated the two pages.