Repository navigation
Conversation
See: https://mantis.ilias.de/view.php?id=45372 After importing test users to another system, participant rows could still show wrong names because views used global user lookups or generic anonymous labels instead of test-local metadata. Resolving names via `getParticipantByActiveId()` per row also duplicated heavy participant queries in lists and tables. Introduced `ILIAS\Test\Participants\User` with identity fields and `getDisplayName()`, wired it through `Participant`, and added `ParticipantRepository::getUsersByActiveIds()` as a lightweight batched lookup against `tst_active` and `usr_data`. The method returns a `\Generator` keyed by active id, consistent with `getParticipants()`. Updated evaluation, toplist, manual scoring, and participant list call sites to batch-fetch users and use `getUser()` for user-facing data. (cherry picked from commit eb7c9dd)
thojou
force-pushed
the
bugfix/12/45372-2
branch
from
November 19, 2026 09:51
90841d0 to
ed92cb7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original: #11514
See: https://mantis.ilias.de/view.php?id=45372
After importing test users to another system, participant rows could still show wrong names because views used global user lookups or generic anonymous labels instead of test-local metadata. Resolving names via
getParticipantByActiveId()per row also duplicated heavy participant queries in lists and tables.Introduced
ILIAS\Test\Participants\Userwith identity fields andgetDisplayName(), wired it throughParticipant, and addedParticipantRepository::getUsersByActiveIds()as a lightweight batched lookup againsttst_activeandusr_data. The method returns a\Generatorkeyed by active id, consistent withgetParticipants(). Updated evaluation, toplist, manual scoring, and participant list call sites to batch-fetch users and usegetUser()for user-facing data.(cherry picked from commit eb7c9dd)