Commit 14c6935
authored
Phase 8 second batch G2 — per architect canonical D7-2 (msg=94f663f2 §3.2.2),
``aperag/views/settings.py`` is carved into the knowledge_base domain and the
URL prefix is hard-cut from ``/api/v1/settings*`` to ``/api/v2/settings*``.
Changes:
- Rename ``aperag/views/settings.py`` → ``aperag/domains/knowledge_base/api/settings_routes.py``
- Inline the small ``Settings`` request schema locally so the new domain
module does not import ``aperag.schema.view_models`` (G1 ban). Drop the
now-orphan ``Settings`` class from ``aperag/schema/view_models.py`` —
no other caller imports it (verified by grep).
- Switch the ``settings_router`` mount in ``aperag/app.py`` from
``/api/v1`` to ``/api/v2``; sort the import line into the
``aperag.domains.knowledge_base.api.*`` block.
- Add a new boundary test
``test_no_module_imports_legacy_views_settings`` — analogous to the
existing ``test_aperag_domains_never_import_legacy_auth_view_dependencies``
added by #36. Total boundary tests now 22.
- Update ``docs/modularization/cleanup-inventory.md`` §3.2 to mark the
row done.
FE follow-up: ``web/src/features/admin/{client,server}-api.ts`` (and
related typed-client regen) will be picked up by @dongdong in a sibling
PR per task thread #模块化重构:e1f4ce71.
Gates: 22/22 boundary, 686 pass / 29 skip / 1 deselect / 0 fail unit
suite, ruff check + format clean.
1 parent 940d5bb commit 14c6935
5 files changed
Lines changed: 55 additions & 10 deletions
File tree
- aperag
- domains/knowledge_base/api
- schema
- docs/modularization
- tests/unit_test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
15 | 29 | | |
16 | 30 | | |
17 | 31 | | |
18 | 32 | | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
22 | 37 | | |
23 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
24 | 52 | | |
25 | 53 | | |
26 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 75 | | |
82 | 76 | | |
83 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
361 | 384 | | |
362 | 385 | | |
363 | 386 | | |
| |||
0 commit comments