Commit d77cc3c
committed
refactor: simplify RouteHealthCheckFilter and clean up health-check docs
- ``RouteHealthCheckFilter.health_check_required`` becomes a plain
``bool`` (default ``False``): ``False`` skips the filter, ``True``
keeps only routes whose revision has a resolved health-check block.
The previous ``Optional[bool]`` carried a third "keep only opt-out
routes" mode no caller used and whose meaning was easy to misread
off the field name.
- Drop ``_passes_health_check`` helper; inline the single remaining
predicate at the call site in ``get_routes_by_statuses``.
- Remove the ``health_check_required=False`` repository test that
exercised the dropped semantic.
- Strip the ``hc-`` shorthand from AppProxy sync handler comments and
the repository test docstring — the abbreviation reads as jargon to
anyone outside this branch.
- Trim verbose docstrings on ``RouteData`` (back to main's one-liner)
and ``RouteSessionData`` (single sentence, no FK invariant note).1 parent 600e107 commit d77cc3c
6 files changed
Lines changed: 17 additions & 59 deletions
File tree
- src/ai/backend/manager
- data/deployment
- repositories/deployment
- db_source
- types
- sokovan/deployment/route/handlers
- tests/unit/manager
- repositories/deployment
- sokovan/deployment/route/handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
270 | | - | |
| 268 | + | |
| 269 | + | |
271 | 270 | | |
272 | 271 | | |
273 | | - | |
| 272 | + | |
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
| |||
Lines changed: 1 addition & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | 235 | | |
250 | 236 | | |
251 | 237 | | |
| |||
1666 | 1652 | | |
1667 | 1653 | | |
1668 | 1654 | | |
1669 | | - | |
1670 | | - | |
| 1655 | + | |
1671 | 1656 | | |
1672 | 1657 | | |
1673 | 1658 | | |
| |||
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 65 | + | |
71 | 66 | | |
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 73 | + | |
85 | 74 | | |
86 | 75 | | |
87 | 76 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | | - | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
Lines changed: 3 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3986 | 3986 | | |
3987 | 3987 | | |
3988 | 3988 | | |
3989 | | - | |
| 3989 | + | |
3990 | 3990 | | |
3991 | 3991 | | |
3992 | 3992 | | |
| |||
4009 | 4009 | | |
4010 | 4010 | | |
4011 | 4011 | | |
4012 | | - | |
4013 | | - | |
4014 | | - | |
4015 | | - | |
4016 | | - | |
4017 | | - | |
4018 | | - | |
4019 | | - | |
4020 | | - | |
4021 | | - | |
4022 | | - | |
4023 | | - | |
4024 | | - | |
4025 | | - | |
4026 | | - | |
4027 | | - | |
4028 | | - | |
4029 | | - | |
4030 | | - | |
4031 | | - | |
4032 | 4012 | | |
4033 | 4013 | | |
4034 | 4014 | | |
4035 | 4015 | | |
4036 | 4016 | | |
4037 | 4017 | | |
4038 | 4018 | | |
4039 | | - | |
| 4019 | + | |
| 4020 | + | |
4040 | 4021 | | |
4041 | 4022 | | |
4042 | 4023 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments