[PR #12723] [MERGED] Adds hide-if-unset to custom field #14035

Closed
opened 2025-12-29 23:22:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12723
Author: @abhi1693
Created: 5/25/2023
Status: Merged
Merged: 5/30/2023
Merged by: @jeremystretch

Base: developHead: feat/12597-cf-visibility


📝 Commits (6)

  • 49e4704 adds hide-if-unset to custom field #12597
  • d8915b6 moved hide logic from template to python
  • 982dabd fix indentation
  • 2ee5b72 Update logic for omit_hidden under get_custom_fields()
  • ca72754 Update docs
  • 0aa495d Account for False values

📊 Changes

3 files changed (+17 additions, -8 deletions)

View changed files

📝 docs/models/extras/customfield.md (+6 -5)
📝 netbox/extras/choices.py (+2 -0)
📝 netbox/netbox/models/features.py (+9 -3)

📄 Description

Fixes: #12597


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/12723 **Author:** [@abhi1693](https://github.com/abhi1693) **Created:** 5/25/2023 **Status:** ✅ Merged **Merged:** 5/30/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `feat/12597-cf-visibility` --- ### 📝 Commits (6) - [`49e4704`](https://github.com/netbox-community/netbox/commit/49e4704bf7bf2933a1ca714c878bea15081830fe) adds hide-if-unset to custom field #12597 - [`d8915b6`](https://github.com/netbox-community/netbox/commit/d8915b6d25fe134b16b4ef0858e2399ac83b4eef) moved hide logic from template to python - [`982dabd`](https://github.com/netbox-community/netbox/commit/982dabd4ede468927ae2e789549f35f382f5d0dd) fix indentation - [`2ee5b72`](https://github.com/netbox-community/netbox/commit/2ee5b72da251497b8b98481b759e502f70d3586f) Update logic for omit_hidden under get_custom_fields() - [`ca72754`](https://github.com/netbox-community/netbox/commit/ca72754a710ad7e6482ee8b0b3cd9851f5dbfb41) Update docs - [`0aa495d`](https://github.com/netbox-community/netbox/commit/0aa495d93d7dd79f750ba76f1615044db7ba811e) Account for False values ### 📊 Changes **3 files changed** (+17 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/extras/customfield.md` (+6 -5) 📝 `netbox/extras/choices.py` (+2 -0) 📝 `netbox/netbox/models/features.py` (+9 -3) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #12597 <!-- Please include a summary of the proposed changes below. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:22:09 +01:00
adam closed this issue 2025-12-29 23:22:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14035