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

New Code filter for branches of Application filters out all issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: ElasticSearch, Web API
    • Labels:
      None
    • Edition:
      Enterprise
    • Production Notes:
      None

      Description

      Filter for New Code when viewing a branch of an Application filters out all issues.

      Steps to reproduce:

      • Create a couple of projects, scan the main branch and then a second branch of each
      • Create an Application
      • In the Application, create a branch that aggregates the second branches from the projects
      • Add a bug to the branch of one of the projects and re-scan to create a bug in the new code period of the project branch and therefore the Application branch
      • Navigate to the New Code tab of the Application branch
      • Click on the number of any issue type.
      • No results -> expected behaviour issues from new code period

      The filtering on the Main branch of the Application is fine; this only seems to apply to non-main branches

      Technical notes:
      Main problem is inside ES query that we build. When querying for an application branch to Elasticsearch, project branch uuid is pass to a project main branch field, which is invalid hence we get no result.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: