Address warnings on initialization #10239

Closed
opened 2025-12-29 21:28:44 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Sep 12, 2024).

Proposed Changes

NetBox currently logs several warnings on initialization of the application:

/home/jstretch/projects/netbox/venv/lib/python3.10/site-packages/strawberry/types/fields/resolver.py:237: DeprecationWarning: Argument name-based matching of 'info' is deprecated and will be removed in v1.0. Ensure that reserved arguments are annotated their respective types (i.e. use value: 'DirectiveValue[str]' instead of 'value: str' and 'info: Info' instead of a plain 'info').
  return {spec: spec.find(parameters, self) for spec in self.RESERVED_PARAMSPEC}
/home/jstretch/projects/netbox/venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1141: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme.
  return form_class(**defaults)
/home/jstretch/projects/netbox/netbox/tenancy/forms/bulk_edit.py:117: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme.
  link = forms.URLField(
/home/jstretch/projects/netbox/netbox/circuits/tables/circuits.py:107: DeprecationWarning: Use '__' to separate path components, not '.' in accessor 'circuit.provider' (fallback will be removed in django_tables2 version 3).
  provider = tables.Column(

These should each be addressed and resolved.

Justification

General cleanup

Originally created by @jeremystretch on GitHub (Sep 12, 2024). ### Proposed Changes NetBox currently logs several warnings on initialization of the application: ``` /home/jstretch/projects/netbox/venv/lib/python3.10/site-packages/strawberry/types/fields/resolver.py:237: DeprecationWarning: Argument name-based matching of 'info' is deprecated and will be removed in v1.0. Ensure that reserved arguments are annotated their respective types (i.e. use value: 'DirectiveValue[str]' instead of 'value: str' and 'info: Info' instead of a plain 'info'). return {spec: spec.find(parameters, self) for spec in self.RESERVED_PARAMSPEC} /home/jstretch/projects/netbox/venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1141: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme. return form_class(**defaults) /home/jstretch/projects/netbox/netbox/tenancy/forms/bulk_edit.py:117: RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme. link = forms.URLField( /home/jstretch/projects/netbox/netbox/circuits/tables/circuits.py:107: DeprecationWarning: Use '__' to separate path components, not '.' in accessor 'circuit.provider' (fallback will be removed in django_tables2 version 3). provider = tables.Column( ``` These should each be addressed and resolved. ### Justification General cleanup
adam added the status: duplicatetype: housekeepingnetbox labels 2025-12-29 21:28:44 +01:00
adam closed this issue 2025-12-29 21:28:44 +01:00
Author
Owner

@jnovinger commented on GitHub (Mar 11, 2025):

Looks like this was also covered by #18858 and is just a pre-existing duplicate of #18857.

@jnovinger commented on GitHub (Mar 11, 2025): Looks like this was also covered by #18858 and is just a pre-existing duplicate of #18857.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10239