Keep results off participant devices
Results belong on the stage. Participants only get results where they interact with them (word cloud with upvotes) and, once resolved, the solution of quiz and ordering slides with their own verdict, without counts or distribution. Removes the per-poll setting show_results_to_participants (column stays unused). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ecb8f9d31c
commit
cfb445123e
14 files changed
+86
-59
No files matched your search
@@ -149,14 +149,15 @@ class OrderTest extends TestCase
|
||||
$this->assertSame([1, 2, 3, 4], array_column($results['items'], 'position'));
|
||||
$this->assertSame([2, 2, 3, 3], array_column($results['items'], 'placed'));
|
||||
|
||||
// Revealed even without show_results_to_participants.
|
||||
$poll->show_results_to_participants = false;
|
||||
$this->pollsTable()->saveOrFail($poll);
|
||||
// Participants get the solution and their own verdict, but no counts.
|
||||
$wrong = $this->participantState($poll, 'p2');
|
||||
$this->assertTrue($wrong['order']['revealed']);
|
||||
$this->assertFalse($wrong['order']['isCorrect']);
|
||||
$this->assertSame($this->ids($slide, ['Antike', 'Steinzeit', 'Mittelalter', 'Neuzeit']), $wrong['order']['answer']);
|
||||
$this->assertNotNull($wrong['results']);
|
||||
$this->assertSame([1, 2, 3, 4], array_column($wrong['results']['items'], 'position'));
|
||||
$this->assertArrayNotHasKey('correctCount', $wrong['results']);
|
||||
$this->assertArrayNotHasKey('placed', $wrong['results']['items'][0]);
|
||||
$this->assertArrayNotHasKey('percent', $wrong['results']['items'][0]);
|
||||
$this->assertTrue($this->participantState($poll, 'p1')['order']['isCorrect']);
|
||||
$this->assertNull($this->participantState($poll, 'nobody')['order']['isCorrect']);
|
||||
|
||||
|
||||
Reference in new issue
Block a user