When Project's Issues Feature is Disabled, Open Issue Counters and Todos remain
Summary
When you have an issues board with issues in it and then close it from the settings menu (Settings->Issues->Disabled) people will still see their issues in dashboard/issues?assignee_id=X
as number but not as items and in dashboard/todos
even as items. If you click on them you get an error 404 in return.
This does not change when gitlab/webserver is restarted so I doubt it is only some caching problem.
Steps to reproduce
- Create issue board
- Add issues to it
- Disable issue board
- Visit issues and to-dos from top right menu
What is the current bug behavior?
Non-existing issues are displayed and linked to.
What is the expected correct behavior?
The numbers should update according to the active issues and items should be removed when issues do not exist anymore.
Output of checks
Results of GitLab environment info
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Redis Version: 3.2.5
Git Version: 2.11.1
Sidekiq Version:4.2.7
GitLab information
Version: 9.1.0
Revision: c3f0f14
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: <hidden>
HTTP Clone URL: <hidden>/some-group/some-project.git
SSH Clone URL: git@<hidden>:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.0.2
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 5.0.2 ? ... OK (5.0.2)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
2/1 ... ok
4/3 ... ok
4/4 ... ok
3/5 ... ok
7/6 ... ok
7/7 ... ok
7/8 ... ok
7/9 ... ok
7/10 ... ok
7/11 ... ok
3/12 ... ok
13/13 ... ok
3/17 ... ok
2/19 ... ok
2/20 ... ok
7/21 ... ok
2/22 ... ok
7/24 ... ok
2/26 ... ok
2/27 ... ok
2/29 ... ok
3/31 ... ok
2/33 ... ok
2/34 ... ok
2/36 ... ok
2/38 ... ok
3/39 ... ok
2/40 ... ok
3/42 ... ok
3/43 ... ok
12/44 ... ok
12/45 ... ok
3/46 ... ok
3/47 ... ok
13/49 ... ok
13/50 ... ok
8/51 ... ok
2/53 ... ok
2/55 ... ok
2/56 ... ok
8/57 ... ok
8/60 ... ok
2/61 ... ok
2/62 ... ok
2/63 ... ok
2/64 ... ok
8/65 ... ok
9/66 ... ok
8/68 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
2/1 ... yes
4/3 ... yes
4/4 ... yes
3/5 ... yes
7/6 ... yes
7/7 ... yes
7/8 ... yes
7/9 ... yes
7/10 ... yes
7/11 ... yes
3/12 ... yes
13/13 ... yes
3/17 ... yes
2/19 ... yes
2/20 ... yes
7/21 ... yes
2/22 ... yes
7/24 ... yes
2/26 ... yes
2/27 ... yes
2/29 ... yes
3/31 ... yes
2/33 ... yes
2/34 ... yes
2/36 ... yes
2/38 ... yes
3/39 ... yes
2/40 ... yes
3/42 ... yes
3/43 ... yes
12/44 ... yes
12/45 ... yes
3/46 ... yes
3/47 ... yes
13/49 ... yes
13/50 ... yes
8/51 ... yes
2/53 ... yes
2/55 ... yes
2/56 ... yes
8/57 ... yes
8/60 ... yes
2/61 ... yes
2/62 ... yes
2/63 ... yes
2/64 ... yes
8/65 ... yes
9/66 ... yes
8/68 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.3)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.11.1)
Active users: 5
Checking GitLab ... Finished