Replace Job links with job component in issues and merge requests
### Problem to solve / Proposal Much like we replace any Merge Request or Issue with a short link; `https://gitlab.com/my/project/merge_requests/123 => !123`, `https://gitlab.com/my/project/issues/123 => #123` A nice ~UX improvement would be to include a partial rendering for the job as we do with the Pipelines page. #### Before ![Screen_Shot_2019-12-16_at_11.20.50_AM](/uploads/fbb8f0305146205d1fb683f7d1a8c45b/Screen_Shot_2019-12-16_at_11.20.50_AM.png) #### After ![Screen_Shot_2019-12-16_at_11.29.52_AM](/uploads/19e19da68e67b41c1194abb06be050ea/Screen_Shot_2019-12-16_at_11.29.52_AM.jpg) ### Intended users * [Parker (Product Manager)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#parker-product-manager) * [Delaney (Development Team Lead)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#delaney-development-team-lead) * [Sasha (Software Developer)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sasha-software-developer) * [Presley (Product Designer)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#presley-product-designer) * [Devon (DevOps Engineer)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#devon-devops-engineer) * [Sidney (Systems Administrator)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sidney-systems-administrator) * [Sam (Security Analyst)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#sam-security-analyst) * [Dana (Data Analyst)](https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/#dana-data-analyst) ### Permissions and Security If the user does not have access to the job link - render the link as-is without the component. ### Testing Tests would need to be written to check for the permission issues as described in the above section. ### What does success look like, and how can we measure that? - In an issue or merge request, when a user links a specific job ID (`/:project/-/jobs/:job_id`); Render the job component as we do in the pipelines page * ![Screen_Shot_2019-12-16_at_11.24.17_AM](/uploads/2f17fc597ca638f0de7a99a7b4b09a6c/Screen_Shot_2019-12-16_at_11.24.17_AM.png) - When a job is linked, the current status of that job would be rendered in the component. (Created, Pending, Running, Success, Failed) - If the logged in user does not have access to view the job page, render the link as text. - The component should not have the retry button as it does in the picture - The entirety of the component should be a link to the job ### What is the type of buyer? Core / Free + ### Links / references
issue