Fix work item widgets to use the correct project path
What does this MR do and why?
Currently, when opening a work item in standalone view, we use the project full path from the URL to fetch project members and labels. This is not correct: work item is fetched by global ID, so even if the URL is http://127.0.0.1:3000/flightjs/Flight/-/work_items/2
, the work item can belong to gitlab-org/gitlab-test
project. This MR allows us fetching the correct fullPath
for work item and use it in labels and assignees widgets.
Screenshots or screen recordings
No visual changes
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.