Project

General

Profile

Bug #35642

New UI shows creator of host as the 'Host owner' not who actually created

Added by Nofar Alfassi 3 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

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

Description of problem:

While creating the host the new UI shows creator of the host as the 'Host owner' not who actually created

"Created 20 minutes ago by mysuer (updated 20 minutes ago)"

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

How reproducible:
100%

Steps to Reproduce:
1. Set the 'Host owner, in Administer >> Settings >> Provisioning. (EX: myuser)
2. Login with some other user (or admin).
3. Create a host.
4. Toggle to New UI.

It will show the below message:

"Created 20 minutes ago by mysuer (updated 20 minutes ago)"

Though the admin user actually created the user. If we verify the Monitor >> Audit it shows the correct creator.

Expected results:

The message should indicate who actually created it or the owner itself. Something like below

"Created 20 minutes ago owned by mysuer (updated 20 minutes ago)"

or

"Created 20 minutes ago for myuser (updated 20 minutes ago)"

Additional info:

If we toggle to legacy UI we don't see that message.

Audit logs show the correct message.

Associated revisions

Revision c3afd8f0 (diff)
Added by Nofar Alfassi 2 months ago

Fixes #35642 - update the message in the new UI to display the host's creator

Add `creator_id` property to the Host model to save the user who created each host.
This property is used in the new host details UI to display the user who created the host.

History

#1 Updated by Nofar Alfassi 3 months ago

  • Assignee set to Nofar Alfassi
  • Subject changed from New UI shows creator of host as the 'Host owner' not who actually created to New UI shows creator of host as the 'Host owner' not who actually created

#2 Updated by The Foreman Bot 3 months ago

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

#3 Updated by The Foreman Bot 2 months ago

  • Fixed in Releases 3.6.0 added

#4 Updated by Nofar Alfassi 2 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Ewoud Kohl van Wijngaarden about 1 month ago

  • Triaged changed from No to Yes

Also available in: Atom PDF