Discussion/Proposal: Secret variables sorted by key instead of id
Hello guys,
I've been using the CI Secret Variables with several variables per environment (dev, homolog and production). I prefix my variables according to the branch/environment related to them. Eg.:
DEV_DB_HOST
DEV_DB_PASSWORD
// several more variables
HOMOLOG_DB_HOST
HOMOLOG_DB_PASSWORD
// several more variables
PRODUCTION_DB_HOST
PRODUCTION_DB_PASSWORD
// several more variables
In this case, variables sorted by keys are really useful. Since I don't see any advantage to list them by id
, I'd like to discuss a change like this in app/models/ci/variable.rb
:
default_scope -> { reorder(key: :asc) }
What do you think?