Skip to content

Add scope for slack and zoom links in IssuableResourceLink model

Rajendra Kadam requested to merge add-resource-link-scopes into master

What does this MR do and why?

This MR adds changes in IssuableResourceLink model to lay the foundation required for #369365 (comment 1266577628)

Adds scopes to fetch Slack and Zoom links.

Also, if the link text is missing in the model input, we use Slack channel ID and Zoom meeting ID as text.

So for example, consider a zoom link:

https://gitlab.zoom.us/j/9138921421?pwd=TGw0TmttZbGhpcDA0aWFjdz09

In the above case, we will use Zoom #9138921421 as link text on the UI.

Consider a slack channel link:

https://gitlab.slack.com/archives/C02SHPPGZ

We will use Slack #C02SHPPGZ as text on the UI. Both the cases will be executed if the text is not provided while adding the resource.

Screenshots or screen recordings

Screen_Recording_2023-02-08_at_9.14.35_AM

How to set up and validate locally

  1. Make sure you have the premium+ license installed and atleast reporter permissions on the project.
  2. Create an incident from Monitor > Incidents.
  3. Add some slack and zoom resource links from the widget without specifying any Text.
  4. Check the text after links are added.

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 Rajendra Kadam

Merge request reports