Skip to content
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

Add "empty" API filter on custom fields of type date #18256

Open
SaschaSchwarzK opened this issue Dec 18, 2024 · 0 comments
Open

Add "empty" API filter on custom fields of type date #18256

SaschaSchwarzK opened this issue Dec 18, 2024 · 0 comments
Labels
status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application

Comments

@SaschaSchwarzK
Copy link

NetBox version

v4.1.8

Feature type

New functionality

Triage priority

I volunteer to perform this work (if approved)

Proposed functionality

When requesting data from API enable filtering for custom fields of type date for objects where the field is none.
example API call:
https://demo.netbox.dev/api/dcim/device-types/?cf_EOL_DATE__empty=true/

Use case

There is currently no way to filter objects by custom fields of type date to get only the objects where is no value set.
This functionality would improve the usability as it avoid to download all object and filter them in external code.

Database changes

none

External dependencies

none

@SaschaSchwarzK SaschaSchwarzK added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

1 participant