Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/533.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed duplicate "Software Version" column labels on the Devices and Inventory Items list views.
6 changes: 6 additions & 0 deletions docs/user/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ Although not natively built in to the app at this time, this can be achieved by
## Does this app support integration with other vendor's hardware/software API's such as Juniper, Palo Alto, Aruba, Arista, etc...?

Not at this time, however, the maintainers would love to hear what you would like to see. If you work at a networking vendor and would like to see your API's integrated to this app, please reach out to the maintainers.

## Why do I now see `Software Version (DLM)` in Devices and Inventory Items list views?

Previously, Devices and Inventory Items list views displayed duplicate Software Version columns one from Nautobot core and one provided by the Device Lifecycle Management (DLM) app.

To avoid confusion, the DLM-managed column is now explicitly labeled `Software Version (DLM)`.
10 changes: 10 additions & 0 deletions nautobot_device_lifecycle_mgmt/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@

ContractLCM = sender.get_model("ContractLCM")

# Mark the 'device_soft' and 'inventory_item_soft' relationship as managed by the Device Lifecycle Management (DLM) app.
device_soft = Relationship.objects.filter(key="device_soft").first()
if device_soft and " (DLM)" not in device_soft.destination_label:
device_soft.destination_label += " (DLM)"
device_soft.save()

Check warning on line 25 in nautobot_device_lifecycle_mgmt/signals.py

View workflow job for this annotation

GitHub Actions / unittest_report (3.13, postgresql, stable)

Missing coverage

Missing coverage on lines 24-25
inventory_item_soft = Relationship.objects.filter(key="inventory_item_soft").first()
if inventory_item_soft and " (DLM)" not in inventory_item_soft.destination_label:
inventory_item_soft.destination_label += " (DLM)"
inventory_item_soft.save()

Check warning on line 29 in nautobot_device_lifecycle_mgmt/signals.py

View workflow job for this annotation

GitHub Actions / unittest_report (3.13, postgresql, stable)

Missing coverage

Missing coverage on lines 28-29

# Hide obsolete device_soft and inventory_item_soft relationships
Relationship.objects.filter(key__in=("device_soft", "inventory_item_soft")).update(
destination_hidden=True, source_hidden=True
Expand Down
Loading