Skip to content
Snippets Groups Projects

Fixed external links to non-JIRA issue trackers

Closed gitlab-qa-bot requested to merge github/fork/veonik/external-issue-links into master

Created by: tyler-sommer

External issue links (like #123 (closed)) to Redmine stopped working, this fixes what seems to be the cause.

Originally the check was if project.used_default_issues_tracker? || !external_issues_tracker_enabled? which was necessary because jira is external, and we need special handling for jira. However, this broke linking for other issue trackers like redmine.

This PR modifies the conditional slightly to still allow external trackers that are not jira to link

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
181 181 end
182 182
183 183 def reference_issue(identifier, project = @project)
184 if project.used_default_issues_tracker? || !external_issues_tracker_enabled?
184 if project.used_default_issues_tracker? ||
185 (external_issues_tracker_enabled? && project.issues_tracker != "jira")
185 186 if project.issue_exists? identifier
  • Created by: houndci-bot

    Line is too long. [84/80]

    By Administrator on 2014-07-01T20:42:56 (imported from GitLab project)

    By Administrator on 2014-07-01T20:42:56 (imported from GitLab)

  • gitlab-qa-bot
  • 181 181 end
    182 182
    183 183 def reference_issue(identifier, project = @project)
    184 if project.used_default_issues_tracker? || !external_issues_tracker_enabled?
    184 if project.used_default_issues_tracker? ||
    • Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-07-01T20:42:56 (imported from GitLab project)

      By Administrator on 2014-07-01T20:42:56 (imported from GitLab)

  • gitlab-qa-bot
  • 181 181 end
    182 182
    183 183 def reference_issue(identifier, project = @project)
    184 if project.used_default_issues_tracker? || !external_issues_tracker_enabled?
    184 if project.used_default_issues_tracker? ||
    185 (external_issues_tracker_enabled? && project.issues_tracker != "jira")
    • Created by: houndci-bot

      Line is too long. [81/80]

      By Administrator on 2014-07-01T20:42:56 (imported from GitLab project)

      By Administrator on 2014-07-01T20:42:56 (imported from GitLab)

  • gitlab-qa-bot
  • 181 181 end
    182 182
    183 183 def reference_issue(identifier, project = @project)
    184 if project.used_default_issues_tracker? || !external_issues_tracker_enabled?
    184 if project.used_default_issues_tracker? ||
    • Created by: houndci-bot

      Trailing whitespace detected.

      By Administrator on 2014-07-01T20:42:56 (imported from GitLab project)

      By Administrator on 2014-07-01T20:42:56 (imported from GitLab)

  • Created by: zzet

    @tyler-sommer this PR duplicate of https://github.com/gitlabhq/gitlabhq/pull/7147 ?

    By Administrator on 2014-07-02T11:43:42 (imported from GitLab project)

    By Administrator on 2014-07-02T11:43:42 (imported from GitLab)

  • Created by: tyler-sommer

    @zzet Yes it appears so. Your PR #7147 is also a much more complete solution fixing the empty issue title in the link. I'll close this in favor of yours, thanks!

    By Administrator on 2014-07-23T16:06:01 (imported from GitLab project)

    By Administrator on 2014-07-23T16:06:01 (imported from GitLab)

  • Please register or sign in to reply
    Loading