Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-13629

Allow SQ users to search their GitLab projects during the GitLab onboarding

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: Branch & PR
    • Labels:
      None
    • Edition:
      Developer
    • Production Notes:
      None

      Description

      • Create a new endpoint "GET api/alm_integrations/search_gitlab_repos". Requires the 'Create Projects' permission.
        • Input parameters :
          • "almSetting", required, ALM setting key, max length 200
          • "projectName", optional, Project name filter, max length 200
          • "p", optional, page index
          • "ps", optional, page size
        • Pagination: page parameters are optional, paging result is always returned in the result
        • returned payload:
        • {
             "paging":
                {
                   "pageIndex":1,
                   "pageSize":20,
                   "total":54
                },
             "repositories": [
                {
                   "id":456,
                   "name":"My imported repo!", // gitlab "name" field
                   "slug":"my-imported-repo", // gitlab "path" field
                   "namePath":"Top Group yyy / Sub Group XXX", gitlab "name_with_namespace" field, without the name
                   "slugPath":"topgroup-yyy/subgroup-xxx", gitlab "path_with_namespace" field, without the path (slug)
                   "url":"http://gitlab.com/group-xxx/my-imported-repo", // gitlab "web_url" field
                   "sqProjectKey":"topgroup-yyy_subgroup-xxx_my-imported-repo_ e09d45ec" // populated only if the GL project is already binded, null otherwise
                },
                {
                   "id":987,
                   "name":"My repo!",
                   "slug":"my-repo",
                   "namePath":"Group YyY / Sub Group zzZ", gitlab "name_with_namespace" field, without the name
                   "slugPath":"group-yyy/subgroup-zzz", gitlab "path_with_namespace" field, without the path (slug)
                   "url":"http://gitlab.com/group-yyy/another-project", // gitlab "web_url" field
                   "sqProjectKey":null
                }
             ]
          }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              pierre.guillot Pierre Guillot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: