GitLab Issues: "Show comments only" keeps changing itself back to "Show all activity"
Summary
In GitLab issues the "Show comments only" option keeps changing itself back to "Show all activity".
The issue started to occur around one of the mid/later release versions of GitLab 10.x.x and has continued through to the current stable version (11.10.4-ee as of writing this)
Needless to say it is incredibly frustrating especially when working on hundreds of issues and some of them being very long.
Steps to reproduce
- Use GitLab issues (GitLab Premium customer running 11.10.4-ee).
- Set the option to "Show comments only" in an issue.
- Use GitLab issues throughout the day (obviously don't change this setting back at any point).
- At some point (usually doesn't take long) the setting will change to "Show all activity" and you'll be flooded with status changes etc... in every issue.
Example Project
All projects with issues with GitLab Premium on-prem.
What is the current bug behavior?
- In GitLab issues the "Show comments only" option keeps changing itself back to "Show all activity".
- Sometimes you can also have the setting showing as "Show comments only" but "all" activity actually shows up, although this seems less common.
What is the expected correct behavior?
If you set the option to "Show comments only" all issues should only show comments unless you change the setting.
Relevant logs and/or screenshots
- Set the option to show comments only:
You can see the dropox selection was acknowledged (in the frontend at least):
- On this ticket the activity actually still showed after changing the setting (this only occasionally happens):
- Use GitLab Issues "normally" (add comments, labels etc.. to a few tickets).
- The option has changed itself back to "Show all activity":
Recording of the bug in action on gitlab.com:
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
# sudo gitlab-rake gitlab:env:info SANITIZE=true System information System: Proxy: http_proxy: http://REDACTED https_proxy: http://REDACTED Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.5 Go Version: unknown GitLab information Version: 11.10.4-ee Revision: 88a3c791734 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 9.6.11 URL: https://REDACTED HTTP Clone URL: https://REDACTED/some-group/some-project.git SSH Clone URL: git@gREDACTED:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 9.0.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
# sudo gitlab-rake gitlab:check SANITIZE=true Checking GitLab subtasks ... Checking GitLab Shell ... GitLab Shell: ... GitLab Shell version >= 9.0.0 ? ... OK (9.0.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful Checking GitLab Shell ... Finished Checking Gitaly ... Gitaly: ... default ... OK Checking Gitaly ... Finished Checking Sidekiq ... Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1 Checking Sidekiq ... Finished Checking Incoming Email ... Incoming Email: ... Checking Reply by email ... IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped Checking Reply by email ... Finished Checking Incoming Email ... Finished Checking LDAP ... LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) REDACTED THIS OUTPUT AS ITS NOT PROPERLY SANITISED BY GITLAB CHECK SANITISE=TRUE! Checking LDAP ... Finished Checking GitLab App ... Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... 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: ... 3/2 ... yes 4/3 ... yes 3/4 ... yes 3/5 ... yes 3/6 ... yes 3/9 ... yes 4/12 ... yes 4/13 ... yes 21/14 ... yes 4/16 ... yes 4/17 ... yes 21/18 ... yes 4/20 ... yes 4/24 ... yes 4/25 ... yes 4/27 ... yes 4/29 ... yes 4/30 ... yes 4/32 ... yes 4/34 ... yes 4/35 ... yes 4/36 ... yes 4/38 ... yes 4/40 ... yes 4/41 ... yes 4/42 ... yes 4/43 ... yes 4/44 ... yes 3/47 ... yes 4/48 ... yes 3/50 ... yes 3/51 ... yes 4/55 ... yes 4/56 ... yes 4/57 ... yes 35/60 ... yes 4/61 ... yes 3/64 ... yes 4/65 ... yes 4/66 ... yes 4/68 ... yes 4/69 ... yes 3/71 ... yes 39/72 ... yes 35/74 ... yes 39/77 ... yes 4/78 ... yes 14/79 ... yes 4/81 ... yes 4/84 ... yes 4/85 ... yes 4/86 ... yes 46/90 ... yes 46/91 ... yes 4/92 ... yes 4/93 ... yes 3/96 ... yes 3/97 ... yes 14/98 ... yes 3/100 ... yes 3/104 ... yes 3/105 ... yes 3/106 ... yes 3/108 ... yes 4/109 ... yes 4/111 ... yes 4/113 ... yes 4/114 ... yes 3/115 ... yes 39/116 ... yes 39/117 ... yes 48/118 ... yes 4/119 ... yes 39/120 ... yes 39/121 ... yes 4/122 ... yes 4/124 ... yes 4/131 ... yes 48/133 ... yes 4/134 ... yes 4/135 ... yes 21/136 ... yes 4/139 ... yes 21/140 ... yes 4/144 ... yes 21/145 ... yes 4/146 ... yes 3/149 ... yes 4/150 ... yes 21/151 ... yes 35/152 ... yes 14/153 ... yes 21/155 ... yes 7/156 ... yes 21/158 ... yes 3/159 ... yes 3/161 ... yes 4/163 ... yes 3/164 ... yes 3/165 ... yes 4/170 ... yes 4/171 ... yes 3/173 ... yes 4/178 ... yes 35/179 ... yes 35/181 ... yes 35/182 ... yes 35/183 ... yes 35/184 ... yes 35/185 ... yes 35/186 ... yes 35/187 ... yes 35/188 ... yes 35/189 ... yes 35/190 ... yes 35/191 ... yes 35/192 ... yes 35/193 ... yes 35/194 ... yes 35/195 ... yes 35/196 ... yes 35/197 ... yes 35/198 ... yes 35/199 ... yes 35/200 ... yes 5/201 ... yes 35/202 ... yes 35/203 ... yes 29/204 ... yes 35/205 ... yes 46/206 ... yes 35/207 ... yes 35/208 ... yes 3/210 ... yes 35/212 ... yes 29/215 ... yes 29/216 ... yes 35/217 ... yes 35/218 ... yes 4/219 ... yes 35/220 ... yes 4/221 ... yes 35/222 ... yes 35/223 ... yes 4/224 ... yes 3/225 ... yes 35/226 ... yes 35/227 ... yes 35/228 ... yes 35/229 ... yes 93/230 ... yes 35/233 ... yes 35/234 ... yes 35/235 ... yes 35/238 ... yes 35/241 ... yes 35/242 ... yes 35/243 ... yes 3/244 ... yes 35/245 ... yes 35/246 ... yes 14/247 ... yes 35/249 ... yes 64/250 ... yes 35/251 ... yes 4/253 ... yes 5/259 ... yes 5/260 ... yes 64/264 ... yes 35/274 ... yes 35/275 ... yes 4/281 ... yes 35/283 ... yes 35/285 ... yes 35/286 ... yes 35/288 ... yes 35/290 ... yes 3/291 ... yes 35/292 ... yes 35/293 ... yes 35/294 ... yes 3/295 ... yes 3/300 ... yes 3/301 ... yes 4/302 ... yes 35/304 ... yes 35/305 ... yes 35/306 ... yes 35/307 ... yes 103/308 ... yes 3/309 ... yes 35/310 ... yes 35/311 ... yes 5/312 ... yes 3/314 ... yes 14/317 ... yes 5/318 ... yes 3/319 ... yes 35/322 ... yes 103/323 ... yes 4/324 ... yes 7/325 ... yes 4/326 ... yes 35/327 ... yes 103/329 ... yes 103/332 ... yes 35/339 ... yes 35/340 ... yes 35/342 ... yes 35/343 ... yes 35/352 ... yes 4/353 ... yes 4/355 ... yes 4/356 ... yes 16/358 ... yes 35/360 ... yes 3/361 ... yes 35/362 ... yes 35/363 ... yes 103/365 ... yes 3/366 ... yes 35/367 ... yes 35/368 ... yes 35/371 ... yes 4/372 ... yes 35/373 ... yes 35/374 ... yes 108/375 ... yes 35/377 ... yes 4/378 ... yes 103/379 ... yes 21/380 ... yes 35/381 ... yes 35/382 ... yes 5/383 ... yes 4/384 ... yes 3/385 ... yes 35/386 ... yes 35/387 ... yes 3/392 ... yes 35/393 ... yes 3/394 ... yes 35/395 ... yes 35/396 ... yes 35/397 ... yes 35/398 ... yes 35/399 ... yes 35/400 ... yes 35/401 ... yes 35/402 ... yes 35/403 ... yes 3/404 ... yes 35/407 ... yes 35/408 ... yes 4/409 ... yes 39/410 ... yes 90/411 ... yes 3/413 ... yes 35/416 ... yes 35/417 ... yes 35/419 ... yes 35/420 ... yes 35/421 ... yes 4/422 ... yes 35/430 ... yes 4/433 ... yes 3/435 ... yes 35/443 ... yes 138/447 ... yes 138/448 ... yes 3/450 ... yes 35/453 ... yes 4/454 ... yes 35/469 ... yes 35/470 ... yes 4/471 ... yes 4/472 ... yes 148/473 ... yes 148/474 ... yes 148/475 ... yes 148/476 ... yes 148/477 ... yes 149/478 ... yes 149/479 ... yes 149/480 ... yes 149/481 ... yes 149/482 ... yes 149/483 ... yes 149/484 ... yes 149/485 ... yes 149/486 ... yes 149/487 ... yes 149/488 ... yes 149/489 ... yes 149/490 ... yes 149/491 ... yes 149/492 ... yes 149/493 ... yes 149/494 ... yes 149/495 ... yes 148/496 ... yes 3/497 ... yes 150/498 ... yes 150/499 ... yes 150/500 ... yes 150/501 ... yes 150/502 ... yes 150/503 ... yes 150/504 ... yes 150/505 ... yes 143/506 ... yes 150/507 ... yes 148/511 ... yes 159/513 ... yes 21/514 ... yes 143/515 ... yes 149/516 ... yes 35/517 ... yes 4/519 ... yes 3/520 ... yes 143/521 ... yes 9/522 ... yes 4/523 ... yes 35/524 ... yes 35/525 ... yes 35/526 ... yes 3/527 ... yes 3/528 ... yes 64/529 ... yes 4/530 ... yes 3/531 ... yes 3/532 ... yes 4/533 ... yes 151/534 ... yes 151/536 ... yes 35/537 ... yes 108/538 ... yes 143/539 ... yes 138/540 ... yes 4/541 ... yes 4/542 ... yes 4/543 ... yes 35/544 ... yes 4/545 ... yes 4/546 ... yes 149/548 ... yes 143/549 ... yes 149/550 ... yes 35/551 ... yes 4/552 ... yes 143/553 ... yes 35/554 ... yes 35/555 ... yes 151/556 ... yes 143/557 ... yes 4/558 ... yes 196/559 ... yes 149/560 ... yes 138/561 ... yes 3/562 ... yes 4/563 ... yes 143/564 ... yes 4/565 ... yes 4/566 ... yes 151/567 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1557098878 sudo mv /var/opt/gitlab/.ssh/id_rsa ~/gitlab-check-backup-1557098878 sudo mv /var/opt/gitlab/.ssh/id_rsa.pub ~/gitlab-check-backup-1557098878 For more information see: doc/ssh/README.md in section "SSH on the GitLab server" Please fix the error above and rerun the checks. Active users: ... 103 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled) Checking GitLab App ... Finished Checking GitLab subtasks ... Finished
Possible fixes
I'm no developer - but it "feels" like either:
- A javascript bug where the setting appears set on the browser side but doesn't make it through to the database. or
- Some action in issues is changing the setting to "Show all activity" (e.g. adding a label, logging time etc...).
More info
- Browser: Firefox (Stable and Beta, multiple versions over the past few months), ad-blocking disabled.
Edited by Sam McLeod