Centralized user preferences/settings

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Description

New features are starting to have the requirement to save user preferences to the database (for example the last view a user selected for a board) and I'm worried that we might end up with these littered around if there's no guidance.

Specifically, new features are asking for "Your selection choice is saved to your user, so that if you log into GitLab from any device, your previous selection persists"

Proposal

Either have a 'best practices' document laying out how to properly implement new preferences, or add a library to do this in a generic manner.

Edited by 🤖 GitLab Bot 🤖