Project

General

Profile

Bug #14742

Template kind friendly names from plugins can be reloaded and lost in development

Added by Dominic Cleal about 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Template kind friendly names added through the plugin template labels interface can be lost when TemplateKind is reloaded, as it's stored in a class variable.

  1. Call template_labels from a plugin registration (e.g. foreman_bootdisk master branch)
  2. View the templates list, check it's showing the friendly name
  3. Edit TemplateKind, to reload the class
  4. Refresh the template list, the friendly name will disappear

Related issues

Related to Foreman - Bug #14395: Hosts > Operating Systems > [OS] > Templates tab: "provision" field label is lowercase, should be "Provision"Closed2016-03-30
Related to Foreman - Refactor #12747: Provide some kind of central store or consistent way to manage dynamically registered objects from pluginsResolved2015-12-08

Associated revisions

Revision 93dc012b (diff)
Added by Dominic Cleal about 6 years ago

fixes #14742 - retrieve template kind labels from plugin regs

Ensures plugin kinds registered in class variables aren't lost when the
TemplateKind class is reloaded.

History

#1 Updated by Dominic Cleal about 6 years ago

  • Related to Bug #14395: Hosts > Operating Systems > [OS] > Templates tab: "provision" field label is lowercase, should be "Provision" added

#2 Updated by Dominic Cleal about 6 years ago

  • Related to Refactor #12747: Provide some kind of central store or consistent way to manage dynamically registered objects from plugins added

#3 Updated by The Foreman Bot about 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3444 added

#4 Updated by Dominic Cleal about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Dominic Cleal about 6 years ago

  • Legacy Backlogs Release (now unused) set to 136

Also available in: Atom PDF