Add gauge lab + maintenance asset references with enable/disable toggles
Dedicated assets.gaugelabreference and assets.maintenancereference columns (distinct from assetnumber), surfaced on equipment. Add global per-identifier enable/disable settings (gauge/maintenance/FQDN) read via a shared composable and toggled in System Settings. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -134,6 +134,28 @@ def create_setting():
|
||||
def seed_default_settings():
|
||||
"""Seed default settings if they don't exist."""
|
||||
defaults = [
|
||||
# Asset identifier feature toggles (global, per identifier)
|
||||
{
|
||||
'key': 'identifier_gaugelabreference_enabled',
|
||||
'value': 'true',
|
||||
'valuetype': 'boolean',
|
||||
'category': 'identifiers',
|
||||
'description': 'Show the Gauge Lab Reference identifier on assets'
|
||||
},
|
||||
{
|
||||
'key': 'identifier_maintenancereference_enabled',
|
||||
'value': 'true',
|
||||
'valuetype': 'boolean',
|
||||
'category': 'identifiers',
|
||||
'description': 'Show the Maintenance Reference identifier on assets'
|
||||
},
|
||||
{
|
||||
'key': 'identifier_fqdn_enabled',
|
||||
'value': 'true',
|
||||
'valuetype': 'boolean',
|
||||
'category': 'identifiers',
|
||||
'description': 'Show the FQDN / hostname identifier on assets'
|
||||
},
|
||||
# Zabbix integration
|
||||
{
|
||||
'key': 'zabbix_enabled',
|
||||
|
||||
Reference in New Issue
Block a user