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

Remove use of organizations in Quality Profiles and Active Rules

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Quality Profiles

      WSs

      • qualityprofiles/: Deprecate 'organization' parameter and don't use it anymore (becomes no-op)

      Tests

      • Remove overloaded methods with orgs in QualityGateDbTester.

      DB

      • Table 'default_qprofiles': 'organization' column can be dropped and 'language' can now be unique
      • Table 'org_qprofiles': The table can be dropped, but some columns might need to be moved to "rules_profiles".
      • DAOs to change: QualityProfileDao, ActiveRuleDao and DefaultQProfileDao (and corresponding mappers/dtos). Some queries join with org_qprofiles, and no longer need to do that.

      Registration of QPs

      • BuiltInQProfileInsertImpl and RegisterQualityProfiles need to be changed to no longer associate QProfiles to orgs

       

      Active Rules

      WS:

      • rules/: Deprecate 'organization' parameter and don't use it anymore (becomes no-op)

      CE:

      • Don't use default organization when handling with rules: DefaultRuleFinder, RuleRepository, AdHocRuleCreator, etc.

      DB

      • Table 'rules_metadata': 'organizations' can be removed, and the rule uuid can become the primary key (alternative, merge this table with rules)
      • RuleDao and mapper/dtos needs to be updated
      • Rule index uses a scope by organization, that needs to be changed.

       

       

       

        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: