Group level Issue Boards show Archived Projects in New Issue project search box

Summary

In the group level Issue Board you can see Archived projects in the New Issue Select Project drop down

Steps to reproduce

  1. Create a group
  2. Create a project in this group
  3. Archive this project
  4. Go back to the group and go to any Issue Board
  5. Click the + under Open Issues
  6. Type the name of this new project under Select a Project
  7. Observe it is visible, if you do choose it then if you do submit a new bug nothing happens

Example Project

Example issue board:

https://gitlab.com/groups/edina_test/-/boards

Example archived project:

https://gitlab.com/edina_test/test2

Under the issue board, the archived project linked there appears when you try and add an issue via the board

What is the current bug behavior?

You are able to see and add bugs to archived projects via the issue board (although adding an issue silently fails)

What is the expected correct behavior?

That you don't see archived projects appear in this drop down and thus can't incorrectly try and add issues to it.

Relevant logs and/or screenshots

Archived project screenshot: image Project board which incorrectly displays the above project: image

Output of checks

This bug happens both on our self hosted Gitlab and on Gitlab.com

Results of GitLab environment info

Expand for output related to GitLab environment info
```

System information
System:
Current User:	git
Using RVM:	no
Ruby Version:	2.6.6p146
Gem Version:	2.7.10
Bundler Version:1.17.3
Rake Version:	12.3.3
Redis Version:	5.0.9
Git Version:	2.28.0
Sidekiq Version:5.2.9
Go Version:	unknown

GitLab information
Version:	13.4.2
Revision:	b08b36dccc3
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	11.7
URL:		http://
HTTP Clone URL:	http:///some-group/some-project.git
SSH Clone URL:	git@:some-group/some-project.git
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers:

GitLab Shell
Version:	13.7.0
Repository storage paths:
- default: 	/var/opt/gitlab/git-data/repositories
GitLab Shell path:		/opt/gitlab/embedded/service/gitlab-shell
Git:		/opt/gitlab/embedded/bin/git
```

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

Edited by Andrew Seales