archived project's issues are listed in vue_issues_list
Summary
With feature vue_issues_list
, the issues in a group also include issues from (subgroup's) archived projects
.
Steps to reproduce
- create group
foo
- create project
bar
in groupfoo
- create issue
- archive project
bar
- view list of issues in group
foo
, and notice that the issue from projectbar
is listed
note: for GDK
and/or self-managed instances, you must first enable the feature vue_issues_list
:
Feature.enable(:vue_issues_list)
Example Project
See https://gitlab.zendesk.com/agent/tickets/272372 (internal only) for an example group and project.
What is the current bug behavior?
archived project's issues are listed
What is the expected correct behavior?
archived project's issue are not listed
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
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)
Possible fixes
without the feature flag, the listed issues are filtered by non_archived
, as per app/controllers/groups_controller.rb#L215-217:
@has_issues = IssuesFinder.new(current_user, group_id: group.id, include_subgroups: true).execute
.non_archived
.exists?
Since the feature flag uses vue, I suspect that the graphql request isn't filtering these out.
I'd be keen to follow along with the troubleshooting process.
cc @cngo