Project

General

Profile

Bug #32121

Puppetclass creation audits are not correctly taxed

Added by Ondřej Ezr 3 months ago. Updated 2 months ago.

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

Description

In Audit logs, Filter type = puppetclass do not list any creation result

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1806462

Description of problem:
Select Taxonomies that the puppetclasses are in.
Monitor -> Audits, The filter type = puppetclass is not working and shows no audits for created classes

Version-Release number of selected component (if applicable): Foreman 2.0

How reproducible:

Only in Taxonomy scope.
If we select Any organization and Any location we see the audits correctly

Associated revisions

Revision 734423d7 (diff)
Added by Ondřej Ezr 2 months ago

Fixes #32121 - Puppetclass create audit taxonomy

On Puppetclass create, there are no persisted EnvironmentClasses yet,
so location_ids and organization_ids were always empty on create.

This allows to save EnvironmentClasses with Puppetclasses together and
thus get the location_ids and organization_ids from the unsaved
EnvironmentClasses. Thus the audit for Puppetclass will get correctly
taxed.

History

#1 Updated by Ondřej Ezr 3 months ago

  • Category changed from Audit Log to Puppet integration
  • Subject changed from Puppetclass creation audits are not correctly taxed to Puppetclass creation audits are not correctly taxed

#2 Updated by Ondřej Ezr 3 months ago

  • Target version set to 2.5.0

#3 Updated by The Foreman Bot 3 months ago

  • Assignee set to Ondřej Ezr
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8404 added

#4 Updated by The Foreman Bot 2 months ago

  • Fixed in Releases 2.5.0 added

#5 Updated by Ondřej Ezr 2 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF