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

P/R purge should depend on last analysis date

    XMLWordPrintable

    Details

    • Type: Bug
    • 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

      The purge is P/Rs is configured to happen after a number of days since the last analysis of it. We also show how many days have been since the last analysis in the "Branches & Pull Requests" configuration page for each project.

      However, the criteria that is actually used to purge branches and P/Rs depends on the "updated_at" column of the PROJECT_BRANCHES table. The idea was that this value would only updated when the branch is analyzed, but in practice that's not the case. For example, it is sometimes updated when there is a change to that table in DB migrations. 

      The inconsistency between the configuration and values shown in the configuration page, and the actual criteria used for the purge is misleading.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              duarte.meneses Duarte Meneses
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: