Skip to content

Export Templates, no results when Filtering for Content types  #13478

@ross-cello

Description

@ross-cello

NetBox version

v3.5.8

Python version

3.9

Steps to Reproduce

Reproduced in Demo Netbox v3.5.7 (Note, as of the edit, I moved our test instance to v3.5.8 and reproduced).

  1. Navigate to Customization > Export Templates

  2. Create some Export Templates if you have none present.

CSV example below for creating one circuit, contact, site and tenant. You can import these.

name,content_types,mime_type,file_extension,as_attachment,template_code
extemplate_circuit,circuits.circuit,text/csv,csv,true,{}
extemplate_contact,tenancy.contact,text/csv,csv,true,{}
extemplate_site,dcim.site,text/csv,csv,true,{}
extemplate_tenant,tenancy.tenant,text/csv,csv,true,{}
  1. Once you have some Export Templates, navigate to the search, so Customization > Export Templates > Filters tab

  2. Filter against any content type you know is present, or the four demonstrated above, under Filters tab > Attributes section > Content types field

Example filter for Circuit, Contact, Site, Tenant:
--> https://{netboxhost}/extras/export-templates/?content_types=19&content_types=56&content_types=110&content_types=107

Example filter for Tenant:
--> https://{netboxhost}/extras/export-templates/?content_types=107
  1. Observe search results... or lack thereof.

Expected Behavior

Filtering Content types in the Filters search should return results relevant to the specified Content type that you are filtering for.

Observed Behavior

No results returned for any filtered Content type; at least of those demonstrated.

For many of the other criteria in Filter search - eg MIME type, File extension, Search string and 'Nothing' - these all look to produce results as you would expect; so it looks to just be Content types that is problematic.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions