Repository navigation
feat: 完善问卷规则、资料导入导出与新版答卷管理 - #49
Merged
Merged
Conversation
Require all mandatory questionnaires and at least one optional extra. Remove legacy paper and empty-definition completion bypasses, return REST completion errors, and document the policy and gate. Validation: scoped backend pytest 85 passed; affected submit API suite 26 passed after added GraphQL coverage; production flake8 and staged diff checks passed. No schema migration or deployment.
Add a standalone command to inspect all definition tables, report structural and reference errors, and return release-check exit codes. Keep missing codes as warnings and sanitize configuration failure output. Validation: related questionnaire suite 58 passed; affected checker file 31 passed after the review fix; flake8, CLI help, document links and staged diff checks passed. Real database not checked; no schema or deployment changes.
Align four completed questionnaire stages with their implementation commits, consolidate remaining work and verification boundaries, and repair API navigation links. Preserve original requirement and historical execution records. Documentation only. Verified 233 local links and 20 Markdown anchors during the closeout review; staged diff check passed. No application tests rerun, database access, push or deployment.
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.
统一问卷的后端定义、语义编码、答案校验和完成判断,角色/音乐/CP 投票要求先保存满足“所有必填+至少一份额外问卷”的 V2 答案。管理台补齐候选导入和新版答卷管理,可查看历史提交并整批作废、恢复;最新作废不回退旧批次,原始答案仍可回填修改。
同时补齐作品/角色/音乐资料 JSON 下载、图片/试听 URL 导入,以及作品 JSON/CSV 批量导入。候选只关联已有投票对象,导入校验有错误时整批不写入。包含已授权测试数据清理的操作记录;PR 本身不携带清库任务。
本分支基于最新 main 整理,未重复带入已合并的拼音搜索历史,也未包含独立 PR #36 的音乐快照修复。
验证:
python -m pytest tests/ -q:947 passed(116.51秒,包含数据库约束检查,无跳过)。python -m flake8 src/ --max-line-length=88、pnpm --dir admin-ui build、git diff --check均通过;构建产物与提交一致,工作区干净。迁移与发布:
接口及回退说明:docs/api/questionnaire-submissions.md;完整实施和验证记录:docs/superpowers/plans/2026-11-10-candidate-import-and-answer-admin.md。