Commit 864b1ea
committed
Fix AnatomyExpressedIn TypeError: cache wrapper param rename
In v1.13.6 we renamed get_expression_overlaps_here's parameter
anatomy_short_form -> expression_pattern_short_form
to reflect the inverse-direction semantics. The XMI side and
ha_api.QUERY_TYPE_MAP were updated, but the cache wrapper in
cached_functions.py kept the old keyword and continued to call
_original_get_expression_overlaps_here(
anatomy_short_form=anatomy_short_form, ...)
against the renamed function. Every AnatomyExpressedIn /run_query
call has been raising
TypeError: get_expression_overlaps_here() got an unexpected
keyword argument 'anatomy_short_form'
in prod since v1.13.6. Caught by the v1.14.0 reference-walks audit
when AnatomyExpressedIn returned count=None instead of rows. The
fix is the same one-line rename in cached_functions.py — wrapper
parameter and forwarded keyword both become
expression_pattern_short_form. Docstring updated.
Patch bump 1.14.0 -> 1.14.1 — no schema or behaviour change for any
other query, no SOLR cache implications (the broken wrapper means
no AnatomyExpressedIn payloads ever made it into cache).1 parent 5d7ed02 commit 864b1ea
2 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
459 | 464 | | |
460 | 465 | | |
461 | 466 | | |
462 | 467 | | |
463 | | - | |
| 468 | + | |
464 | 469 | | |
465 | | - | |
| 470 | + | |
466 | 471 | | |
467 | 472 | | |
468 | 473 | | |
| |||
0 commit comments