Enable caching of object attributes in search index #15413
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v3.7.3
Feature type
New functionality
Proposed functionality
Extend
SearchIndex
to enable caching object attributes in addition to concrete model fields. This can be achieved by tweaking itsget_field_type()
method to also accept attributes. (get_field_value()
probably doesn't need modification as it's simply wrappinggetattr()
.)Use case
This will enable NetBox to capture rendered attributes in addition to raw database values. For instance, #14201 requests caching the number of an ASN object as the string "AS1234" in addition to the plain numeric value.
Database changes
None expected
External dependencies
None
The text was updated successfully, but these errors were encountered: