BE+FE: new fields handling in views and filters

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-01-30 08:34:55 +11:00
parent 229ea770cb
commit 17e563aa29
4 changed files with 49 additions and 36 deletions

View File

@@ -543,7 +543,10 @@ function mapColumnIndexToFieldName(index, tableColumnVisible) {
"devCustomProps", // 26
"devFQDN", // 27
"devParentRelType", // 28
"devReqNicsOnline" // 29
"devReqNicsOnline", // 29
"devVlan", // 30
"devPrimaryIPv4", // 31
"devPrimaryIPv6", // 32
];
// console.log("OrderBy: " + columnNames[tableColumnOrder[index]]);
@@ -660,6 +663,9 @@ function initializeDatatable (status) {
devFQDN
devParentRelType
devReqNicsOnline
devVlan
devPrimaryIPv4
devPrimaryIPv6
}
count
}
@@ -743,7 +749,10 @@ function initializeDatatable (status) {
device.devCustomProps || "",
device.devFQDN || "",
device.devParentRelType || "",
device.devReqNicsOnline || 0
device.devReqNicsOnline || 0,
device.devVlan || "",
device.devPrimaryIPv4 || "",
device.devPrimaryIPv6 || "",
];
const newRow = [];

View File

@@ -1588,6 +1588,38 @@
}
]
},
{
"function": "devVlan",
"type": {
"dataType": "string",
"elements": [
{
"elementType": "input",
"elementOptions": [],
"transformers": []
}
]
},
"maxLength": 50,
"default_value": "",
"options": [],
"localized": [
"name",
"description"
],
"name": [
{
"language_code": "en_us",
"string": "VLAN"
}
],
"description": [
{
"language_code": "en_us",
"string": "The VLAN identifier or name the device belongs to. Database column name: <code>devVlan</code>."
}
]
},
{
"function": "devSyncHubNode",
"type": {
@@ -1901,38 +1933,6 @@
}
]
},
{
"function": "devVlan",
"type": {
"dataType": "string",
"elements": [
{
"elementType": "input",
"elementOptions": [],
"transformers": []
}
]
},
"maxLength": 50,
"default_value": "",
"options": [],
"localized": [
"name",
"description"
],
"name": [
{
"language_code": "en_us",
"string": "VLAN"
}
],
"description": [
{
"language_code": "en_us",
"string": "The VLAN identifier or name the device belongs to. Database column name: <code>devVlan</code>."
}
]
},
{
"function": "devForceStatus",
"type": {

View File

@@ -441,8 +441,9 @@
"Device_TableHead_FQDN",
"Device_TableHead_ParentRelType",
"Device_TableHead_ReqNicsOnline",
"Device_TableHead_IPv6",
"Device_TableHead_IPv4"
"Device_TableHead_Vlan",
"Device_TableHead_IPv4",
"Device_TableHead_IPv6"
],
"localized": ["name", "description"],
"name": [

View File

@@ -339,6 +339,9 @@ class Query(ObjectType):
"devFQDN",
"devParentRelType",
"devParentMAC",
"devVlan",
"devPrimaryIPv4",
"devPrimaryIPv6"
]
search_term = options.search.lower()