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

Only some POST qualitygates ws should return the created ressource

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Quality Gate, Web, Web API
    • Labels:
      None

      Description

      We currently have some WS in api/qualitygates that are POST operations and returns full ressources. We are trying to avoid that kind of comportement now. Those WS should only return the key of the created ressource.

      WS that should only return a key :

      • api/qualitygates/copy
      • api/qualitygates/create

      WS that should return nothing :

      • api/qualitygates/update_condition
      • api/qualitygates/create_condition

      On the UI side we should always call api/qualitygates/list to update the quality gates list and api/qualitygates/show to update the displayed Quality Gate. (We should also drop the redux store for QG)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gregoire.aubert Gregoire Aubert
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: