generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: keep search params when redirecting (#679)
- Loading branch information
1 parent
13aa24b
commit 11114de
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Shuffling | ||
|
||
Shuffling is a hidden feature only available when adding a query parameter to the URL of the Graasp Player interface. | ||
In this document, we describe how shuffling works. | ||
|
||
## Query Parameter | ||
|
||
The query parameter that needs to be added is `shuffle=true`. | ||
|
||
## Behavior | ||
|
||
Shuffling only shuffles the direct children of a root item, **excluding** the last child. | ||
The last child is not shuffled to allow for experiments / learning experiences to have the same **first** and **last** items. | ||
This means that the root item will always be displayed first and the last child will always be displayed last. | ||
A member will always see an item shuffled in the same order. | ||
|
||
## Randomization | ||
|
||
Shuffling is achieved using the Fisher-Yates algorithm. | ||
Randomization is based on seed that is calculated by adding the UUID of the member and the UUID of the root item. |
This file contains 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