-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue tracker] change userID to full name #8451
[Issue tracker] change userID to full name #8451
Conversation
@regisoc in this file issue_tracker/test/Issue_TrackerTest.php add [ 'assignee' => 'TestUser', ] after line 63, it will pass test. |
Hi @regisoc , let's add the changes to the CHANGELOG file for keeping track https://github.com/aces/Loris/blob/main/CHANGELOG.md |
@@ -429,7 +452,7 @@ class Edit extends \NDB_Page implements ETagCalculator | |||
|
|||
$issueID = intval($values['issueID']); | |||
|
|||
$issueValues['lastUpdatedBy'] = $user->getUsername(); | |||
$issueValues['lastUpdatedBy'] = $user->getUserName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it is assigned in line 483 I think this input in 455 is not longer necessary .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be because it is used in line 473 (update on existing issue case) and 477 (new issue case).
This needed to be the username (userID) for the issues
table. The value is just changed for the full name after database insert/update (line 483).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, yes, it's a bit confusing the way the code is wrote but I think this precedes this PR. For example $historyValues is assigned in 470 the used in 486, passing the DB updated in between without using the value :)
The PR is fine !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One single comment. Aside of that looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Brief summary of changes
Change user IDs to user full names throughout the main pages.
Testing instructions (if applicable)
assignee
andreporter
columns in the main table (there should be user full names).