Closes #22438: Rename jinja2_filters/get_jinja2_context/register_jinja2_filters to drop the '2' suffix#22437
Closes #22438: Rename jinja2_filters/get_jinja2_context/register_jinja2_filters to drop the '2' suffix#22437bctiemann wants to merge 1 commit into
Conversation
|
@claude /review and limit response to areas of potential concern. |
|
Claude finished @bctiemann's task in 2m 15s —— View job PR ReviewThe rename is mechanically complete — no old 1. Breaking API change with no deprecation pathSince these identifiers were introduced in PR #22363 (not yet released, targeting the
The silent 2.
|
Summary
Closes #22438. Follow-up housekeeping to #22363.
PR #22363 introduced several plugin hook identifiers with a
jinja2prefix. TheJINJA2_FILTERSsetting was renamed toJINJA_FILTERSin #22288 before that PR merged, but the hook names were not updated to match. This PR aligns them:PluginConfig.jinja2_filters→jinja_filtersPluginConfig.get_jinja2_context()→get_jinja_context()register_jinja2_filters()→register_jinja_filters()jinja2_env.py→jinja_env.pyAll call sites, tests, and documentation updated accordingly. No functional changes.
Test plan
netbox.tests.test_plugins) pass unchanged (only renamed)jinja_env.pyis auto-discovered and its filter appears inregistry['plugins']['jinja_filters']🤖 Generated with Claude Code