Uninett / nav

Network Administration Visualized
GNU General Public License v3.0
194 stars 39 forks source link

Save a description of maintenance components for use when the referenced components have been deleted #3228

Open lunkwill42 opened 2 days ago

lunkwill42 commented 2 days ago

Today, when a netbox (say, with a primary key of 42 and a sysname of example-sw) is added as a maintenance task component, and later the netbox is deleted, the maintenance task will display the component as Netbox: 42 (Component was deleted).

This is intentional, i.e. we want to keep a record of the fact that something was added to a task, even if that something no longer exists in NAV.

However, referring to the netbox as 42 isn't helpful, when all users have known it as example-sw. The netbox record itself is gone, but if the maintenance component itself could record the netbox' sysname when it was added, this could be shown instead.

This is less crucial for locations and rooms, as they do not have opaque integer primary keys in NAV, but string primary keys that are identifiable even after they have been deleted. We might need a description for services, though.

The desired solution