java.lang.Object
com.atlassian.greenhopper.service.lexorank.repair.RepairProcess

public class RepairProcess extends Object
This class is responsible for repairing LexoRank fields in Jira issues.
  • Constructor Details

    • RepairProcess

      public RepairProcess(LexoRankDao lexoRankDao, com.atlassian.jira.issue.IssueManager issueManager, IssueIndexService issueIndexService, Long lexoRankFieldId, RepairConfiguration configuration)
      Creates a new repair process.
      Parameters:
      lexoRankDao - the DAO used to access LexoRank data
      issueManager - the manager used to access issue data
      issueIndexService - the service used to reindex issues
      lexoRankFieldId - the ID of the LexoRank field to repair
      configuration - the configuration used to control the repair process
  • Method Details

    • repair

      public LexoRankRepairResult repair(String prevIssueRank, String nextIssueRank)
      Repairs the LexoRank field with the given ID. This repair process is triggered by re-ranking an issue, and observing the ranks of issues neighbouring the re-ranked issue. The repair process will attempt to correct the ranks of issues by:
      1. Determining the range of the local repair,
      2. Correcting the ranks of issues in the range, using shorter ranks,
      3. Reindexing the issues that were updated during the repair process.
      Parameters:
      prevIssueRank - the rank of the issue before the issue that triggered the repair
      nextIssueRank - the rank of the issue after the issue that triggered the repair
      Returns:
      the result of the repair process