Skip to content

Partial search for inventory items #3788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aventrax opened this issue Dec 24, 2019 · 1 comment
Closed

Partial search for inventory items #3788

aventrax opened this issue Dec 24, 2019 · 1 comment
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application

Comments

@aventrax
Copy link

Environment

  • Python version: 3.6.3
  • NetBox version: 2.6.9

Steps to Reproduce

  1. Add an inventiry item with an "asset tag" like this: cespite001
  2. Search for it with a partial match via API: https://netbox.local/api/dcim/inventory-items/?q=cespite

Expected Behavior

The item should be found.

Observed Behavior

The item is not found.

@DanSheps DanSheps added status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application labels Dec 24, 2019
@DanSheps
Copy link
Member

DanSheps commented Dec 24, 2019

Unlinke devices, the query on inventory items uses exact string insensitive match for searching.

This should be changed to match devices in how they search the asset tag for a partial match

@DanSheps DanSheps changed the title Partial search for inventiry items Partial search for inventiory items Dec 24, 2019
@DanSheps DanSheps changed the title Partial search for inventiory items Partial search for inventory items Dec 24, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants