[[ 🏗 =br6Go Vervis ]] :: [📥 Inbox] [📤 Outbox] [🐤 Followers] [🤝 Collaborators] [🐛 Tickets] [📖 Wiki] [✏ Edit]

Make it difficult to accidentally switch between Fed and Dev

Created on 2019-07-21 by ~fr33domlover
[🐤 Followers] [⤴ Dependencies] [⤷ Dependants] [✋ Claim requests] [✏ Edit]

Right now, the URI Mode is set automatically based on the package flag dev defined in the cabal file. If someone plays with that flag, to toggle development settings, it could cause chaos in the database. A development instance should remain a development instance and use the Dev mode even if all development settings are otherwise off.

How to make sure the flag isn’t toggled, accidentally causing damage?

Maybe add a new, separate flag for this, and store the initial value of the flag somewhere, e.g. in the settings or in some separate file, and when Vervis starts it can compare the value and make sure it hasn’t changed. If there’s a mismatch, raise error.

(This problem has some similarity to the problem of making sure the repos dir and the DB are in sync)

Status: Open

Custom fields

Discussion

new topic
[See JSON]