Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajendra kadam <rajendrakadam249@gmail.com>2019-07-17 09:41:26 +0300
committerClement Ho <408677-ClemMakesApps@users.noreply.gitlab.com>2019-07-17 09:41:26 +0300
commitf8afb3805cf8cd12085c0e93bc6dad111afbd9c2 (patch)
tree53284acc02a0a98976d5e483344e24eef44e934c /app/helpers/issuables_helper.rb
parentc1d370c904b0f6a0b6ebb27ebc3a5df7b693c4bb (diff)
Fetch latest link in the description for zoom link, add more tests and remove frontend spec unnecessary tests
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r--app/helpers/issuables_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 67685ba4e1d..e2e007eee50 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -282,6 +282,10 @@ module IssuablesHelper
data[:hasClosingMergeRequest] = issuable.merge_requests_count(current_user) != 0 if issuable.is_a?(Issue)
+ zoom_links = Gitlab::ZoomLinkExtractor.new(issuable.description).links
+
+ data[:zoomMeetingUrl] = zoom_links.last if zoom_links.any?
+
if parent.is_a?(Group)
data[:groupPath] = parent.path
else