Repository navigation
fix(config): migrate legacy Docker provider settings - #741
Merged
haiphucnguyen merged 2 commits intoSep 30, 2026
Merged
Conversation
Signed-off-by: Jeongwan Jeon <[email protected]>
Signed-off-by: Jeongwan Jeon <[email protected]>
Collaborator
|
Thank you @jeonjw85 for this PR! Can you sign the CLA before I can merge? |
Contributor
Author
|
Thanks! I've signed the CLA. |
haiphucnguyen
approved these changes
Sep 30, 2026
haiphucnguyen
left a comment
Collaborator
There was a problem hiding this comment.
Thank you @jeonjw85 for the fix and the comprehensive test cases. LGTM!
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.
Summary
Legacy
DOCKERentries fail to load because the migration uses the template name instead of the old enum name.Migrate each provider from the parsed YAML tree. This fixes the name mapping and prevents one entry from changing another entry's template. Existing templates and unrelated fields are preserved, and the config is saved only after successful deserialization.
Migrated files are reserialized by the existing YAML mapper, so comments and formatting are not preserved. Files that need no migration are not rewritten.
How to Test
./gradlew :cli:test --tests 'io.askimo.core.config.AppConfig*Test' ./gradlew spotlessCheck detektAll 59 config tests pass, including 29 migration cases. Coverage includes multiple providers, quoting, field order, empty or missing templates, invalid configs, and repeated loads. Before the follow-up fix, 19 cases failed.
CLI tests pass with Docker tests disabled and
ANTHROPIC_API_KEYunset. Desktop tests, Spotless, and Detekt also pass. The full test run still has 9 failures inFileContentExtractorTest(AskimoHome not registered), also reproduced before this PR.Checklist
mainspotlessApply,spotlessCheck, anddetekt