Adjust TODO release targets
Some checks are pending
CI / build (20.x, 3.10) (push) Waiting to run
CI / build (20.x, 3.11) (push) Waiting to run
CI / build (20.x, 3.12) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run

This commit is contained in:
Jeremy Stretch 2025-08-14 12:54:46 -04:00
parent 70bd0cc9e2
commit 32ea174331
3 changed files with 14 additions and 14 deletions

View File

@ -588,9 +588,9 @@ class BaseScript:
""" """
Return data from a YAML file Return data from a YAML file
""" """
# TODO: DEPRECATED: Remove this method in v4.4 # TODO: DEPRECATED: Remove this method in v4.5
self._log( self._log(
_("load_yaml is deprecated and will be removed in v4.4"), _("load_yaml is deprecated and will be removed in v4.5"),
level=LogLevelChoices.LOG_WARNING level=LogLevelChoices.LOG_WARNING
) )
file_path = os.path.join(settings.SCRIPTS_ROOT, filename) file_path = os.path.join(settings.SCRIPTS_ROOT, filename)
@ -603,9 +603,9 @@ class BaseScript:
""" """
Return data from a JSON file Return data from a JSON file
""" """
# TODO: DEPRECATED: Remove this method in v4.4 # TODO: DEPRECATED: Remove this method in v4.5
self._log( self._log(
_("load_json is deprecated and will be removed in v4.4"), _("load_json is deprecated and will be removed in v4.5"),
level=LogLevelChoices.LOG_WARNING level=LogLevelChoices.LOG_WARNING
) )
file_path = os.path.join(settings.SCRIPTS_ROOT, filename) file_path = os.path.join(settings.SCRIPTS_ROOT, filename)

View File

@ -44,7 +44,7 @@ ADVISORY_LOCK_KEYS = {
'job-schedules': 110100, 'job-schedules': 110100,
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.5
# Legacy default view action permission mapping # Legacy default view action permission mapping
DEFAULT_ACTION_PERMISSIONS = { DEFAULT_ACTION_PERMISSIONS = {
'add': {'add'}, 'add': {'add'},

View File

@ -107,7 +107,7 @@ def subscribe_button(context, instance):
# Legacy object buttons # Legacy object buttons
# #
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/clone.html') @register.inclusion_tag('buttons/clone.html')
def clone_button(instance): def clone_button(instance):
# Resolve URL path # Resolve URL path
@ -125,7 +125,7 @@ def clone_button(instance):
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/edit.html') @register.inclusion_tag('buttons/edit.html')
def edit_button(instance): def edit_button(instance):
url = get_action_url(instance, action='edit', kwargs={'pk': instance.pk}) url = get_action_url(instance, action='edit', kwargs={'pk': instance.pk})
@ -136,7 +136,7 @@ def edit_button(instance):
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/delete.html') @register.inclusion_tag('buttons/delete.html')
def delete_button(instance): def delete_button(instance):
url = get_action_url(instance, action='delete', kwargs={'pk': instance.pk}) url = get_action_url(instance, action='delete', kwargs={'pk': instance.pk})
@ -147,7 +147,7 @@ def delete_button(instance):
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/sync.html') @register.inclusion_tag('buttons/sync.html')
def sync_button(instance): def sync_button(instance):
url = get_action_url(instance, action='sync', kwargs={'pk': instance.pk}) url = get_action_url(instance, action='sync', kwargs={'pk': instance.pk})
@ -162,7 +162,7 @@ def sync_button(instance):
# Legacy list buttons # Legacy list buttons
# #
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/add.html') @register.inclusion_tag('buttons/add.html')
def add_button(model, action='add'): def add_button(model, action='add'):
try: try:
@ -176,7 +176,7 @@ def add_button(model, action='add'):
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/import.html') @register.inclusion_tag('buttons/import.html')
def import_button(model, action='bulk_import'): def import_button(model, action='bulk_import'):
try: try:
@ -190,7 +190,7 @@ def import_button(model, action='bulk_import'):
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/export.html', takes_context=True) @register.inclusion_tag('buttons/export.html', takes_context=True)
def export_button(context, model): def export_button(context, model):
object_type = ObjectType.objects.get_for_model(model) object_type = ObjectType.objects.get_for_model(model)
@ -212,7 +212,7 @@ def export_button(context, model):
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/bulk_edit.html', takes_context=True) @register.inclusion_tag('buttons/bulk_edit.html', takes_context=True)
def bulk_edit_button(context, model, action='bulk_edit', query_params=None): def bulk_edit_button(context, model, action='bulk_edit', query_params=None):
try: try:
@ -229,7 +229,7 @@ def bulk_edit_button(context, model, action='bulk_edit', query_params=None):
} }
# TODO: Remove in NetBox v4.6 # TODO: Remove in NetBox v4.7
@register.inclusion_tag('buttons/bulk_delete.html', takes_context=True) @register.inclusion_tag('buttons/bulk_delete.html', takes_context=True)
def bulk_delete_button(context, model, action='bulk_delete', query_params=None): def bulk_delete_button(context, model, action='bulk_delete', query_params=None):
try: try: