Use localstorage to remember swimlane state for boards
What does this MR do and why?
This MR does two things:
- Prevent
group_by=epic
from persisting when switching boards - Use LocalStorage to remember whether the user has swimlanes turned on for a board and show them again when visiting that board
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Check out this branch locally
- Visit a project issue board. If the project only has one board, create another one so that you can switch between boards.
- Turn epic swimlanes on for the board
- EXPECTED:
group_by=epic
will be added to the URL and epic swimlanes will turn on
- EXPECTED:
- Switch to another board
- EXPECTED:
group_by=epic
should not persist in the URL and epic swimlanes should not be on for this board
- EXPECTED:
- Switch back to the first board you were visiting
- EXPECTED:
group_by=epic
should be in the URL and epic swimlanes should be on
- EXPECTED:
- Turn epic swimlanes off
- EXPECTED:
group_by=epic
will be removed from the URL and epic swimlanes will be turned off
- EXPECTED:
- Switch to the other board you visited in step 4
- EXPECTED:
group_by=epic
should not be in the URL and epic swimlanes should not be on for this board
- EXPECTED:
- Switch back to the original board again
- EXPECTED:
group_by=epic
will not be in the URL and epic swimlanes will be turned off
- EXPECTED:
- Manually add
group_by=epic
to the URL and hit Enter to visit the resulting URL- EXPECTED: the
group_by=epic
parameter remains in the URL and epic swimlanes turn on
- EXPECTED: the
- Manually remove
group_by=epic
from the URL and hit Enter to visit the resulting URL- EXPECTED: the
group_by=epic
parameter is not part of the URL and epic swimlanes are off
- EXPECTED: the
- Visit a group issue board. If the group only has one board, create another one so that you can switch between boards.
- repeat steps 3-10 for group issue boards
- EXPECTED: for each step, the group issue board will behave identically to the project issue board
- Visit a group epic board
- Open the view options dropdown
- EXPECTED: The "Epic swimlanes" toggle will not be present on this board
- Manually add
group_by=epic
to the URL and hit Enter to visit the resulting URL- EXPECTED: the
group_by=epic
parameter will be removed from the URL. Nothing will change about the board. (Epic boards do not have epic swimlanes functionality)
- EXPECTED: the
Related to #457555 (closed), #452225 (closed)
Edited by Chad Lavimoniere