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

File and Directory facets' search doesn't pass any branch parameters

    XMLWordPrintable

    Details

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

      Description

      The File and Directory facets' search doesn't pass any branch parameters, resulting in incorrect data being displayed. This is especially visible when the Main Branch has no analysis yet, and only another branch was analyzed. The same problem exists on PRs, and is also quite visible when the PR targets another branch, and the Main Branch has no analysis.

      Problem:

      Directory and File facet searches use the /api/components/tree endpoint, but don't pass any branchLike parameters to the query. Hence, only results for the Main Branch are returned, which is incorrect.

      Solution:
      Facet searches must also pass the branchLike as parameters to the query.

        Attachments

          Activity

            People

            Assignee:
            philippe.perrin Philippe Perrin
            Reporter:
            wouter.admiraal Wouter Admiraal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: