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

API should enforce that settings can only defined for projects, views, subviews or modules

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 6.5-M1, 6.5
    • Component/s: Plugin API
    • Labels:

      Description

      Settings can only be either

      1. global
      2. defined at project or view level
      3. defined at module level
      4. defined at sub view level

      But nothing enforces it in the API PropertyDefinition.

      In addition, because of this, project deletion is attempting to delete settings for any type of component in the project when deletion should only be performed for a subset of them.

      Finally, a database migration should clean any setting defined for invalid components.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebastien.lesaint Sebastien Lesaint
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: