Store hide labels in issue boards as a preference

Summary

(Summarize the bug encountered concisely)

You can toggle labels on and off but the preference doesn't persist.

internal customer as a continuation of https://gitlab.com/gitlab-org/gitlab-ee/issues/9838

  • It is an instance-wide setting per user. So that when you change the toggle in one board, it carries over whenever you visit any another board in the instance.
  • The default is showing labels.

Steps to reproduce

(How one can reproduce the issue - this is very important)

  1. Go to an issue board
  2. Hide labels with toggle
  3. Refresh browser
  4. Labels are once again visible

Example Project

https://gitlab.com/gitlab-org/gitlab/-/boards

What is the current bug behavior?

  1. Go to an issue board
  2. Hide labels with toggle
  3. Refresh browser
  4. Labels are once again visible

What is the expected correct behavior?

  1. Go to an issue board
  2. Hide labels with toggle
  3. Refresh browser
  4. Labels remain hidden

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)

Output of checks

This happens on GitLab.com and can be considered UX debt

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by 🤖 GitLab Bot 🤖