Issues API does not provide the same list as the web UI

Summary

When using …/api/v4/issues?assignee_id=<My User ID>&state=opened the output of issues does not match the list of assigned issues available on the Web UI with the icon on the topbar on the right.

Steps to reproduce

  • Not 100% reproduceable
  • get user id using /api/v4/user
  • request issues via /api/v4/issues?assignee_id=<User ID>&state=opened
  • open issue link on the top bar, which opens https://…/dashboard/issues?assignee_username=<Username>

What is the current bug behavior?

  • There are more issues on the Web UI than on the API

What is the expected correct behavior?

  • The issues on the Web UI and the API are identical

Relevant logs and/or screenshots

[
{
id: 19297,
iid: 37,
project_id: 313,
state: "opened",
created_at: "2020-01-15T09:39:04.726Z",
updated_at: "2020-01-15T09:39:09.105Z",
closed_at: null,
closed_by: null,
labels: [
"Development::required",
"To Do",
"Workflow::Proposed"
],
milestone: null,
assignees: [
{
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
},
{
id: 12,
name: "Daniil Babanin",
username: "db",
state: "active",
avatar_url: "https://hpm.agency/uploads/-/system/user/avatar/12/avatar.png",
web_url: "https://hpm.agency/db"
}
],
author: {
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
},
assignee: {
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
},
user_notes_count: 0,
merge_requests_count: 0,
upvotes: 0,
downvotes: 0,
due_date: null,
confidential: false,
discussion_locked: null,
web_url: "https://hpm.agency/p/rlp/000/pm/issues/37",
time_stats: {
time_estimate: 0,
total_time_spent: 0,
human_time_estimate: null,
human_total_time_spent: null
},
task_completion_status: {
count: 0,
completed_count: 0
},
has_tasks: false,
_links: {
self: "https://hpm.agency/api/v4/projects/313/issues/37",
notes: "https://hpm.agency/api/v4/projects/313/issues/37/notes",
award_emoji: "https://hpm.agency/api/v4/projects/313/issues/37/award_emoji",
project: "https://hpm.agency/api/v4/projects/313"
},
moved_to_id: null,
weight: null,
epic_iid: null,
epic: null
},
{
id: 19215,
iid: 1,
project_id: 3231,
title: "Projekt-Initialisierung",
description: "",
state: "opened",
created_at: "2020-01-10T08:51:50.152Z",
updated_at: "2020-01-16T14:14:14.850Z",
closed_at: null,
closed_by: null,
labels: [
"To Do",
"Workflow::In Progress"
],
milestone: null,
assignees: [
{
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
}
],
author: {
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
},
assignee: {
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
},
user_notes_count: 0,
merge_requests_count: 0,
upvotes: 0,
downvotes: 0,
due_date: null,
confidential: false,
discussion_locked: null,
web_url: "https://hpm.agency/p/hpm/flightplan/timelog/issues/1",
time_stats: {
time_estimate: 0,
total_time_spent: 30600,
human_time_estimate: null,
human_total_time_spent: "1d 30m"
},
task_completion_status: {
count: 0,
completed_count: 0
},
has_tasks: false,
_links: {
self: "https://hpm.agency/api/v4/projects/3231/issues/1",
notes: "https://hpm.agency/api/v4/projects/3231/issues/1/notes",
award_emoji: "https://hpm.agency/api/v4/projects/3231/issues/1/award_emoji",
project: "https://hpm.agency/api/v4/projects/3231"
},
moved_to_id: null,
weight: null,
epic_iid: null,
epic: null
},
{
id: 19005,
iid: 146,
project_id: 204,
state: "opened",
created_at: "2019-12-13T09:38:12.495Z",
updated_at: "2019-12-13T09:38:16.879Z",
closed_at: null,
closed_by: null,
labels: [
"To Do"
],
milestone: null,
assignees: [
{
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
}
],
author: {
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
},
assignee: {
id: 3,
name: "Mario Micklisch",
username: "mm",
state: "active",
avatar_url: "https://secure.gravatar.com/avatar/6f452f2237b165d4fa501d5dfbc29f83?s=80&d=identicon",
web_url: "https://hpm.agency/mm"
},
user_notes_count: 0,
merge_requests_count: 0,
upvotes: 0,
downvotes: 0,
due_date: null,
confidential: false,
discussion_locked: null,
web_url: "https://hpm.agency/p/sta/Communication/issues/146",
time_stats: {
time_estimate: 0,
total_time_spent: 0,
human_time_estimate: null,
human_total_time_spent: null
},
task_completion_status: {
count: 0,
completed_count: 0
},
has_tasks: false,
_links: {
self: "https://hpm.agency/api/v4/projects/204/issues/146",
notes: "https://hpm.agency/api/v4/projects/204/issues/146/notes",
award_emoji: "https://hpm.agency/api/v4/projects/204/issues/146/award_emoji",
project: "https://hpm.agency/api/v4/projects/204"
},
moved_to_id: null,
weight: null,
epic_iid: null,
epic: null
}
]
  • Screenshot of the users account issue list

Bildschirmfoto_2020-01-16_um_15.27.05

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Ubuntu 16.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 3.2.12 Git Version: 2.24.1 Sidekiq Version:5.2.7 Go Version: unknown

GitLab information Version: 12.6.4-ee Revision: cc6b787e7b0 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 9.6.11 URL: https://hpm.agency HTTP Clone URL: https://hpm.agency/some-group/some-project.git SSH Clone URL: git@hpm.agency:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: google_oauth2

GitLab Shell Version: 10.3.0 Repository storage paths:

  • default: /gitlab-data/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

Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 10.3.0 ? ... OK (10.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: 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: ... LDAP is disabled in config/gitlab.yml

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: ... 1238/5 ... yes 1223/7 ... yes 35/10 ... yes 1217/12 ... yes 13/13 ... yes 8/14 ... yes 14/15 ... yes 10/16 ... yes 10/17 ... yes 15/18 ... yes 16/19 ... yes [...] 1873/3225 ... yes 1217/3226 ... yes 393/3227 ... yes 431/3229 ... yes 1238/3230 ... yes 1891/3231 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.24.1) Git user has default SSH configuration? ... yes Active users: ... 90 Is authorized keys file accessible? ... skipped (authorized keys not enabled) Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

  • None
Edited by Mario