Bad user experience while subscribing for issue notification as anonymous user
Summary
I see the Something went wrong while setting issue notifications.
error message when trying to activate the issue notification as an anonymous user(non-logged in)
Steps to reproduce
Visit any public issue page as non logged in user. Click on 3 dots, and activate Notifications
. You will get an error banner Something went wrong while setting issue notifications.
Example Project
All public projects
What is the current bug behavior?
The user gets an unclear error message of Something went wrong while setting issue notifications.
making a bad user experience.
What is the expected correct behavior?
A more clear error message tells the user why there is an error message, or maybe a message which asks the user to log in. Another option is to redirect to the login screen.
Relevant logs and/or screenshots
Output of checks
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)