Skip to content

Fix `Issuable#root_id` for nested groups

In !117 (merged), the case of a project that's under a group B, which itself is under a group A was (wrongly) handled:

There's a namespace

  • The namespace has a parent id. We check the parent id.

The code assumed that a group with a parent would have a namespace.parent_id property, while the parent_id is actually directly in the root of the JSON payload.

This MR fixes that.

Tested with https://gitlab.com/gitlab-org/quality/triage-ops/-/jobs/2365052912.

Closes #269 (closed).

Edited by Rémy Coutable

Merge request reports