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

During rule synchronisation at startup, rule name and description from bundles should be stored in DB

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: l10n & i18n, Rules
    • Labels:
      None

      Description

      When a language plugin defines rule names and descriptions in bundles, the name and description of the rules are not stored in the DB. The consequence is that if this plugin is removed (or some rules of this plugin), then many side effects can be seen:

      • the existing issues will show up in SonarQube UI with empty rules
      • blank lines will show up in the issue drilldown
      • ...

      The improvement is that we should push names and descriptions of rules/rule parameters from bundles to DB during server startup (during synchronisation of rules, when they are updated).

      Technically speaking, bundles should be used only during rule synchronization at startup :

      • stop caching bundles in memory (see RuleI18nManager call to i18nManager.messageFromFile)
      • stop using bundle in rule.rb and rules_parameter.rb
      • drop JRubyFacade methods : getRuleName, getRuleDescription, getRuleParamDescription

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              simon.brandhof Simon Brandhof (Inactive)
              Reporter:
              fabemn OLD - Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: