Project

General

Profile

Bug #20708

Audit do not properly display and search on partition tables and provisioning templates

Added by Marek Hulán about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Bugzilla link:

Description

Because of STI, audit log saves "Template" as auditable_type for both types. We should separate it. Also we should print the right class in audit log for new audit records. That should also enable searching audits based on this type, e.g. "partition_table = aaa" or "provisioning_template = bbb" instead of current "template = something" which searches in both.


Related issues

Related to Foreman - Bug #21206: Partition tables loses org/loc association after upgradeClosed2017-10-05
Related to Foreman Remote Execution - Bug #21888: Upgrade to 6.3 hides ReX templatesClosed2017-12-06

Associated revisions

Revision 83775e63 (diff)
Added by Marek Hulán about 3 years ago

Fixes #20708 - fix templates auditing

Templates were audited under parent class. This keeps separate audits
per template type and allows searching by provisioning_template and
partition_table names. It also fixes broken associations in
taxable_taxonomies table.

Revision fe46cbc1 (diff)
Added by Marek Hulán about 3 years ago

Refs #20708 - reset default templates type

Revision 42250fb3 (diff)
Added by Marek Hulán about 3 years ago

Refs #20708 - reset default templates type

History

#1 Updated by The Foreman Bot about 3 years ago

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

#2 Updated by Marek Hulán about 3 years ago

  • Target version changed from 1.18.0-RC2 to 214

#3 Updated by Anonymous about 3 years ago

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

#4 Updated by Marek Hulán about 3 years ago

  • Legacy Backlogs Release (now unused) set to 296

#5 Updated by The Foreman Bot about 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4822 added

#6 Updated by Ivan Necas about 3 years ago

  • Bugzilla link set to 1492668

#7 Updated by Ivan Necas about 3 years ago

  • Related to Bug #21206: Partition tables loses org/loc association after upgrade added

#8 Updated by Ivan Necas almost 3 years ago

  • Related to Bug #21888: Upgrade to 6.3 hides ReX templates added

Also available in: Atom PDF