Project

General

Profile

Actions

Bug #4289

closed

Deleting a smart class parameter does not remove lookup_values for overrides

Added by Anonymous over 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Parameters
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If you delete a smart class parameter on a Foreman class and it has an override it does not delete entries from the lookup_values table or the lookup_keys table, so any hosts that the override applies to displays a parameter with no scope and it doesn't seem possible to delete it from the host edit page.

If you then add the smart class parameter back by doing an import it creates a new entry in the lookup_keys table that is associated in the environment_classes join table and the override is still inaccessible to delete.

From Ohad it seems the keys were intentionally left behind, but it would seem that leaving the values behind has an undesirable/confuding side effect in the interface, so it would probably be worth cleaning them up if the override they are associated with is deleted.

Actions #1

Updated by Dominic Cleal over 10 years ago

  • Category set to Parameters
  • Status changed from New to Ready For Testing
  • Target version set to 1.9.1
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Status changed from Ready For Testing to Feedback
  • Target version deleted (1.9.1)

As per the PR conversation, we couldn't reproduce this again. If you see it, please update this ticket.

Actions #3

Updated by Anonymous about 7 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF