Expose reference path for issuables
What does this MR do?
When fetching a list of issues through the public API, the results do not include the reference path for each issue (e.g. #12345
on project issues, gitlab-ce#123456
on group issues, or gitlab-org/gitlab-ce#12345
on user issue dashboard).
The reference path is required by the Vue issuable list component (gitlab-org/gitlab-ee!15091), which pulls issues via the public API. Currently, it is displaying the reference path like ${ token }${ issuable.iid }
where token
is #
for issues or !
for MRs, but does not take into account the project identifier.
The Issues and MR API endpoints should return a reference
field, just like our Ruby API, that is scoped properly depending on where the issues are being displayed (project, group, user).
Screenshots
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides [ ] Database guides[ ] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team