Skip to content

Fix work item comments not loading when fetched by iid

Nicolas Dular requested to merge nd/fix-work-items-comment-iid-loading into master

What does this MR do and why?

The fetchByIid did not get passed to the <work-item_comment-form /> component.

Screenshots or screen recordings

Before After
Screenshot_2023-01-10_at_15.49.00 Screenshot_2023-01-10_at_15.49.28

How to set up and validate locally

  1. Enable ALL the feature flags:
Feature.enable(:use_iid_in_work_items_path)
Feature.enabled?(:okrs_mvc)
Feature.enable(:work_items_mvc)
Feature.enable(:work_items_mvc2)
  1. Create a new OKR (Issues -> New Issue button dropdown -> OKR)
  2. Go to the OKR
  3. See the error

Example error in production: https://gitlab.com/gitlab-org/plan-stage/tasks-testing/-/work_items/15?iid_path=true

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Nicolas Dular

Merge request reports