mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-30 23:03:03 -07:00
feat: authoritative plugin fields
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -138,12 +138,6 @@ The Device Edit form displays lock/unlock buttons for all tracked fields:
|
|||||||
2. **Unlock Button** (🔓): Click to allow plugin overwrites again
|
2. **Unlock Button** (🔓): Click to allow plugin overwrites again
|
||||||
3. **Source Indicator**: Shows current field source (USER, LOCKED, NEWDEV, or plugin name)
|
3. **Source Indicator**: Shows current field source (USER, LOCKED, NEWDEV, or plugin name)
|
||||||
|
|
||||||
### Source Indicator Colors
|
|
||||||
|
|
||||||
- Red (USER): Field was manually edited by a user
|
|
||||||
- Orange (LOCKED): Field is locked and protected from overwrites
|
|
||||||
- Gray (NEWDEV/Plugin): Field value came from automatic discovery
|
|
||||||
|
|
||||||
## UI Workflow
|
## UI Workflow
|
||||||
|
|
||||||
### Locking a Field via UI
|
### Locking a Field via UI
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ The device field lock/unlock system allows you to protect specific device fields
|
|||||||
|
|
||||||
**Use case:** You've manually corrected a device name or port number and want to keep it that way, even when plugins discover different values.
|
**Use case:** You've manually corrected a device name or port number and want to keep it that way, even when plugins discover different values.
|
||||||
|
|
||||||
## Tracked Fields (10 Total)
|
## Tracked Fields
|
||||||
|
|
||||||
These are the ONLY fields that can be locked:
|
These are the ONLY fields that can be locked:
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ Each locked field has a "source" indicator that shows you why the value is prote
|
|||||||
|
|
||||||
## Quick Tips
|
## Quick Tips
|
||||||
|
|
||||||
- **Lock names and IPs you manually corrected** to keep them stable
|
- **Lock names you manually corrected** to keep them stable
|
||||||
- **Leave discovery fields (vendor, FQDN) unlocked** for automatic updates
|
- **Leave discovery fields (vendor, FQDN) unlocked** for automatic updates
|
||||||
- **Use locks sparingly**—they prevent automatic data enrichment
|
- **Use locks sparingly**—they prevent automatic data enrichment
|
||||||
- **Check the source indicator** (colored badge) to understand field origin
|
- **Check the source indicator** (colored badge) to understand field origin
|
||||||
@@ -133,7 +133,7 @@ Each locked field has a "source" indicator that shows you why the value is prote
|
|||||||
- Double-check the lock icon shows
|
- Double-check the lock icon shows
|
||||||
- Reload the page—the change might be a display issue
|
- Reload the page—the change might be a display issue
|
||||||
- Check if you accidentally unlocked it
|
- Check if you accidentally unlocked it
|
||||||
- pen an issue if it persists
|
- Open an issue if it persists
|
||||||
|
|
||||||
## For More Information
|
## For More Information
|
||||||
|
|
||||||
|
|||||||
@@ -56,12 +56,12 @@ def process_scan(db):
|
|||||||
mylog("verbose", "[Process Scan] Updating Devices Info")
|
mylog("verbose", "[Process Scan] Updating Devices Info")
|
||||||
update_devices_data_from_scan(db)
|
update_devices_data_from_scan(db)
|
||||||
|
|
||||||
# Last Connection Time stamp from CurrentSan
|
# Last Connection Time stamp from CurrentScan
|
||||||
mylog("verbose", "[Process Scan] Updating devLastConnection from CurrentSan")
|
mylog("verbose", "[Process Scan] Updating devLastConnection from CurrentScan")
|
||||||
update_devLastConnection_from_CurrentScan(db)
|
update_devLastConnection_from_CurrentScan(db)
|
||||||
|
|
||||||
# Presence from CurrentSan
|
# Presence from CurrentScan
|
||||||
mylog("verbose", "[Process Scan] Updating Devices Info")
|
mylog("verbose", "[Process Scan] Updating Presence from CurrentScan")
|
||||||
update_presence_from_CurrentScan(db)
|
update_presence_from_CurrentScan(db)
|
||||||
|
|
||||||
# Update devPresentLastScan based on NICs presence
|
# Update devPresentLastScan based on NICs presence
|
||||||
|
|||||||
Reference in New Issue
Block a user