Skip to content

Rename jinja2_filters/get_jinja2_context/register_jinja2_filters to drop the '2' suffix #22438

@bctiemann

Description

@bctiemann

Proposed Changes

  • Rename PluginConfig.jinja2_filtersjinja_filters
  • Rename PluginConfig.get_jinja2_context()get_jinja_context()
  • Rename register_jinja2_filters()register_jinja_filters()
  • Update the default auto-discovery file convention from jinja2_env.pyjinja_env.py
  • Update all call sites, tests, and documentation accordingly

Justification

PR #22363 introduced three public-facing identifiers with a jinja2 prefix:

  • PluginConfig.jinja2_filters attribute
  • PluginConfig.get_jinja2_context() method
  • register_jinja2_filters() helper in netbox.plugins.registration
  • Auto-discovery file convention jinja2_env.py / default resource path

These should simply read jinja (no 2) to match the renamed JINJA_FILTERS setting (which dropped its own 2 in #22288) and to align with how all other references to Jinja in the NetBox codebase are spelled.

Metadata

Metadata

Assignees

Labels

netboxstatus: acceptedThis issue has been accepted for implementationtype: housekeepingChanges to the application which do not directly impact the end user
No fields configured for Housekeeping.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions