mirror of
https://github.com/panatgithub/AnkiHeadingSync.git
synced 2026-07-22 06:51:43 +00:00
中文: 删除托管 QA Group 12 死代码,统一保留用户自选笔记模板与字段映射路径。 English: Removes dead managed QA Group 12 code and keeps user-selected note templates and field mappings as the active path.
2.5 KiB
2.5 KiB
Remove Managed QA Group 12 Decisions
Final files to delete
src/application/config/ManagedNoteModels.tssrc/application/services/QaGroupModelDefinition.tssrc/application/services/QaGroupModelService.tssrc/application/services/QaGroupModelService.test.ts
Final gateway methods and types to remove
- Remove from
AnkiGroupGatewayand corresponding implementations/tests:getModelTemplatesgetModelStylingcreateModeladdModelFieldaddModelTemplateupdateModelTemplateupdateModelStyling
- Remove managed-model-only types:
AnkiModelTemplateCreateAnkiModelInput
Final AnkiConnectGateway cleanup
- Remove the AnkiConnect action wrappers that only serve the deleted managed model path:
modelTemplatesmodelStylingcreateModelmodelFieldAddmodelTemplateAddupdateModelTemplatesupdateModelStyling
Current QA Group path preserved
- Preserve
QaGroupSyncServiceas the active runtime path. - Preserve
QaGroupFieldMappingServiceas the active mapping/slot authority. - Preserve user-selected QA Group note types via
settings.cardTypeConfigs["qa-group"].noteType. - Preserve saved mappings keyed by
qa-group:<modelName>. - Preserve GI marker, slot, deck, tag, backlink, and clear-current-file behavior unchanged.
Test update strategy
- Delete managed model service tests.
- Remove AnkiConnectGateway tests that only cover deleted model-management methods.
- Update remaining tests to use neutral example model names such as
QA Group List. - Keep QA Group sync and QA Group field mapping tests as the regression guard for the real active path.
Active wording cleanup strategy
- Ensure active source/tests/README/manifest do not keep the old managed QA Group 12 route.
- Historical docs are intentionally excluded from bulk rewrite.
Intentionally retained references
- Old QA Group 12 references in historical docs remain for audit history.
- Generic model-reading methods still used by active settings and sync paths remain untouched:
listNoteModelsgetModelDetailsgetModelFieldNamesgetModelFieldNamesByModelNamesupdateNoteModel
Intentional deviations from the plan
manifest.jsonandREADME.mddo not need changes in this round because current repository reality already removed the old managed QA Group 12 wording from those active files.- Internal QA Group sync semantics are intentionally unchanged; this round is dead-code removal only.