Bug #26200
closed[Audit] Repository creation under product creates audit record with empty content
Description
Findings -
Katello::Content keeps the information about content i.e cp_content_id, content_type, content_url.
Product :has_many association with contents and :has_many association with root_repositories.
Inside root_repositories, it just keep content_id no association with content but 'content' method definition is there.
In audit record after creating a repository under product I can see audited_changes includes -> {"content_id"=>[nil, "1551336016057"]}.
But as there is no content association mentioned in root_repository and while displaying information it tries to fetch association using ".reflect_on_association", it displays empty data.
So, this is issue while displaying content information on UI.
Updated by Kavita Gaikwad over 5 years ago
- Related to Bug #26675: [Audit] Repository creation under product creates audit record with empty content added
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6710 added
Updated by Kavita Gaikwad over 5 years ago
- Blocks Bug #27383: Missing(ID: N) for Host_ids column in case of audit records for subscription updates added
Updated by Kavita Gaikwad about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset dab2876f06b8ffed851ae96534ba962e3da05637.