Remove Existing Config
Steps
- Scrub through the entire codebase that references the config key, and modify the logic accordingly.
- Add the deprecated path in ../packages/engine-server/src/migrations/utils.ts (Private)
- Once the deprecated path is added,
ConfigUtils.detectDeprecatedConfigs
will catch it in the subsequent release (ifextensionInstallStatus === InstallStatus.UPGRADED
). The user will be prompted to trigger a doctor command. This means we don't have to explicitly write migration code that scrubs the deprecated config key fromdendron.yml
. - Update tests and json schema
From Modify Dendron ConfigGo to text ā
Update Json
- Update the json schema
Run
yarn gen:data
at the root of the monorepo - Update snapshots
From TestingGo to text ā
Start anchor updating-test-snapshots not found
Set a new default for new users but don't change behavior existing users
Do this when setting a new default for new users.
- Update genLatestConfig and set a sensible default there. New users will get this
- Old users will get whatever value was set in Add New Config
- Update the json schema
Run
Backlinks